From: Janusz Dobrowolski Date: Fri, 31 Oct 2008 18:21:38 +0000 (+0000) Subject: Point of sale support. X-Git-Tag: v2.4.2~19^2~1811 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ab79693b43787b7b91a696a56d6287d87cfebdc1;p=fa-stable.git Point of sale support. --- diff --git a/sales/includes/db/sales_points_db.inc b/sales/includes/db/sales_points_db.inc new file mode 100644 index 00000000..6f54fa22 --- /dev/null +++ b/sales/includes/db/sales_points_db.inc @@ -0,0 +1,64 @@ + \ No newline at end of file diff --git a/sales/manage/sales_points.php b/sales/manage/sales_points.php new file mode 100644 index 00000000..fabb2fea --- /dev/null +++ b/sales/manage/sales_points.php @@ -0,0 +1,131 @@ +'; +//---------------------------------------------------------------------------------------------------- + +start_form(); + +start_table("$table_style2 width=30%"); + +if ($selected_id != -1) +{ + + if ($Mode == 'Edit') { + $myrow = get_sales_point($selected_id); + + $_POST['name'] = $myrow["pos_name"]; + $_POST['location'] = $myrow["pos_location"]; + $_POST['account'] = $myrow["pos_account"]; + $_POST['credit_sale'] = $myrow["credit_sale"]; + $_POST['cash_sale'] = $myrow["cash_sale"]; + } + hidden('selected_id', $selected_id); +} + +text_row_ex(_("Point of Sale Name").':', 'name', 20, 30); +check_row(_('Allowed credit sale'), 'credit', null); +check_row(_('Allowed cash sale'), 'cash', null); +locations_list_row(_("POS location").':', 'location'); +cash_accounts_list_row(_("Default cash account").':', 'account'); + +end_table(1); + +submit_add_or_update_center($selected_id == -1, '', true); + +end_form(); + +end_page(); + +?>