From: Janusz Dobrowolski Date: Mon, 1 Mar 2010 22:22:52 +0000 (+0000) Subject: [0000213] Invalid date change for edited journal entries. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=3a619f583833bbebf8b064f87f527bb38d46e392;p=textcart.git [0000213] Invalid date change for edited journal entries. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7017f09..418aca8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,8 @@ $ -> Affected files 01-Mar-2010 Janusz Dobrowolski # [0000212] Selecting branch from popup was not working. $ /sales/manage/customer_branches.php +# [0000213] Date change on journal entry update. +$ /gl/gl_journal.php 01-Mar-2010 Joe Hunt ! Allow change of password without script in Create/Update Company. diff --git a/gl/gl_journal.php b/gl/gl_journal.php index d515b17..035de8a 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -118,10 +118,10 @@ function create_cart($type=0, $trans_no=0) } else { $cart->reference = $Refs->get_next(0); $cart->tran_date = new_doc_date(); + if (!is_date_in_fiscalyear($cart->tran_date)) + $cart->tran_date = end_fiscalyear(); $_POST['ref_original'] = -1; } - if (!is_date_in_fiscalyear($cart->tran_date)) - $cart->tran_date = end_fiscalyear(); $_POST['memo_'] = $cart->memo_; $_POST['ref'] = $cart->reference;