mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: uncomment test condition
This commit is contained in:
@@ -26,8 +26,8 @@ def validate_einvoice_fields(doc):
|
|||||||
if not einvoicing_enabled or invalid_doctype or invalid_supply_type or company_transaction: return
|
if not einvoicing_enabled or invalid_doctype or invalid_supply_type or company_transaction: return
|
||||||
|
|
||||||
if doc.docstatus == 0 and doc._action == 'save':
|
if doc.docstatus == 0 and doc._action == 'save':
|
||||||
# if doc.irn:
|
if doc.irn:
|
||||||
# frappe.throw(_('You cannot edit the invoice after generating IRN'), title=_('Edit Not Allowed'))
|
frappe.throw(_('You cannot edit the invoice after generating IRN'), title=_('Edit Not Allowed'))
|
||||||
if len(doc.name) > 16:
|
if len(doc.name) > 16:
|
||||||
title = _('Document Name Too Long')
|
title = _('Document Name Too Long')
|
||||||
msg = _('As you have E-Invoicing enabled, To be able to generate IRN for this invoice, ')
|
msg = _('As you have E-Invoicing enabled, To be able to generate IRN for this invoice, ')
|
||||||
|
|||||||
Reference in New Issue
Block a user