fix(regional): removed payment schedule validation in sales invoice for italy (#45852)

This commit is contained in:
Lakshit Jain
2025-02-11 14:50:55 +05:30
committed by GitHub
parent 110412d8ad
commit 494310293c

View File

@@ -332,9 +332,6 @@ def sales_invoice_on_submit(doc, method):
]: ]:
return return
if not len(doc.payment_schedule):
frappe.throw(_("Please set the Payment Schedule"), title=_("E-Invoicing Information Missing"))
else:
for schedule in doc.payment_schedule: for schedule in doc.payment_schedule:
if not schedule.mode_of_payment: if not schedule.mode_of_payment:
frappe.throw( frappe.throw(