X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fadjustments.php;h=5a9f95d6c2dc54005b637a31f7095efaa66b9cd4;hb=0b253e5e0d23400838d3bfb4f27fb3fb2637b3ab;hp=bd8f1bed85e48ecf1f745584fc5c59104b8949a7;hpb=e8ae3516539a520338117f25d401c0fc234973a4;p=fa-stable.git diff --git a/inventory/adjustments.php b/inventory/adjustments.php index bd8f1bed..5a9f95d6 100644 --- a/inventory/adjustments.php +++ b/inventory/adjustments.php @@ -70,7 +70,7 @@ function handle_new_order() session_register("adj_items"); $_SESSION['adj_items'] = new items_cart(systypes::inventory_adjustment()); - $_POST['AdjDate'] = Today(); + $_POST['AdjDate'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['AdjDate'])) $_POST['AdjDate'] = end_fiscalyear(); $_SESSION['adj_items']->tran_date = $_POST['AdjDate']; @@ -134,7 +134,7 @@ if (isset($_POST['Process']) && can_process()){ $trans_no = add_stock_adjustment($_SESSION['adj_items']->line_items, $_POST['StockLocation'], $_POST['AdjDate'], $_POST['type'], $_POST['Increase'], $_POST['ref'], $_POST['memo_']); - + new_doc_date($_POST['AdjDate']); $_SESSION['adj_items']->clear_items(); unset($_SESSION['adj_items']); @@ -229,7 +229,7 @@ adjustment_options_controls(); end_outer_table(1, false); submit_center_first('Update', _("Update"), '', null); -submit_center_last('Process', _("Process Adjustment"), '', true); +submit_center_last('Process', _("Process Adjustment"), '', 'default'); end_form(); end_page();