Skip to content

Commit 06ffe52

Browse files
Merge pull request #54681 from rohitwaghchaure/fixed-support-66529
fix: incorrect expense account book in purchase return
2 parents c120cc7 + 2a720e7 commit 06ffe52

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

erpnext/stock/doctype/purchase_receipt/purchase_receipt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ def make_divisional_loss_gl_entry(item, outgoing_amount):
725725
or stock_asset_rbnb
726726
)
727727

728+
if self.is_return and item.expense_account:
729+
loss_account = item.expense_account
730+
728731
cost_center = item.cost_center or frappe.get_cached_value(
729732
"Company", self.company, "cost_center"
730733
)

0 commit comments

Comments
 (0)