Merge pull request #55864 from frappe/mergify/bp/version-15-hotfix/pr-55853

fix: pass source cost center to target cost center (backport #55853)
This commit is contained in:
Mihir Kandoi
2026-06-13 23:43:10 +05:30
committed by GitHub

View File

@@ -533,6 +533,7 @@ def make_return_doc(doctype: str, source_name: str, target_doc=None, return_agai
target_doc.so_detail = source_doc.so_detail
target_doc.expense_account = source_doc.expense_account
target_doc.dn_detail = source_doc.name
target_doc.cost_center = source_doc.cost_center
if default_warehouse_for_sales_return:
target_doc.warehouse = default_warehouse_for_sales_return
elif doctype == "Sales Invoice" or doctype == "POS Invoice":