mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 06:22:12 +00:00
fix: improved the conditions for determining voucher subtypes
(cherry picked from commit 00eee16190)
This commit is contained in:
@@ -1096,9 +1096,11 @@ class AccountsController(TransactionBase):
|
|||||||
return "Purchase Return"
|
return "Purchase Return"
|
||||||
elif self.doctype == "Delivery Note" and self.is_return:
|
elif self.doctype == "Delivery Note" and self.is_return:
|
||||||
return "Sales Return"
|
return "Sales Return"
|
||||||
elif (self.doctype == "Sales Invoice" and self.is_return) or self.doctype == "Purchase Invoice":
|
elif self.doctype == "Sales Invoice" and self.is_return:
|
||||||
return "Credit Note"
|
return "Credit Note"
|
||||||
elif (self.doctype == "Purchase Invoice" and self.is_return) or self.doctype == "Sales Invoice":
|
elif self.doctype == "Sales Invoice" and self.is_debit_note:
|
||||||
|
return "Debit Note"
|
||||||
|
elif self.doctype == "Purchase Invoice" and self.is_return:
|
||||||
return "Debit Note"
|
return "Debit Note"
|
||||||
|
|
||||||
return self.doctype
|
return self.doctype
|
||||||
|
|||||||
Reference in New Issue
Block a user