Payment terms related functions moved to separate file, common function for calculati...
[fa-stable.git] / sales / customer_delivery.php
index d0895890936e4cb72fa09da451cbd1f6ca0a85e0..637c238d70145fc61683989750072b2696edf4d9 100644 (file)
@@ -291,7 +291,7 @@ if (isset($_POST['process_delivery']) && check_data()) {
        if ($newdelivery)
                new_doc_date($dn->document_date);
 
-       $delivery_no = $dn->write($bo_policy);
+       $delivery_no = write_sales_trans($dn, $bo_policy);
 
        if ($delivery_no == -1)
        {
@@ -373,7 +373,7 @@ echo "</td><td>";// outer table
 start_table(TABLESTYLE, "width='90%'");
 
 if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) {
-       $_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->payment, $_POST['DispatchDate']);
+       $_POST['due_date'] = get_payment_due_date($_SESSION['Items']->payment, $_POST['DispatchDate']);
 }
 customer_credit_row($_SESSION['Items']->customer_id, $_SESSION['Items']->credit, "class='tableheader2'");