Merge pull request #41957 from rohitwaghchaure/fixed-17237

fix: expense account from item group not fetched
This commit is contained in:
rohitwaghchaure
2024-06-20 14:22:22 +05:30
committed by GitHub

View File

@@ -1650,7 +1650,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"),
}
)