From fcf8bb0bd77cc542faea8c62eeefa29ac597e29a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 2 Sep 2008 23:05:24 +0000 Subject: [PATCH] Bug [0000045] Cannot close fiscal year --- CHANGELOG.txt | 4 +++- admin/fiscalyears.php | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b796eaa..050348e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -21,10 +21,12 @@ $ -> Affected files 03-Sep-2008 Joe Hunt # Bug [0000043] Inventory Adjustment Session doesn't update standard cost -# Bug [0000044]Standard Cost error on credit note +# Bug [0000044] Standard Cost error on credit note $ /inventory/includes/db/items_adjust_db.inc /purchasing/includes/db/grn_db.inc /purchasing/includes/invoice_db.inc +# Bug [0000045] Cannot close fiscal year +$ /admin/fiscalyears.php 02-Sep-2008 Joe Hunt # Bug when selecting report, List of Journal Entries, by type. Nothing selected. diff --git a/admin/fiscalyears.php b/admin/fiscalyears.php index 9bbf404..8dfe4a8 100644 --- a/admin/fiscalyears.php +++ b/admin/fiscalyears.php @@ -52,16 +52,15 @@ function handle_submit() { global $selected_id, $Mode; - if (!check_data()) - return false; - if ($selected_id != -1) { - update_fiscalyear($_POST['from_date'], $_POST['closed']); + update_fiscalyear($selected_id, $_POST['closed']); display_notification(_('Selected fiscal year has been updated')); } else { + if (!check_data()) + return false; add_fiscalyear($_POST['from_date'], $_POST['to_date'], $_POST['closed']); display_notification(_('New fiscal year has been added')); } -- 2.30.2