mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 22:19:18 +00:00
Merge pull request #54681 from rohitwaghchaure/fixed-support-66529
fix: incorrect expense account book in purchase return
This commit is contained in:
@@ -725,6 +725,9 @@ class PurchaseReceipt(BuyingController):
|
|||||||
or stock_asset_rbnb
|
or stock_asset_rbnb
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.is_return and item.expense_account:
|
||||||
|
loss_account = item.expense_account
|
||||||
|
|
||||||
cost_center = item.cost_center or frappe.get_cached_value(
|
cost_center = item.cost_center or frappe.get_cached_value(
|
||||||
"Company", self.company, "cost_center"
|
"Company", self.company, "cost_center"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user