Skip to content

Commit

Permalink
fix: skip SO & DN validation for debit note
Browse files Browse the repository at this point in the history
(cherry picked from commit e2d1695)
  • Loading branch information
GursheenK authored and mergify[bot] committed Feb 23, 2024
1 parent 3b96aae commit cd42089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def validate(self):
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()
Expand Down

0 comments on commit cd42089

Please sign in to comment.