From ecdf106d54bd51a3608422eb626d54ace2de81c4 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 3 Feb 2010 16:32:09 +0000 Subject: [PATCH] Payment terms were not retrieved on invoice edit start. --- CHANGELOG.txt | 4 ++++ sales/customer_invoice.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d31867ae..29a9d6d1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +02-Feb-2010 Janusz Dobrowolski +# Payment terms were not retrieved atinvoice edit start. +$ /sales/customer_invoice.php + 02-Feb-2010 Janusz Dobrowolski # Missing closing bracket $ /sql/alter2.3.php diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 66e3c6b9..97859b3e 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -227,6 +227,7 @@ function copy_to_cart() $cart->document_date = $_POST['InvoiceDate']; $cart->due_date = $_POST['due_date']; $cart->payment = $_POST['payment']; + $cart->payment_terms = get_payment_terms($_POST['payment']); $cart->Comments = $_POST['Comments']; if ($_SESSION['Items']->trans_no == 0) $cart->reference = $_POST['ref']; @@ -244,6 +245,7 @@ function copy_from_cart() $_POST['Comments']= $cart->Comments; $_POST['cart_id'] = $cart->cart_id; $_POST['ref'] = $cart->reference; + $_POST['payment'] = $cart->payment; } //----------------------------------------------------------------------------- -- 2.30.2