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-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=82be57b5a0596b6154fb91c4e4806b669dddd0f4;p=textcart.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 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");