X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fsales_order_entry.php;h=fd14cc8d8169f4072d63a3ceb905e85c576863ed;hb=21290a4a16ca78fe736f62cf1cb039c06cb53fca;hp=fcec49da05b23651aa0c842fcecb72ef31a39dea;hpb=24ad43d2a06e7f1986f8a2c246939b90ae021513;p=fa-stable.git diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index fcec49da..fd14cc8d 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -307,7 +307,7 @@ if (isset($_POST['ProcessOrder']) && can_process()) { } $trans_no = key($_SESSION['Items']->trans_no); $trans_type = $_SESSION['Items']->trans_type; - + new_doc_date($_SESSION['Items']->document_date); processing_end(); if ($modified) { meta_forward($_SERVER['PHP_SELF'], "UpdatedID=$trans_no"); @@ -422,7 +422,7 @@ function handle_cancel_order() } } else { processing_end(); - meta_forward($path_to_root.'/index.php?application=orders'); + meta_forward($path_to_root.'/index.php','application=orders'); } } $Ajax->activate('_page_body'); @@ -445,7 +445,7 @@ function create_cart($type, $trans_no) $doc = new Cart(30, array($trans_no)); $doc->trans_type = $type; $doc->trans_no = 0; - $doc->document_date = Today(); // 2006-06-15. Added so Invoices and Deliveries get current day + $doc->document_date = new_doc_date(); if ($type == 10) { $doc->due_date = get_invoice_duedate($doc->customer_id, $doc->document_date); $doc->pos = user_pos();