projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4863: Dimension not defaulted on po entry, po modify. @Braath Waate and @joe fixed
[fa-stable.git]
/
purchasing
/
includes
/
db
/
grn_db.inc
diff --git
a/purchasing/includes/db/grn_db.inc
b/purchasing/includes/db/grn_db.inc
index 49e4dcd23ef8f2ca1f215271f28e19eb6d6b267f..065b2c7d04fa0162df19529e402d9282c09d5fa4 100644
(file)
--- a/
purchasing/includes/db/grn_db.inc
+++ b/
purchasing/includes/db/grn_db.inc
@@
-147,8
+147,9
@@
function add_grn(&$po)
} /*end of order_line loop */
if ($clearing_act && $total != 0.0) {
} /*end of order_line loop */
if ($clearing_act && $total != 0.0) {
+ $accs = get_supplier_accounts($po->supplier_id);
$total += add_gl_trans_supplier(ST_SUPPRECEIVE, $grn, $date_, $clearing_act,
$total += add_gl_trans_supplier(ST_SUPPRECEIVE, $grn, $date_, $clearing_act,
-
0, 0
, -$total, null);
+
$accs['dimension_id'], $accs['dimension2_id']
, -$total, null);
}
$Refs->save(ST_SUPPRECEIVE, $grn, $po->reference);
}
$Refs->save(ST_SUPPRECEIVE, $grn, $po->reference);