Form submit/escape hotkeys added.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Mar 2009 21:16:47 +0000 (21:16 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Mar 2009 21:16:47 +0000 (21:16 +0000)
87 files changed:
admin/attachments.php
admin/change_current_user_password.php
admin/company_preferences.php
admin/display_prefs.php
admin/fiscalyears.php
admin/forms_setup.php
admin/gl_setup.php
admin/payment_terms.php
admin/print_profiles.php
admin/printers.php
admin/shipping_companies.php
admin/users.php
admin/view_print_transaction.php
admin/void_transaction.php
dimensions/dimension_entry.php
dimensions/inquiry/search_dimensions.php
dimensions/view/view_dimension.php
gl/bank_transfer.php
gl/gl_bank.php
gl/gl_budget.php
gl/gl_journal.php
gl/inquiry/bank_inquiry.php
gl/inquiry/gl_account_inquiry.php
gl/inquiry/gl_trial_balance.php
gl/inquiry/tax_inquiry.php
gl/manage/bank_accounts.php
gl/manage/currencies.php
gl/manage/exchange_rates.php
gl/manage/gl_account_classes.php
gl/manage/gl_account_types.php
gl/manage/gl_accounts.php
gl/manage/gl_quick_entries.php
inventory/adjustments.php
inventory/cost_update.php
inventory/inquiry/stock_movements.php
inventory/manage/item_categories.php
inventory/manage/item_codes.php
inventory/manage/item_units.php
inventory/manage/items.php
inventory/manage/locations.php
inventory/manage/movement_types.php
inventory/manage/sales_kits.php
inventory/prices.php
inventory/purchasing_data.php
inventory/reorder_level.php
inventory/transfers.php
manufacturing/manage/bom_edit.php
manufacturing/manage/work_centres.php
manufacturing/search_work_orders.php
manufacturing/work_order_add_finished.php
manufacturing/work_order_entry.php
manufacturing/work_order_issue.php
manufacturing/work_order_release.php
purchasing/allocations/supplier_allocate.php
purchasing/inquiry/po_search.php
purchasing/inquiry/po_search_completed.php
purchasing/inquiry/supplier_allocation_inquiry.php
purchasing/inquiry/supplier_inquiry.php
purchasing/manage/suppliers.php
purchasing/po_entry_items.php
purchasing/po_receive_items.php
purchasing/supplier_credit.php
purchasing/supplier_invoice.php
purchasing/supplier_payment.php
reporting/includes/reports_classes.inc
sales/allocations/customer_allocate.php
sales/credit_note_entry.php
sales/customer_credit_invoice.php
sales/customer_delivery.php
sales/customer_invoice.php
sales/customer_payments.php
sales/inquiry/customer_allocation_inquiry.php
sales/inquiry/customer_inquiry.php
sales/inquiry/sales_deliveries_view.php
sales/inquiry/sales_orders_view.php
sales/manage/credit_status.php
sales/manage/customer_branches.php
sales/manage/customers.php
sales/manage/recurrent_invoices.php
sales/manage/sales_areas.php
sales/manage/sales_groups.php
sales/manage/sales_people.php
sales/manage/sales_points.php
sales/manage/sales_types.php
taxes/item_tax_types.php
taxes/tax_groups.php
taxes/tax_types.php

index 12bab6511915adf8c9854d1adf910765174fb431..cf1c16966540a9389db1aac7392efd7d892df816 100644 (file)
@@ -239,7 +239,7 @@ end_table(1);
 if (isset($_POST['filterType']))
        hidden('filterType', $_POST['filterType']);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index d38f96cd2b3a679e2ca3ba0c61f1e5e562e70bb9..e8005ae303bd4db47be7ba6e0c97dbcc2b950997 100644 (file)
@@ -94,7 +94,7 @@ table_section_title(_("Enter your new password in the fields."));
 
 end_table(1);
 
-submit_center( 'UPDATE_ITEM', _('Change password'), true, '', true);
+submit_center( 'UPDATE_ITEM', _('Change password'), true, '',  'default');
 end_form();
 end_page();
 ?>
index ac5eb4496e74d5ad3c20ff00a84b4a1255f50c6a..feddf62fbdca78c247a8b1442d0ebc1243b829aa 100644 (file)
@@ -176,7 +176,7 @@ end_row();
 end_outer_table(1);
 
 hidden('coy_logo', $_POST['coy_logo']);
-submit_center('update', _("Update"), true, '', true);
+submit_center('update', _("Update"), true, '',  'default');
 
 end_form(2);
 //-------------------------------------------------------------------------------------------------
index 316733a77913cfc0e3318fd8ee553249392e407f..81d951ad1453876c4574e7c03a1b1fc832c61129 100644 (file)
@@ -129,7 +129,7 @@ text_row_ex(_("Query page size:"), 'query_size',  5, 5, '', user_query_size());
 
 end_outer_table(1);
 
-submit_center('setprefs', _("Update"), true, '', true);
+submit_center('setprefs', _("Update"), true, '',  'default');
 
 end_form(2);
 
index 4e62ad720ba9e4f0430186d0b85abe09e5166c91..b3de0f89dd6184795e633112eeeaa6cae8c71ca3 100644 (file)
@@ -196,7 +196,7 @@ function display_fiscalyear_edit($selected_id)
 
        end_table(1);
 
-       submit_add_or_update_center($selected_id == -1, '', true);
+       submit_add_or_update_center($selected_id == -1, '', 'default');
 
        end_form();
 }
index 46676617937b8a9e5f85bccb813bb3a8f9a97290..a15cfe4a72171390e88a2b1b78e9adb0215ff40e 100644 (file)
@@ -58,7 +58,7 @@ while ($type = db_fetch($systypes))
 
 end_outer_table(1);
 
-submit_center('setprefs', _("Update"), true, '', true);
+submit_center('setprefs', _("Update"), true, '', 'default');
 
 end_form(2);
 
