X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_points.php;h=972e3afc6dbbaeda446198dce8d8217de3c61db4;hb=a31195793c023906ab5da62f06ab84aefed445c3;hp=b394754855780ff0448451ab7099385e304ef921;hpb=963bc21ea092322d5750d4c0914b5e532e7d2467;p=fa-stable.git diff --git a/sales/manage/sales_points.php b/sales/manage/sales_points.php index b3947548..972e3afc 100644 --- a/sales/manage/sales_points.php +++ b/sales/manage/sales_points.php @@ -29,13 +29,6 @@ function can_process() set_focus('pos_name'); return false; } - if (!check_value('cash') && !check_value('credit')) - { - display_error(_("You must allow cash or credit sale.")); - set_focus('credit'); - return false; - } - return true; } @@ -64,7 +57,7 @@ if ($Mode=='UPDATE_ITEM' && can_process()) if ($Mode == 'Delete') { - if (key_in_foreign_table($selected_id, 'users', 'print_profile')) + if (key_in_foreign_table($selected_id, 'users', 'pos')) { display_error(_("Cannot delete this POS because it is used in users setup.")); } else { @@ -86,7 +79,7 @@ if ($Mode == 'RESET') $result = get_all_sales_points(check_value('show_inactive')); start_form(); -start_table("$table_style"); +start_table(TABLESTYLE); $th = array (_('POS Name'), _('Credit sale'), _('Cash sale'), _('Location'), _('Default account'), '',''); @@ -116,7 +109,7 @@ $cash = db_has_cash_accounts(); if (!$cash) display_note(_("To have cash POS first define at least one cash bank account.")); -start_table($table_style2); +start_table(TABLESTYLE2); if ($selected_id != -1) { @@ -135,12 +128,11 @@ if ($selected_id != -1) text_row_ex(_("Point of Sale Name").':', 'name', 20, 30); if($cash) { - check_row(_('Allowed credit sale'), 'credit', check_value('credit_sale')); - check_row(_('Allowed cash sale'), 'cash', check_value('cash_sale')); + check_row(_('Allowed credit sale terms selection:'), 'credit', check_value('credit_sale')); + check_row(_('Allowed cash sale terms selection:'), 'cash', check_value('cash_sale')); cash_accounts_list_row(_("Default cash account").':', 'account'); } else { hidden('credit', 1); - hidden('cash', 0); hidden('account', 0); } @@ -153,4 +145,3 @@ end_form(); end_page(); -?>