Update stock_entry.py
fixed for null expense account
This commit is contained in:
parent
329afe88f9
commit
ff04bf6346
@ -100,7 +100,7 @@ class StockEntry(StockController):
|
||||
if f in ["stock_uom", "conversion_factor"] or not item.get(f):
|
||||
item.set(f, item_details.get(f))
|
||||
|
||||
if self.difference_account:
|
||||
if self.difference_account and item.expense_account=="":
|
||||
item.expense_account = self.difference_account
|
||||
|
||||
if not item.transfer_qty:
|
||||
|
Loading…
x
Reference in New Issue
Block a user