Skip to content

Commit

Permalink
fix: check reposting settings before allowing editable si
Browse files Browse the repository at this point in the history
(cherry picked from commit 894ae1f)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 27, 2023
1 parent ac7615a commit 25bf475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
)
from erpnext.accounts.doctype.repost_accounting_ledger.repost_accounting_ledger import (
validate_docs_for_deferred_accounting,
validate_docs_for_voucher_types,
)
from erpnext.accounts.doctype.tax_withholding_category.tax_withholding_category import (
get_party_tax_withholding_details,
Expand Down Expand Up @@ -172,6 +173,7 @@ def validate_for_repost(self):
self.validate_write_off_account()
self.validate_account_for_change_amount()
self.validate_income_account()
validate_docs_for_voucher_types(["Sales Invoice"])
validate_docs_for_deferred_accounting([self.name], [])

def validate_fixed_asset(self):
Expand Down

0 comments on commit 25bf475

Please sign in to comment.