index 354e76c22d1d44330bc237fca68aacf491ff2522..2fa03f364e241a4d6643a1a3f6e79b3eb1326a27 100644 (file)
@@ -212,7 +212,7 @@ text_row(_("Work Order Required By After:"), 'default_workorder_required', $_POS
 
 end_outer_table(1);
 
-submit_center('submit', _("Update"), true, '', true);
+submit_center('submit', _("Update"), true, '', 'default');
 
 end_form(2);
 
index 6939c9bdce8e98b96167d90cd48e0710f5c3f256..0a7064229945073e357e56a387be7507eea44b87 100644 (file)
@@ -222,7 +222,7 @@ text_row_ex(_("Days (Or Day In Following Month):"), 'DayNumber', 3);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index 8052a38af560843851dced86a3a232151e224376..f22c19416920932ed1fb5ef11d32a1d955c93818 100644 (file)
@@ -174,10 +174,10 @@ else
 
 div_start('controls');
 if (get_post('profile_id') == '') {
-       submit_center('submit', _("Add New Profile"), true, '', true);
+       submit_center('submit', _("Add New Profile"), true, '', 'default');
 } else {
        submit_center_first('submit', _("Update Profile"), 
-         _('Update printer profile'), true);
+         _('Update printer profile'), 'default');
        submit_center_last('delete', _("Delete Profile"), 
          _('Delete printer profile (only if not used by any user)'), true);
 }
index 227c1d65b6ee706a02115ce34109358c9f832d00..20753ac7ae197b5098e701d1dcef43f2bf878c72 100644 (file)
@@ -142,7 +142,7 @@ text_row(_("Timeout").':', 'tout', null, 5, 5);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index 17726cc3b499e9f9f7884c3f0f0643e550d5a77d..f32efae283372dba080a4e764ab0bdd1171a589c 100644 (file)
@@ -163,7 +163,7 @@ text_row_ex(_("Address:"), 'address', 50);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 end_page();
index 71db09ce2885fb60af50f4d18974d5c1cd621a47..578def433910715c67acbdfdef8f3f883a62682c 100644 (file)
@@ -218,7 +218,7 @@ check_row(_("Use popup window for reports:"), 'rep_popup', $_POST['rep_popup'],
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == '', '', true);
+submit_add_or_update_center($selected_id == '', '', 'default');
 
 end_form();
 end_page();
index b9931d449228c3cfc42e64359d0c13c7835cdf94..d6d8ca3b1c42fc3109ed650c4211d3bb2cdb462b 100644 (file)
@@ -60,7 +60,7 @@ function viewing_controls()
 
     ref_cells(_("to #:"), 'ToTransNo');
 
-    submit_cells('ProcessSearch', _("Search"), '', '', true);
+    submit_cells('ProcessSearch', _("Search"), '', '', 'default');
 
        end_row();
     end_table(1);
index 31f8506b462e51e007a805c286f5af0d5a4ffcf4..1be108f87f3f3b71b4295aa65e72f6676c34142f 100644 (file)
@@ -117,7 +117,7 @@ function voiding_controls()
        end_table(1);
 
     if (!isset($_POST['ProcessVoiding']))
-       submit_center('ProcessVoiding', _("Void Transaction"), true, '', true);
+       submit_center('ProcessVoiding', _("Void Transaction"), true, '', 'default');
     else 
     {
                if (!exist_transaction($_POST['filterType'],$_POST['trans_no']))
@@ -126,7 +126,7 @@ function voiding_controls()
                        unset($_POST['trans_no']);
                        unset($_POST['memo_']);
                        unset($_POST['date_']);
-               submit_center('ProcessVoiding', _("Void Transaction"), true, '', true);
+               submit_center('ProcessVoiding', _("Void Transaction"), true, '', 'default');
                }       
                else
                {
@@ -138,7 +138,7 @@ function voiding_controls()
                display_note($view_str);
                        br();
                submit_center_first('ConfirmVoiding', _("Proceed"), '', true);
-               submit_center_last('CancelVoiding', _("Cancel"), '', true);
+               submit_center_last('CancelVoiding', _("Cancel"), '', 'cancel');
        }       
     }
 
index 9014f22af97a2e40af313868e05d6f83c0f07c66..c0e99521f5860af7a965c8b52e7ec03adc9b8165 100644 (file)
@@ -257,13 +257,13 @@ end_table(1);
 if ($selected_id != -1) 
 {
        echo "<br>";
-       submit_center_first('UPDATE_ITEM', _("Update"), _('Save changes to dimension'), true);
+       submit_center_first('UPDATE_ITEM', _("Update"), _('Save changes to dimension'), 'default');
        submit('close', _("Close This Dimension"), true, _('Mark this dimension as closed'), true);
        submit_center_last('delete', _("Delete This Dimension"), _('Delete unused dimension'), true);
 }
 else
 {
-       submit_center('ADD_ITEM', _("Add"), true, '', true);
+       submit_center('ADD_ITEM', _("Add"), true, '', 'default');
 }
 end_form();
 
index 8e43471fd5975754ad390a2a111b0c80b18c0c66..fb261b9402de52b101fcfe52943c6883036d217a 100644 (file)
@@ -85,7 +85,7 @@ if (!$outstanding_only)
 else
        $_POST['OpenOnly'] = 1;
 
-submit_cells('SearchOrders', _("Search"), '', '', true);
+submit_cells('SearchOrders', _("Search"), '', '', 'default');
 
 end_row();
 end_table();
index a8ad64d1bae66a9e752bda9c37b548352206cfa3..9d74b06b84f5ae82647a48b114b294f8505d4b42 100644 (file)
@@ -83,7 +83,7 @@ if (!isset($_POST['TransToDate']))
        $_POST['TransToDate'] = Today();
 date_cells(_("from:"), 'TransFromDate');
 date_cells(_("to:"), 'TransToDate');
