projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffdea2c
)
Small change in voiding stock move.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 25 Nov 2011 12:48:43 +0000
(13:48 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 25 Nov 2011 12:48:43 +0000
(13:48 +0100)
includes/db/inventory_db.inc
patch
|
blob
|
history
diff --git
a/includes/db/inventory_db.inc
b/includes/db/inventory_db.inc
index 5a5dda4b24485f1b58043b445306bad8eef856f4..093ea6f1332c3288b5e16bedff4f915924cb76b9 100644
(file)
--- a/
includes/db/inventory_db.inc
+++ b/
includes/db/inventory_db.inc
@@
-391,7
+391,7
@@
function void_stock_move($type, $type_no)
{
// The cost has to be adjusted.
// Transaction rates are stored either as price or standard_cost depending on types
\r
- $types = array(ST_SUPPCREDIT);
+ $types = array(ST_SUPPCREDIT
, ST_SUPPRECEIVE
);
if (in_array($type,$types))
$trans_rate = $row["price"];
else