mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: missing assign item's expense_account
As in dict object "ret", missing assign item's expense_account will cause it then fetches the default stock_adjustment_account in 'Company'.
This commit is contained in:
@@ -757,7 +757,8 @@ class StockEntry(StockController):
|
|||||||
'serial_no' : '',
|
'serial_no' : '',
|
||||||
'has_serial_no' : item.has_serial_no,
|
'has_serial_no' : item.has_serial_no,
|
||||||
'has_batch_no' : item.has_batch_no,
|
'has_batch_no' : item.has_batch_no,
|
||||||
'sample_quantity' : item.sample_quantity
|
'sample_quantity' : item.sample_quantity,
|
||||||
|
'expense_account' : item.expense_account
|
||||||
})
|
})
|
||||||
|
|
||||||
# update uom
|
# update uom
|
||||||
|
|||||||
Reference in New Issue
Block a user