fix: expense account from item group not fetched
(cherry picked from commit 86ebe58231)
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -1627,7 +1627,7 @@ class StockEntry(StockController):
|
||||
"has_serial_no": item.has_serial_no,
|
||||
"has_batch_no": item.has_batch_no,
|
||||
"sample_quantity": item.sample_quantity,
|
||||
"expense_account": item.expense_account,
|
||||
"expense_account": item.expense_account or item_group_defaults.get("expense_account"),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user