mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 15:11:52 +00:00
fix: disable is_debit_note while creating credit note
(cherry picked from commit 279c8dea06)
This commit is contained in:
@@ -380,6 +380,8 @@ def make_return_doc(doctype: str, source_name: str, target_doc=None, return_agai
|
|||||||
doc.pricing_rules = []
|
doc.pricing_rules = []
|
||||||
doc.return_against = source.name
|
doc.return_against = source.name
|
||||||
doc.set_warehouse = ""
|
doc.set_warehouse = ""
|
||||||
|
if doctype == "Sales Invoice":
|
||||||
|
doc.is_debit_note = 0
|
||||||
if doctype == "Sales Invoice" or doctype == "POS Invoice":
|
if doctype == "Sales Invoice" or doctype == "POS Invoice":
|
||||||
doc.is_pos = source.is_pos
|
doc.is_pos = source.is_pos
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user