Merge pull request #56055 from aerele/fix/support-71415

fix: disable is_debit_note while creating credit note
This commit is contained in:
Mihir Kandoi
2026-06-18 22:23:39 +05:30
committed by GitHub

View File

@@ -445,6 +445,8 @@ def make_return_doc(doctype: str, source_name: str, target_doc=None, return_agai
doc.pricing_rules = []
doc.return_against = source.name
doc.set_warehouse = ""
if doctype == "Sales Invoice":
doc.is_debit_note = 0
if doctype == "Sales Invoice" or doctype == "POS Invoice":
doc.is_pos = source.is_pos