projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PHP 7.4 Bugs in some reports.
[fa-stable.git]
/
reporting
/
rep306.php
diff --git
a/reporting/rep306.php
b/reporting/rep306.php
index 728bd7a64e5c1aefb371f403f78c5cf7e6f16811..00cddadc1f96a000cd4c3fe61ff9abd0d87a2f55 100644
(file)
--- a/
reporting/rep306.php
+++ b/
reporting/rep306.php
@@
-38,7
+38,7
@@
function getTransactions($category, $location, $fromsupp, $item, $from, $to)
item.stock_id,
item.description, item.inactive,
move.loc_code,
item.stock_id,
item.description, item.inactive,
move.loc_code,
- supplier.supplier_id,
+ supplier.supplier_id
, IF(ISNULL(grn.rate), credit.rate, grn.rate) ex_rate
,
supplier.supp_name AS supplier_name,
move.tran_date,
move.qty AS qty,
supplier.supp_name AS supplier_name,
move.tran_date,
move.qty AS qty,
@@
-224,8
+224,7
@@
function print_inventory_purchase()
}
$curr = get_supplier_currency($trans['supplier_id']);
}
$curr = get_supplier_currency($trans['supplier_id']);
- $rate = get_exchange_rate_from_home_currency($curr, sql2date($trans['tran_date']));
- $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;
$rep->NewLine();
$trans['supp_reference'] = get_supp_inv_reference($trans['supplier_id'], $trans['stock_id'], $trans['tran_date']);
$rep->fontSize -= 2;
@@
-267,7
+266,7
@@
function print_inventory_purchase()
$rep->NewLine();
$rep->NewLine();
$total_supp = $total_qty = 0.0;
$rep->NewLine();
$rep->NewLine();
$total_supp = $total_qty = 0.0;
- $supplier_name =
$trans['supplier_name']
;
+ $supplier_name =
isset($trans['supplier_name']) ? $trans['supplier_name'] : ""
;
}
}
if ($supplier_name != '')
}
}
if ($supplier_name != '')