X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Frevaluate_currencies.php;h=c05237ac9e72ca63db5a39a9351c895d04e7dd63;hb=3974cfebf97c03e07b0beb608ae63b84b1e0f908;hp=d0050d415aafbea03feaee1a69dad3fbd5452c84;hpb=7ce9ff6a73214a39ff495f04b330563212b43acb;p=fa-stable.git diff --git a/gl/manage/revaluate_currencies.php b/gl/manage/revaluate_currencies.php index d0050d41..c05237ac 100644 --- a/gl/manage/revaluate_currencies.php +++ b/gl/manage/revaluate_currencies.php @@ -18,13 +18,14 @@ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/banking.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Revaluation of Currency Accounts"), false, false, "", $js); if (isset($_GET['AddedID'])) { $trans_no = $_GET['AddedID']; + $JE = $_GET['JE']; $trans_type = ST_JOURNAL; if ($trans_no == 0) @@ -35,6 +36,8 @@ if (isset($_GET['AddedID'])) display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Journal Entries for this Transfer"))); } + if ($JE > 0) + display_notification_centered(sprintf(_("%d Journal Entries for AR/AP accounts have been added"), $JE)); //display_footer_exit(); } @@ -81,9 +84,9 @@ function handle_submit() if (!check_data()) return; - $trans_no = add_exchange_variation_all($_POST['date'], $_POST['ref'], $_POST['memo_']); + $trans = add_exchange_variation_all($_POST['date'], $_POST['ref'], $_POST['memo_']); - meta_forward($_SERVER['PHP_SELF'], "AddedID=$trans_no"); + meta_forward($_SERVER['PHP_SELF'], "AddedID=".$trans[0]."&JE=".$trans[1]); //clear_data(); } @@ -126,4 +129,3 @@ display_reval(); end_page(); -?>