X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep306.php;h=f3d022fd29fff42f73cddf5e9f2812d125071c5d;hb=dab9179f6d090c402dc4bf926cfd62a7879032bc;hp=5aa110418b524a7fa52910f58c8e8a68cfea47c8;hpb=4158930d4c9563173ff14f5586df4574e40516f5;p=fa-stable.git 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;