From a99cb262f8c9e65ab86c231c997cca422e836817 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 20 Jun 2019 09:17:13 +0200 Subject: [PATCH] Rerun rep306. Fixed dupplicated rows. --- reporting/rep306.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reporting/rep306.php b/reporting/rep306.php index 5aa11041..f3d022fd 100644 --- a/reporting/rep306.php +++ b/reporting/rep306.php @@ -39,7 +39,6 @@ function getTransactions($category, $location, $fromsupp, $item, $from, $to) item.description, item.inactive, move.loc_code, supplier.supplier_id , IF(ISNULL(grn.rate), credit.rate, grn.rate) ex_rate, - supplier.supplier_id, supplier.supp_name AS supplier_name, move.tran_date, move.qty AS qty, @@ -225,9 +224,7 @@ function print_inventory_purchase() } $curr = get_supplier_currency($trans['supplier_id']); - //$rate = get_exchange_rate_from_home_currency($curr, sql2date($trans['tran_date'])); - $rate = $trans['ex_rate']; - $trans['price'] *= $rate; + $trans['price'] *= $trans['ex_rate']; $rep->NewLine(); $trans['supp_reference'] = get_supp_inv_reference($trans['supplier_id'], $trans['stock_id'], $trans['tran_date']); $rep->fontSize -= 2; -- 2.30.2