Skip to content

Commit

Permalink
chore: Added check box to allow deferring submission of sales invoice.
Browse files Browse the repository at this point in the history
  • Loading branch information
GichanaMayaka committed Sep 16, 2024
1 parent 981f0b1 commit 639e73c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
def on_submit(doc: Document, method: str) -> None:
"""Intercepts submit event for document"""

if doc.custom_successfully_submitted == 0 and doc.update_stock == 1:
if (
doc.custom_successfully_submitted == 0
and doc.update_stock == 1
and doc.custom_defer_etims_submission == 0
):
generic_invoices_on_submit_override(doc, "Sales Invoice")

0 comments on commit 639e73c

Please sign in to comment.