-submit_cells('Show',_("Show"));
+submit_cells('Show',_("Show"), '', false, 'default');
 
 end_row();
 
index 36e28a6a899b4d3ac7f137f7048d96cec394b492..0f4ea9160d611b4b88b72efb173bf68331e17324 100644 (file)
@@ -94,7 +94,7 @@ function gl_payment_controls()
        echo "</td></tr>";
        end_table(1); // outer table
 
-    submit_center('AddPayment',_("Enter Transfer"), true, '', true);
+    submit_center('AddPayment',_("Enter Transfer"), true, '', 'default');
 
        end_form();
 }
index ff7f196a5d69b91be5184bd7088d5d13bd2ad09c..b9ce988214dfc566395cdd5ae53d12e6f7c15a74 100644 (file)
@@ -292,7 +292,7 @@ end_table(1);
 
 submit_center_first('Update', _("Update"), '', null);
 submit_center_last('Process', $_SESSION['pay_items']->trans_type==systypes::bank_payment() ?
-       _("Process Payment"):_("Process Deposit"), '', true);
+       _("Process Payment"):_("Process Deposit"), '', 'default');
 
 end_form();
 
index 6c4db5270eb023b5168c676915747c84b0b1c66a..0afded12281894319f1162d402f3fee43e62c907 100644 (file)
@@ -185,7 +185,7 @@ if (db_has_gl_accounts())
        end_table(1);
        div_end();
        submit_center_first('update', _("Update"), '', null);
-       submit('add', _("Save"), true, '', true);
+       submit('add', _("Save"), true, '', 'default');
        submit_center_last('delete', _("Delete"), '', true);
 }
 end_form();
index 8d2853348a85e80cc339dbb635c7f78a77e15a83..8b178118764eff22b60104a75ebdae4570fa0195 100644 (file)
@@ -266,7 +266,7 @@ end_row();
 end_table(1);
 
 submit_center('Process', _("Process Journal Entry"), true , 
-       _('Process journal entry only if debits equal to credits'), true);
+       _('Process journal entry only if debits equal to credits'), 'default');
 
 end_form();
 //------------------------------------------------------------------------------------------------
index 94ccef8d54988274004a2b52b9694fb9cd172d67..9c627670b8e5a3681888936413fa3863a66d7cbc 100644 (file)
@@ -46,7 +46,7 @@ bank_accounts_list_cells(_("Account:"), 'bank_account', null);
 date_cells(_("From:"), 'TransAfterDate', '', null, -30);
 date_cells(_("To:"), 'TransToDate');
 
-submit_cells('Show',_("Show"),'','', true);
+submit_cells('Show',_("Show"),'','', 'default');
 end_row();
 end_table();
 end_form();
index 22b31a7807f89bfa50926211b7271f9d595495e0..132d23cce9cbecd8a5e63b45600a2a6ae31cfae6 100644 (file)
@@ -65,7 +65,7 @@ function gl_inquiry_controls()
 
        date_cells(_("from:"), 'TransFromDate', '', null, -30);
        date_cells(_("to:"), 'TransToDate');
-       submit_cells('Show',_("Show"),'','', true);
+       submit_cells('Show',_("Show"),'','', 'default');
 
     end_row();
 
index 093307c945cdc8e07c961b75cc0c3cf8afd792ba..2ea606eeaa0872011ac888cba0ef85be9cbb38f0 100644 (file)
@@ -46,7 +46,7 @@ function gl_inquiry_controls()
        check_cells(_("No zero values"), 'NoZero', null);
        check_cells(_("Only balances"), 'Balance', null);
 
-       submit_cells('Show',_("Show"),'','', true);
+       submit_cells('Show',_("Show"),'','', 'default');
     end_table();
     end_form();
 }
index df9cd14beb996f55fb34f3c2e2dc9b62d1929a4d..db10eea01e50901aaa21b0bf1d1a378fcb8f7720 100644 (file)
@@ -62,7 +62,7 @@ function tax_inquiry_controls()
 
        date_cells(_("from:"), 'TransFromDate', '', null, -30);
        date_cells(_("to:"), 'TransToDate');
-       submit_cells('Show',_("Show"),'','', true);
+       submit_cells('Show',_("Show"),'','', 'default');
 
     end_row();
 
index e794f697a85f6c3ab927f2d6d0f1e44960c9139e..45bea5e819c3cc174eaa3036ed60167cf37e5b48 100644 (file)
@@ -184,7 +184,7 @@ textarea_row(_("Bank Address:"), 'bank_address', null, 40, 5);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index f1b91de01618371f218dca7c8c961eef070e4962..d5db45f3de7e3a9f02ed4e42074aafec7ff884a1 100644 (file)
@@ -223,7 +223,7 @@ function display_currency_edit($selected_id)
 
        end_table(1);
 
-       submit_add_or_update_center($selected_id == '', '', true);
+       submit_add_or_update_center($selected_id == '', '', 'default');
 
        end_form();
 }
index 19ac833e686cbe7e520bbe0a51e0f12eca9d0e87..d0c42d21d60daa666ec219cce63a81a4a306a617 100644 (file)
@@ -143,7 +143,7 @@ function display_rate_edit()
 
        end_table(1);
 
-       submit_add_or_update_center($selected_id == '', '', true);
+       submit_add_or_update_center($selected_id == '', '', 'default');
 
        display_note(_("Exchange rates are entered against the company currency."), 1);
 }
index 65a6429d37c472ded2bf2a606ecbdcd8e828472e..139cc8f5a4eeaf79cba6f7257b619cdfffe30d54 100644 (file)
@@ -167,7 +167,7 @@ yesno_list_row(_("Balance Sheet:"), 'Balance', null, "", "", false);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index 19093b213f29ad769aa8c3fb9990c42c7a8a6768..76e91faa305930b8177561fb9fe3c1b5c4b8bea0 100644 (file)
@@ -188,7 +188,7 @@ class_list_row(_("Class Type:"), 'class_id', null);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'default');
 
 end_form();
 
