X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fview%2Fview_supp_payment.php;h=c9a455f1d614645da9c24bd791175db7021ce94c;hb=9f832e8ab3c679ab67e5d086a99774dac58e004a;hp=d6786f5538e075faafdcf226edf2e79f99094085;hpb=2a5e3a823d3091320bca214736627521e974fc7a;p=fa-stable.git diff --git a/purchasing/view/view_supp_payment.php b/purchasing/view/view_supp_payment.php index d6786f55..c9a455f1 100644 --- a/purchasing/view/view_supp_payment.php +++ b/purchasing/view/view_supp_payment.php @@ -17,7 +17,7 @@ include($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/purchasing/includes/purchasing_db.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); page(_($help_context = "View Payment to Supplier"), true, false, "", $js); @@ -33,10 +33,10 @@ $company_currency = get_company_currency(); $show_currencies = false; $show_both_amounts = false; -if (($receipt['bank_curr_code'] != $company_currency) || ($receipt['SupplierCurrCode'] != $company_currency)) +if (($receipt['bank_curr_code'] != $company_currency) || ($receipt['curr_code'] != $company_currency)) $show_currencies = true; -if ($receipt['bank_curr_code'] != $receipt['SupplierCurrCode']) +if ($receipt['bank_curr_code'] != $receipt['curr_code']) { $show_currencies = true; $show_both_amounts = true; @@ -47,7 +47,7 @@ echo "