Payment terms were not retrieved on invoice edit start.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 3 Feb 2010 16:32:09 +0000 (16:32 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 3 Feb 2010 16:32:09 +0000 (16:32 +0000)
CHANGELOG.txt
sales/customer_invoice.php

index d31867ae69e25a91c917c0d5da443c7c6dacbfdf..29a9d6d1c74fb91523f894721f15b23b37c6ef3a 100644 (file)
@@ -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
index 66e3c6b927ad863b22b325d54fa7a36afa57fe30..97859b3eab7b06ad1ddb303e25f3de26aacc7787 100644 (file)
@@ -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;
 }
 
 //-----------------------------------------------------------------------------