index f5ddabdbcf50343e1e864b3225732d2e9fafbfd5..459c37667369188fc1438ba54d16315c5daf1a85 100644 (file)
@@ -247,11 +247,11 @@ end_table(1);
 
 if ($selected_account == "") 
 {
-       submit_center('add', _("Add Account"), true, '', true);
+       submit_center('add', _("Add Account"), true, '', 'default');
 } 
 else 
 {
-    submit_center_first('update', _("Update Account"), '', true);
+    submit_center_first('update', _("Update Account"), '', 'default');
     submit_center_last('delete', _("Delete account"), '',true);
 }
 end_form();
index 137cfaa4bd47752ea9b40d90fad1112e1f2aa9ff..faa958a89385b42b59586913f7833b3bf01baeeb 100644 (file)
@@ -216,7 +216,7 @@ amount_row(_("Default Base Amount").':', 'base_amount', price_format(0));
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index bd8f1bed85e48ecf1f745584fc5c59104b8949a7..e1ce702444708fbefd5bdfd110cfc6ca3d62f934 100644 (file)
@@ -229,7 +229,7 @@ adjustment_options_controls();
 end_outer_table(1, false);
 
 submit_center_first('Update', _("Update"), '', null);
-submit_center_last('Process', _("Process Adjustment"), '', true);
+submit_center_last('Process', _("Process Adjustment"), '', 'default');
 
 end_form();
 end_page();
index 0cf4fb6d9b0983ce1cab5bada9b675ec1db35f74..0b22ac18b0f80d70727b2d0bec8f5d29016e71d8 100644 (file)
@@ -126,7 +126,7 @@ else
 
 end_table(1);
 div_end();
-submit_center('UpdateData', _("Update"));
+submit_center('UpdateData', _("Update"), true, false, 'default');
 
 end_form();
 end_page();
index cd225d52af779f7390dd66e9b3ada0815a8bde48..1192cd0685c29f602080f2a3124cd12b08f094d4 100644 (file)
@@ -53,7 +53,7 @@ locations_list_cells(_("From Location:"), 'StockLocation', null);
 date_cells(_("From:"), 'AfterDate', '', null, -30);
 date_cells(_("To:"), 'BeforeDate');
 
-submit_cells('ShowMoves',_("Show Movements"),'',_('Refresh Inquiry'), true);
+submit_cells('ShowMoves',_("Show Movements"),'',_('Refresh Inquiry'), 'default');
 end_table();
 end_form();
 
