X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=e46e38e7c3517afdf5c52bdab1b137cfa42f5611;hb=7618d9d62ee39a932f56565a4ce25d965bf53462;hp=2bc41391938c720dae8a96b6f3bc547ae3ff056e;hpb=0e9e4cf4f01431531dfed299bb501955bb0818ed;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 2bc41391..e46e38e7 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -189,7 +189,7 @@ if (isset($_POST['Update'])) { $Ajax->activate('Items'); } if (isset($_POST['_InvoiceDate_changed'])) { - $_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->payment, $_POST['InvoiceDate']); + $_POST['due_date'] = get_payment_due_date($_SESSION['Items']->payment, $_POST['InvoiceDate']); $Ajax->activate('due_date'); } @@ -381,7 +381,7 @@ if(list_updated('payment')) { copy_to_cart(); $order->payment = get_post('payment'); $order->payment_terms = get_payment_terms($order->payment); - $_POST['due_date'] = $order->due_date = get_invoice_duedate($order->payment, $order->document_date); + $_POST['due_date'] = $order->due_date = get_payment_due_date($order->payment, $order->document_date); $_POST['Comments'] = ''; $Ajax->activate('due_date'); $Ajax->activate('options'); @@ -486,7 +486,7 @@ date_cells(_("Date"), 'InvoiceDate', '', $_SESSION['Items']->trans_no == 0, 0, 0, 0, "class='tableheader2'", true); if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) { - $_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->payment, $_POST['InvoiceDate']); + $_POST['due_date'] = get_payment_due_date($_SESSION['Items']->payment, $_POST['InvoiceDate']); } date_cells(_("Due Date"), 'due_date', '', null, 0, 0, 0, "class='tableheader2'");