fix: improved the conditions for determining voucher subtypes
This commit is contained in:
@@ -1070,9 +1070,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