index 904afc79d4329006a7f37e601e6bb3109f7293d8..b5ded413293931fc278b64717aa9045ebd01208c 100644 (file)
@@ -221,7 +221,7 @@ if ($dim < 2)
 
 end_table(1);
 div_end();
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index ce802e2ca4fbb2ee1804066e34d391f650670fd9..3ac092bbf17fe99800bc9419da6c63f28a4a4a6e 100644 (file)
@@ -179,7 +179,7 @@ stock_categories_list_row(_("Category:"), 'category_id', null);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 end_page();
index 95473885f348109a1b2d2c1608ed67aa91dc3e56..de6154a6e5af904024a93b8c6c29c2b5af9e4b87 100644 (file)
@@ -135,7 +135,7 @@ number_list_row(_("Decimal Places:"), 'decimals', null, 0, 6, _("User Quantity D
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == '', '', true);
+submit_add_or_update_center($selected_id == '', '', 'both');
 
 end_form();
 
index 6993000d4a2946e1e49c4a4962bbd35de6f02696..c09c1c489e4c8c902d2c1855eb169d1ac16d15d2 100644 (file)
@@ -415,12 +415,12 @@ div_end();
 div_start('controls');
 if (!isset($_POST['NewStockID']) || $new_item) 
 {
-       submit_center('addupdate', _("Insert New Item"), true, '', true);
+       submit_center('addupdate', _("Insert New Item"), true, '', 'default');
 } 
 else 
 {
-       submit_center_first('addupdate', _("Update Item"), '', true);
-       submit_return('select', _("Return"), _("Select this items and return to document entry."), true);
+       submit_center_first('addupdate', _("Update Item"), '', 'default');
+       submit_return('select', _("Return"), _("Select this items and return to document entry."), 'default');
        submit_center_last('delete', _("Delete This Item"), '', true);
 }
 
index e0c3b1468183ce2e7b230992bab849f8a0460a58..bf36ac413d6d30931b6ce7d15734123aab5e83fc 100644 (file)
@@ -187,7 +187,7 @@ text_row_ex(_("Facsimile No:"), 'fax', 30, 30);
 email_row_ex(_("E-mail:"), 'email', 30);
 
 end_table(1);
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 69e8fe16bba92f9155871270c1a9fb4c812a9d7a..3e5d0602c84eb04bc854eff625e952df40702fe7 100644 (file)
@@ -134,7 +134,7 @@ text_row(_("Description:"), 'name', null, 50, 50);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 59ca9e4d502466082ac0edbc18e0facbf31cb7ab..a45dde70d8ac1784595f2cc8440be3a490efdd28 100644 (file)
@@ -245,7 +245,7 @@ if (get_post('item_code') == '') {
        qty_row(_("Quantity:"), 'quantity', number_format2(1, $dec), '', $units, $dec);
 
        end_table(1);
-       submit_add_or_update_center($selected_id == -1, '', true);
+       submit_add_or_update_center($selected_id == -1, '', 'both');
        end_form();
 //----------------------------------------------------------------------------------
 
index 67de34c86365d93db8959bad546e1c4b4683d691..280595150545e89901ae47333cb6a3267fe9b5cb 100644 (file)
@@ -184,7 +184,7 @@ small_amount_row(_("Price:"), 'price', null, '', _('per') .' '.$kit["units"]);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 div_end();
 
 end_form();
index 4371c8290d8bf567b3d69427249c6b65c83e8dcf..4ba08be567d1801bb451917a8d3ade364a52a73d 100644 (file)
@@ -233,7 +233,7 @@ text_row(_("Supplier's Code or Description:"), 'supplier_description', null, 50,
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 end_page();
index 7fe5f7d90bebaccb87a373ac4c8415de4caec9c0..962dd268983a8cfba5b5fb6448f42f734c4551e2 100644 (file)
@@ -93,7 +93,7 @@ while ($myrow = db_fetch($result))
 
 end_table(1);
 div_end();
-submit_center('UpdateData', _("Update"));
+submit_center('UpdateData', _("Update"), true, false, 'default');
 
 end_form();
 end_page();
index 897b647cc076d257ef5b876af5ef8a47e6a2177b..b3d91338589ac6fb94e260b8d07e44f89682ae69 100644 (file)
@@ -233,7 +233,7 @@ end_row();
 end_table(1);
 
 submit_center_first('Update', _("Update"), '', null);
-submit_center_last('Process', _("Process Transfer"), '', true);
+submit_center_last('Process', _("Process Transfer"), '',  'default');
 
 end_form();
 end_page();
index 3b2e70d6043e839c5b98e488e0b046bc85efe45e..e50e8947605ea07b64e4b661600dab22aaca0dd0 100644 (file)
@@ -279,7 +279,7 @@ start_form();
        qty_row(_("Quantity:"), 'quantity', null, null, null, $dec);
 
        end_table(1);
-       submit_add_or_update_center($selected_id == -1, '', true);
+       submit_add_or_update_center($selected_id == -1, '', 'both');
        end_form();
 }
 // ----------------------------------------------------------------------------------
index 19227df8e3e3f8fb668b38be6fa68056734cf9c4..116e4fec0605a1c2a8f656f6e2b9978bb917903e 100644 (file)
@@ -144,7 +144,7 @@ text_row_ex(_("Description:"), 'description', 50);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 348d283f356245f40452a547cebceb6fcd1f6a30..f14a57337e8728908752ceca9d1c83e9e419bb0d 100644 (file)
@@ -75,7 +75,7 @@ if ($outstanding_only==0)
 
 stock_manufactured_items_list_cells(_("for item:"), 'SelectedStockItem', null, true);
 
-submit_cells('SearchOrders', _("Search"),'',_('Select documents'), true);
+submit_cells('SearchOrders', _("Search"),'',_('Select documents'),  'default');
 end_row();
 end_table();
 
index b8036c371446757c245dec45340822f4a4e036e8..f2178e955e9c6e8f1d214d670984e64d1eb474ad 100644 (file)
@@ -171,7 +171,7 @@ textarea_row(_("Memo:"), 'memo_', null, 40, 3);
 
 end_table(1);
 
-submit_center_first('Process', _("Process"), '', true);
+submit_center_first('Process', _("Process"), '', 'default');
 submit_center_last('ProcessAndClose', _("Process And Close Order"), '', true);
 
 end_form();
index c4d3dd5d1a64054dc5d6db0589ee7921faee10f2..bcbfd00add7e8f79054f16aa8a244b72125a213a 100644 (file)
@@ -408,7 +408,7 @@ if (isset($selected_id))
 {
        echo "<table align=center><tr>";
 
-       submit_cells('UPDATE_ITEM', _("Update"), '', _('Save changes to work order'), true);
+       submit_cells('UPDATE_ITEM', _("Update"), '', _('Save changes to work order'), 'default');
        if (isset($_POST['released']))
        {
                submit_cells('close', _("Close This Work Order"),'','',true);
@@ -419,7 +419,7 @@ if (isset($selected_id))
 }
 else
 {
-       submit_center('ADD_ITEM', _("Add Workorder"), true, '', true);
+       submit_center('ADD_ITEM', _("Add Workorder"), true, '', 'default');
 }
 
 end_form();
index 1d994381aa44eb6d2a07679658d2c4dce1be3c8c..78a6ba38a381e4aa4f1ea76c256b14862a31a328 100644 (file)
@@ -215,7 +215,7 @@ echo "</td></tr>";
 
 end_table();
 
-submit_center('Process', _("Process Issue"), true, '', true);
+submit_center('Process', _("Process Issue"), true, '', 'default');
 
 end_form();
 
index 9cb8e22ed0c068605ba2f436b18c6e02f8e5e18c..b66613b1fb79d6e67601b23acb54f21610739188 100644 (file)
@@ -96,7 +96,7 @@ if (can_process($myrow))
 
     end_table(1);
 
-    submit_center('release', _("Release Work Order"), true, '', true);
+    submit_center('release', _("Release Work Order"), true, '', 'default');
 
     hidden('selected_id', $selected_id);
     hidden('stock_id', $myrow['stock_id']);
index 8e3cabd430203efbdb3d7c04f7c43744b52f18ce..900f5cc1d1ea3d468affb4ff636b64c882b8b8bd 100644 (file)
@@ -249,15 +249,15 @@ function edit_allocations_for_transaction($type, $trans_no)
                hidden('TotalNumberOfAllocs', $counter);
 
        submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
-               submit('Process', _("Process"), true, _('Process allocations'), true);
+               submit('Process', _("Process"), true, _('Process allocations'), 'default');
                submit_center_last('Cancel', _("Back to Allocations"),
-                       _('Abandon allocations and return to selection of allocatable amounts'), true);
+                       _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
        }
        else
        {
        display_note(_("There are no unsettled transactions to allocate."), 0, 1);
                submit_center('Cancel', _("Back to Allocations"), true,
-                       _('Abandon allocations and return to selection of allocatable amounts'), true);
+                       _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
     }
 
        div_end();
index 49c9b3067ec531e64d9a3340985c3d656b281d31..bd863ff2b27b409b6ae4ff930fef53c2c0979253 100644 (file)
@@ -68,7 +68,7 @@ locations_list_cells(_("Location:"), 'StockLocation', null, true);
 
 stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
 
-submit_cells('SearchOrders', _("Search"),'',_('Select documents'), true);
+submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 end_row();
 end_table();
 end_form();
index a9ca0c56d69f8c5968369c70f67f6232725fa21f..cd9c77ac754e1f407399f8a69f4915dd4f381f8c 100644 (file)
@@ -66,7 +66,7 @@ locations_list_cells(_("into location:"), 'StockLocation', null, true);
 
 stock_items_list_cells(_("for item:"), 'SelectStockFromList', null, true);
 
-submit_cells('SearchOrders', _("Search"),'',_('Select documents'), true);
+submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 end_row();
 end_table();
 end_form();
index 4ede5ca03c68040dd6b05c96d2e10013705686d0..1b99f73537d36384df1cfd6e6b7518dd4d785a2f 100644 (file)
@@ -54,7 +54,7 @@ supp_allocations_list_cell("filterType", null);
 
 check_cells(_("show settled:"), 'showSettled', null);
 
-submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true);
+submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 
 set_global_supplier($_POST['supplier_id']);
 
index 6814bba431f5a11b886d6ce9c2da714ea0faadaf..6db3ef91ac0841056f48f2e56c7a2f10cbf1981d 100644 (file)
@@ -50,7 +50,7 @@ date_cells(_("To:"), 'TransToDate');
 
 supp_allocations_list_cell("filterType", null);
 
-submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true);
+submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 
 end_row();
 end_table();
