X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_payments.php;h=ca2fcf6243ca7f244d7fc462024c0ada18962678;hb=7202616e85a0fb8907ced404e418d8a16a5ed53a;hp=24c6e0cd594e418c9032a918b112d218fdb5e622;hpb=f018643dc04ce130f1729e16a65458af443308a0;p=fa-stable.git diff --git a/sales/customer_payments.php b/sales/customer_payments.php index 24c6e0cd..ca2fcf62 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$path_to_root=".."; -$page_security = 3; +$page_security = 'SA_SALESPAYMNT'; +$path_to_root = ".."; include_once($path_to_root . "/includes/ui/allocation_cart.inc"); include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/date_functions.inc"); @@ -38,8 +38,6 @@ check_db_has_customers(_("There are no customers defined in the system.")); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); //---------------------------------------------------------------------------------------- -set_editor('customer', 'customer_id' , 'sales_type'); -set_editor('branch', 'BranchID' , 'bank_account'); if (list_updated('BranchID')) { // when branch is selected via external editor also customer can change @@ -240,11 +238,12 @@ start_form(); + $comp_currency = get_company_currency(); $cust_currency = get_customer_currency($_POST['customer_id']); $bank_currency = get_bank_account_currency($_POST['bank_account']); if ($cust_currency != $bank_currency) { - exchange_rate_display($bank_currency, $cust_currency, $_POST['DateBanked'], true); + exchange_rate_display($bank_currency, $cust_currency, $_POST['DateBanked'], ($bank_currency == $comp_currency)); } amount_row(_("Bank Charge:"), 'charge');