commit | e2d16955dd6de197ef621e5f8fb3159f5a9bfaaa | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Thu Feb 22 16:24:42 2024 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Thu Feb 22 16:24:42 2024 +0530 |
tree | e2cf672747f10bce92148e9bb49ad82615474b2a | |
parent | 5a3b133d6520661fe28e4c2d73c17ef4eb48be1e [diff] |
fix: skip SO & DN validation for debit note
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index abc0694..622b724 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
@@ -270,7 +270,7 @@ super(SalesInvoice, self).validate() self.validate_auto_set_posting_time() - if not self.is_pos: + if not (self.is_pos or self.is_debit_note): self.so_dn_required() self.set_tax_withholding()