index 8fc3d870e92bf6e94df7503fa931d62f41d4ef5e..2681c4b587058efd25b1c39498aa31b36168b1d1 100644 (file)
@@ -288,14 +288,14 @@ div_start('controls');
 if (!$new_supplier) 
 {
        submit_center_first('submit', _("Update Supplier"), 
-         _('Update supplier data'), true);
-       submit_return('select', _("Return"), _("Select this supplier and return to document entry."), true);
+         _('Update supplier data'), 'default');
+       submit_return('select', _("Return"), _("Select this supplier and return to document entry."), 'cancel');
        submit_center_last('delete', _("Delete Supplier"), 
          _('Delete supplier data if have been never used'), true);
 }
 else 
 {
-       submit_center('submit', _("Add New Supplier Details"), true, '', true);
+       submit_center('submit', _("Add New Supplier Details"), true, '', 'default');
 }
 div_end();
 end_form();
index a394281ce16a1db6abef0adc7d1082659aa72ccc..c17dccaa760e154cfcccfe5ac39cbd91e060f31f 100644 (file)
@@ -154,12 +154,15 @@ function handle_cancel_po()
        if($_SESSION['PO']->order_no != 0)
        {
                delete_po($_SESSION['PO']->order_no);
-       }       
+       } else {
+               unset($_SESSION['PO']);
+               meta_forward($path_to_root.'/index.php','application=AP');
+       }
 
        $_SESSION['PO']->clear_items();
        $_SESSION['PO'] = new purch_order;
 
-       display_note(_("This purchase order has been cancelled."), 0, 1);
+       display_notification(_("This purchase order has been cancelled."));
 
        hyperlink_params($path_to_root . "/purchasing/po_entry_items.php", _("Enter a new purchase order"), "NewOrder=Yes");
        echo "<br>";
@@ -413,13 +416,13 @@ div_start('controls', 'items_table');
 if ($_SESSION['PO']->order_has_items()) 
 {
        if ($_SESSION['PO']->order_no)
-               submit_center_first('Commit', _("Update Order"), '', true);
+               submit_center_first('Commit', _("Update Order"), '', 'default');
        else
-               submit_center_first('Commit', _("Place Order"), '', true);
+               submit_center_first('Commit', _("Place Order"), '', 'default');
        submit_center_last('CancelOrder', _("Cancel Order"));   
 }
 else
-       submit_center('CancelOrder', _("Cancel Order"));        
+       submit_center('CancelOrder', _("Cancel Order"), true, false, 'cancel');
 div_end();
 //---------------------------------------------------------------------------------------------------
 
index 78bbff9a01ec290fa78bcb922c5989a021ecb1e0..7b50b4da6083e259a1847ed5da9c747bf2456fc0 100644 (file)
@@ -309,7 +309,7 @@ display_heading(_("Items to Receive"));
 display_po_receive_items();
 
 echo '<br>';
-submit_center_first('Update', _("Update"), '', true);
+submit_center_first('Update', _("Update"), '', 'default');
 submit_center_last('ProcessGoodsReceived', _("Process Receive Items"), _("Clear all GL entry fields"), true);
 
 end_form();
index 625b9e4d9192c64003385e31ac23b7deb018d7f0..e31b6bb1b19b904b6b28ea1ad9866114930d9a33 100644 (file)
@@ -348,7 +348,7 @@ if (get_post('AddGLCodeToTrans'))
        $Ajax->activate('inv_tot');
 
 br();
-submit_center('PostCreditNote', _("Enter Credit Note"), true, '', true);
+submit_center('PostCreditNote', _("Enter Credit Note"), true, '', 'default');
 br();
 
 end_form();
index 34f1520481852fe6f4e53047ed5c36e03804349a..a0782e2bf15fff62e76160dc686d32f49cfa700f 100644 (file)
@@ -416,7 +416,7 @@ if (get_post('AddGLCodeToTrans'))
        $Ajax->activate('inv_tot');
 
 br();
-submit_center('PostInvoice', _("Enter Invoice"), true, '', true);
+submit_center('PostInvoice', _("Enter Invoice"), true, '', 'default');
 br();
 
 end_form();
index 3dad427c768aeacff2891f598f929df084983763..df057e28cfe0ee2a9116f3b5a155514088e8f975 100644 (file)
@@ -122,7 +122,7 @@ function display_controls()
        //echo "</td></tr>";
        end_outer_table(1); // outer table
 
