projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a00e7
)
Fixed A Bug in Item Sales Summary Report
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 29 Nov 2016 15:19:27 +0000
(16:19 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 29 Nov 2016 15:19:27 +0000
(16:19 +0100)
reporting/rep309.php
patch
|
blob
|
history
diff --git
a/reporting/rep309.php
b/reporting/rep309.php
index 1bb9ba06a7df49c8abd83794b3da93cd48c800a0..172034243c92ee8550c5924c608624e48b571131 100644
(file)
--- a/
reporting/rep309.php
+++ b/
reporting/rep309.php
@@
-50,7
+50,7
@@
function getTransactions($category, $from, $to)
AND trans.tran_date>='$from'
AND trans.tran_date<='$to'
AND line.quantity<>0
- AND
line.debtor_trans_type = ".ST_SALESINVOICE
;
+ AND
(line.debtor_trans_type = ".ST_SALESINVOICE." OR line.debtor_trans_type = ".ST_CUSTCREDIT.")"
;
if ($category != 0)
$sql .= " AND item.category_id = ".db_escape($category);
$sql .= " GROUP BY item.category_id,