projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Item Tax Types: fixed inactive item tax types display switching.
[fa-stable.git]
/
reporting
/
rep301.php
diff --git
a/reporting/rep301.php
b/reporting/rep301.php
index fe8b58e743a9480ee840c37aad03ea6f99f5ff84..e2e568c875ca3a063472bca75cab677348c86390 100644
(file)
--- a/
reporting/rep301.php
+++ b/
reporting/rep301.php
@@
-66,7
+66,7
@@
function getAverageCost($stock_id, $to_date)
$to_date = date2sql($to_date);
$to_date = date2sql($to_date);
- $sql = "SELECT standard_cost,
price, tran_date, type, trans_no, qty, person_id
FROM ".TB_PREF."stock_moves
+ $sql = "SELECT standard_cost,
qty
FROM ".TB_PREF."stock_moves
WHERE stock_id=".db_escape($stock_id)."
AND tran_date <= '$to_date' AND standard_cost > 0.001 AND qty <> 0 AND type <> ".ST_LOCTRANSFER;
WHERE stock_id=".db_escape($stock_id)."
AND tran_date <= '$to_date' AND standard_cost > 0.001 AND qty <> 0 AND type <> ".ST_LOCTRANSFER;