-       submit_center('ProcessSuppPayment',_("Enter Payment"), true, '', true);
+       submit_center('ProcessSuppPayment',_("Enter Payment"), true, '', 'default');
 
        if ($bank_currency != $supplier_currency) 
        {
index 363e2284ad8015593a45621d38ef865af714abf7..1e0090a148725bb8f688f0754e07ea0b056b57cc 100644 (file)
@@ -44,15 +44,17 @@ class BoxReports
                        $style = $class_counter==$_REQUEST['Class'] ? '' : "style='display:none'";
                        $acc = access_string($key);
                        $st_classes .= "<a href='"
-                               .$_SERVER['PHP_SELF']."?Class=$class_counter"
-                               ."' onclick='return showClass($class_counter);'$acc[1]>$acc[0]</a> <br>";
+                               .$_SERVER['PHP_SELF']."?Class=$class_counter'"
+                               ." class='menu_option' id='".default_focus()."'"
+                               ." onclick='return showClass($class_counter);'$acc[1]>$acc[0]</a> <br>";
                        $st_reports .= "<table id='TAB_" . $class_counter ."' $style cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td><b>" . _("Reports For Class: ") . "&nbsp;$key</b></td></tr>\n";
                        foreach($value as $report)
                        {
                                $acc = access_string($report->name);
                                $st_reports .= "<tr><td><a class='printlink' href='"
-                                       .$_SERVER['PHP_SELF']."?Class=$class_counter&rep_id=$report->id"
-                                       ."'$acc[1]>$acc[0]</a><tr><td>\n";
+                                       .$_SERVER['PHP_SELF']."?Class=$class_counter&rep_id=$report->id'"
+                                       ." id='".default_focus()."'"
+                                       ."$acc[1]>$acc[0]</a><tr><td>\n";
                                if (isset($_REQUEST['rep_id']) && $_REQUEST['rep_id']==$report->id) {
 
                                        $action = $path_to_root.'/reporting/prn_redirect.php';
@@ -61,8 +63,8 @@ class BoxReports
                                                . "<form method='POST' action='$action' target='_blank'>\n";
                                        $st_params .= hidden('REP_ID', $report->id, false);
                                        $st_params .= submit('Rep'.$report->id,  
-                                               _("Display: ") . access_string($report->name,true),
-                                               false, '', $pdf_debug==0) . '<br><br>';
+                                               _("Display: ") . access_string($report->name, true),
+                                               false, '', $pdf_debug ? false : 'default') . '<br><br>';
                                        $st_params .= $report->getDisplay() 
                                                . "\n</form></td></tr></table>\n";
                                        $Ajax->addUpdate(true, 'rep_form', $st_params);
index e8a5c5eced3130886f1f1042a37917f7520b7db3..b709c751f34a0166ebb8547310514c4a7794a016 100644 (file)
@@ -252,15 +252,15 @@ function edit_allocations_for_transaction($type, $trans_no)
 
                hidden('TotalNumberOfAllocs', $counter);
                submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
-               submit('Process', _("Process"), true, _('Process allocations'), true);
-               submit_center_last('Cancel', _("Back to Allocations"),_('Abandon allocations and return to selection of allocatable amounts'), true);
+               submit('Process', _("Process"), true, _('Process allocations'), 'default');
+               submit_center_last('Cancel', _("Back to Allocations"),_('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
        }
        else
        {
        display_note(_("There are no unsettled transactions to allocate."), 0, 1);
 
                submit_center('Cancel', _("Back to Allocations"), true,
-                       _('Abandon allocations and return to selection of allocatable amounts'), true);
+                       _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
     }
        div_end();
        end_form();
index 63c5ea2ff8541054ba58c6adee7781d097200cc1..a33f3407152cea083d6ce715a8e272897bbb326e 100644 (file)
@@ -278,7 +278,7 @@ if ($customer_error == "") {
 
 echo "<br><center><table><tr>";
 submit_cells('Update', _("Update"));
-submit_cells('ProcessCredit', _("Process Credit Note"));
+submit_cells('ProcessCredit', _("Process Credit Note"), '', false, 'default');
 echo "</tr></table></center>";
 
 end_form();
index 2371574806ada508b86dd11a203cbe3b73abcd2b..2d13e54729cb5eb2b2969803c9eae4867cc5518f 100644 (file)
@@ -385,7 +385,7 @@ display_credit_options();
 echo "<br><center>";
 submit('Update', _("Update"), true, _('Update credit value for quantities entered'), true);
 echo "&nbsp";
-submit('ProcessCredit', _("Process Credit Note"), true, '', true);
+submit('ProcessCredit', _("Process Credit Note"), true, '', 'default');
 echo "</center>";
 
 end_form();
index 97f4ce02708825333bac399ddd9e9e1ca0778d75..f779333832f128c5133626e7b5820be25bf07224 100644 (file)
@@ -470,7 +470,7 @@ div_end();
 submit_center_first('Update', _("Update"),
   _('Refresh document page'), true);
 submit_center_last('process_delivery', _("Process Dispatch"),
-  _('Check entered data and save document'), true);
+  _('Check entered data and save document'), 'default');
 
 end_form();
 
index 9836de48fad516e4330dcd2c0eb17b8a60b08a55..6c43ef2273931246b1b5b5ff3a795411d59d96bd 100644 (file)
@@ -512,7 +512,7 @@ end_table(1);
 submit_center_first('Update', _("Update"),
   _('Refresh document page'), true);
 submit_center_last('process_invoice', _("Process Invoice"),
-  _('Check entered data and save document'), true);
+  _('Check entered data and save document'), 'default');
 
 end_form();
 
index 5c871834e8e3540d7d172dfd305f9d6ce296e65d..4f232a9adb6476a8e4b13a77bd700f6bfb4e3cdb 100644 (file)
@@ -236,7 +236,7 @@ function display_item_form()
 
                echo"<br>";
 
-               submit_center('AddPaymentItem', _("Add Payment"), true, '', true);
+               submit_center('AddPaymentItem', _("Add Payment"), true, '', 'default');
        }
 
        echo "<br>";
index 614cebe7db9ad66fff5058cea8031acfd6510d7d..3313cebf652c56590f6ee403eb0d92a4c737fbf6 100644 (file)
@@ -48,7 +48,7 @@ cust_allocations_list_cells(_("Type:"), 'filterType', null);
 
 check_cells(" " . _("show settled:"), 'showSettled', null);
 
-submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true);
+submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 
 set_global_customer($_POST['customer_id']);
 
