From 82be57b5a0596b6154fb91c4e4806b669dddd0f4 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 20 Jun 2011 15:06:24 +0200 Subject: [PATCH] 0000900: Supplier Payment in another currency the bank charge is wrongly calculated. --- purchasing/includes/db/supp_payment_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchasing/includes/db/supp_payment_db.inc b/purchasing/includes/db/supp_payment_db.inc index f4a0e27..9628ac7 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"); -- 2.30.2