X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fadjustments.php;h=5a9f95d6c2dc54005b637a31f7095efaa66b9cd4;hb=da0f29ef8eb73e7a3cf6484af8fd04726e0e5ef1;hp=e1ce702444708fbefd5bdfd110cfc6ca3d62f934;hpb=4d4371fb200bb27fd6b680ebd2d1aaa450a0be7e;p=fa-stable.git diff --git a/inventory/adjustments.php b/inventory/adjustments.php index e1ce7024..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']);