X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fcurrencies.php;h=eadbaf92656854a40ce4f2aa774069c188770839;hb=171074993d8f6768cde0626697abd6b4eab732a6;hp=0721dfaf3a97a45546915dcec926b8ba209104e3;hpb=3626626c1d1497affa0e1b1f7da41c656e78a385;p=fa-stable.git diff --git a/gl/manage/currencies.php b/gl/manage/currencies.php index 0721dfaf..eadbaf92 100644 --- a/gl/manage/currencies.php +++ b/gl/manage/currencies.php @@ -57,14 +57,14 @@ function handle_submit() update_currency($_POST['Abbreviation'], $_POST['Symbol'], $_POST['CurrencyName'], $_POST['country'], $_POST['hundreds_name']); - display_notification('Selected currency settings has been updated'); + display_notification(_('Selected currency settings has been updated')); } else { add_currency($_POST['Abbreviation'], $_POST['Symbol'], $_POST['CurrencyName'], $_POST['country'], $_POST['hundreds_name']); - display_notification('New currency has been added'); + display_notification(_('New currency has been added')); } $Mode = 'RESET'; } @@ -123,12 +123,11 @@ function check_can_delete() function handle_delete() { global $selected_id, $Mode; - if (!check_can_delete()) - return; + if (check_can_delete()) { //only delete if used in neither customer or supplier, comp prefs, bank trans accounts - - delete_currency($selected_id); - display_notification('Selected currency has been deleted'); + delete_currency($selected_id); + display_notification(_('Selected currency has been deleted')); + } $Mode = 'RESET'; }