index 90ac0da6313f05ac905f895a8f825938bf3d495c..997e858b228f0bd336f3ca52f54fadd73a3ff48b 100644 (file)
@@ -51,7 +51,7 @@ if (!isset($_POST['filterType']))
 
 cust_allocations_list_cells(null, 'filterType', $_POST['filterType'], true);
 
-submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true);
+submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 end_row();
 end_table();
 end_form();
index 36eaf06318c6658d14b3d56ad7c82e4eabeacb9e..7995696d20ea86fece0aeb446d28b29022830315 100644 (file)
@@ -108,7 +108,7 @@ locations_list_cells(_("Location:"), 'StockLocation', null, true);
 
 stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
 
-submit_cells('SearchOrders', _("Search"),'',_('Select documents'), true);
+submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 
 hidden('OutstandingOnly', $_POST['OutstandingOnly']);
 
index 6422d690d4eb7607c07b3634b37950bf66c9a88f..7fab519162efa4faca7a6275165bf299dba031e0 100644 (file)
@@ -184,7 +184,7 @@ locations_list_cells(_("Location:"), 'StockLocation', null, true);
 
 stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
 
-submit_cells('SearchOrders', _("Search"),'',_('Select documents'), true);
+submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 
 hidden('order_view_mode', $_POST['order_view_mode']);
 
index 8d9400cc886a81757263a7f5b6722137d5b7d95c..20e6d117222bb1d55c6acda3f3a79dc64e2198a8 100644 (file)
@@ -150,7 +150,7 @@ yesno_list_row(_("Dissallow invoicing ?"), 'DisallowInvoices', null);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 3dced4dbe5b3ae5bf577542e6e7614b053b3b963..0e0fe1b9388cf9effbe48720e954bf3b2dcfa58b 100644 (file)
@@ -337,7 +337,7 @@ textarea_row(_("Billing Address:"), 'br_address', null, 35, 5);
 
 end_outer_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index ba7547565ae4eb8ff152d7ac267a9f0d4c0c76c1..87389b605caa638847ab7c4ddc7e835ceb99a188 100644 (file)
@@ -292,13 +292,13 @@ end_outer_table(1);
 div_start('controls');
 if ($new_customer)
 {
-       submit_center('submit', _("Add New Customer"), true, '', true);
+       submit_center('submit', _("Add New Customer"), true, '', 'default');
 } 
 else 
 {
        submit_center_first('submit', _("Update Customer"), 
          _('Update customer data'), true);
-       submit_return('select', _("Return"), _("Select this customer and return to document entry."), true);
+       submit_return('select', _("Return"), _("Select this customer and return to document entry."), 'default');
        submit_center_last('delete', _("Delete Customer"), 
          _('Delete customer data if have been never used'), true);
 }
index eace174d3aa6df912822e8033f9f18bee84f34fd..4e83cb02bac142bf37aa37b1d6465184f0646c06 100644 (file)
@@ -188,7 +188,7 @@ date_row(_("End:"), 'end', null, null, 0, 0, 5);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index c7baeee531a622c308ad750a8cac9d32f9fc897f..48ec735225fab0c65523b8454670f41650ae4c56 100644 (file)
@@ -131,7 +131,7 @@ text_row_ex(_("Area Name:"), 'description', 30);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 0fb676c6e070e611908c925c6c4cd3566cf47463..3fa4cc47913a64aac1981d47e8fbb73a2c3f565d 100644 (file)
@@ -131,7 +131,7 @@ text_row_ex(_("Group Name:"), 'description', 30);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 04e1948df6569c6e7506ef556b86c30c5e732952..d31799240c17294021ea9f08f63594df22a5b1fa 100644 (file)
@@ -182,7 +182,7 @@ amount_row(_("Break Pt.:"), 'break_pt');
 percent_row(_("Provision")." 2:", 'provision2');
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index ac949c08733460a81496bdd072b5558d366d4cdd..a8a47af4036f2e55003fcaff6e8d1b7136353a72 100644 (file)
@@ -131,7 +131,7 @@ cash_accounts_list_row(_("Default cash account").':', 'account');
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 1c4071bf866b0e2371c78b8cff96dfd9fbfca11a..d7213335efde51d00ac1ba6cd545df4087d0838e 100644 (file)
@@ -165,7 +165,7 @@ check_row(_("Tax included").':', 'tax_included', $_POST['tax_included']);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 91f21c97405c52dba08bdf9f2e436e88e3a27c01..ac4d2f0a51d0bd743d01ad71ad5f0c7a4f12ee83 100644 (file)
@@ -199,7 +199,7 @@ if (!isset($_POST['exempt']) || $_POST['exempt'] == 0)
     end_table(1);
 }
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index bc947284d616ebdb72e0c165f9699a1ab50395aa..f4d919b07ffc82dfe43033ba8a228763c55e8fe5 100644 (file)
@@ -233,7 +233,7 @@ for ($i = 0; $i < 5; $i++)
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 
index 6639e05a8eddaaeebe8588b6df010506d83b2523..b2eb2b9b0f199e66de0b31f8cf56fea8b4576cce 100644 (file)
@@ -158,7 +158,7 @@ gl_all_accounts_list_row(_("Purchasing GL Account:"), 'purchasing_gl_code', null
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();