From: Joe Hunt Date: Mon, 20 Jun 2011 13:06:24 +0000 (+0200) Subject: 0000900: Supplier Payment in another currency the bank charge is wrongly calculated. X-Git-Tag: 2.3-final~615 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=cb94dfbeb6c9ca86a05399a7c92a76260697eb20;p=fa-stable.git 0000900: Supplier Payment in another currency the bank charge is wrongly calculated. --- diff --git a/purchasing/includes/db/supp_payment_db.inc b/purchasing/includes/db/supp_payment_db.inc index f4a0e27f..9628ac76 100644 --- a/purchasing/includes/db/supp_payment_db.inc +++ b/purchasing/includes/db/supp_payment_db.inc @@ -78,7 +78,7 @@ function add_supp_payment($supplier_id, $date_, $bank_account, /*now enter the bank_trans entry */ add_bank_trans($trans_type, $payment_id, $bank_account, $ref, - $date_, -($amount + $supp_charge), PT_SUPPLIER, + $date_, -($amount + $charge), PT_SUPPLIER, $supplier_id, $bank_account_currency, "Could not add the supplier payment bank transaction");