Merge branch 'master' into edge
This commit is contained in:
commit
56bac218f5
@ -750,6 +750,7 @@ class DocType(SellingController):
|
|||||||
for item in self.doclist.get({"parentfield": "entries"}):
|
for item in self.doclist.get({"parentfield": "entries"}):
|
||||||
self.check_expense_account(item)
|
self.check_expense_account(item)
|
||||||
|
|
||||||
|
if item.buying_amount:
|
||||||
gl_entries += self.get_gl_entries_for_stock(item.expense_account,
|
gl_entries += self.get_gl_entries_for_stock(item.expense_account,
|
||||||
-1*item.buying_amount, cost_center=item.cost_center)
|
-1*item.buying_amount, cost_center=item.cost_center)
|
||||||
|
|
||||||
|
@ -415,6 +415,7 @@ class DocType(SellingController):
|
|||||||
for item in self.doclist.get({"parentfield": "delivery_note_details"}):
|
for item in self.doclist.get({"parentfield": "delivery_note_details"}):
|
||||||
self.check_expense_account(item)
|
self.check_expense_account(item)
|
||||||
|
|
||||||
|
if item.buying_amount:
|
||||||
gl_entries += self.get_gl_entries_for_stock(item.expense_account, -1*item.buying_amount,
|
gl_entries += self.get_gl_entries_for_stock(item.expense_account, -1*item.buying_amount,
|
||||||
cost_center=item.cost_center)
|
cost_center=item.cost_center)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user