mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix(regional): removed payment schedule validation in sales invoice for italy (backport #45852) (#45854)
fix(regional): removed payment schedule validation in sales invoice for italy (#45852)
(cherry picked from commit 494310293c)
Co-authored-by: Lakshit Jain <108322669+ljain112@users.noreply.github.com>
This commit is contained in:
@@ -331,9 +331,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(
|
||||||
|
|||||||
Reference in New Issue
Block a user