From 3c4482206218de2faceeb2f6563c92f28e57db50 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 20 Mar 2008 11:50:52 +0000 Subject: [PATCH] DB error fix on new customer entry --- sales/manage/customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/manage/customers.php b/sales/manage/customers.php index 6462eb27..a82c71b0 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -92,7 +92,7 @@ function handle_submit() sales_type) VALUES ('" . $_POST['CustName'] ."', '" . $_POST['address'] . "', '" . $_POST['tax_id'] . "', '" . $_POST['email'] . "', " . $_POST['dimension_id'] . ", " . $_POST['dimension2_id'] . ", '" . $_POST['curr_code'] . "', " . $_POST['credit_status'] . ", '" . $_POST['payment_terms'] . "', " . input_num('discount')/100 . ", - " . input_num('pymt_discount')/100 . ", " . $_POST['credit_limit'] . ", '" . $_POST['sales_type'] . "')"; + " . input_num('pymt_discount')/100 . ", " . input_num('credit_limit') . ", '" . $_POST['sales_type'] . "')"; db_query($sql,"The customer could not be added"); -- 2.30.2