chore: show irn cancelled check after cancellation

This commit is contained in:
Saqib Ansari
2020-09-30 13:07:38 +05:30
committed by Deepesh Garg
parent 6fce734476
commit d729f7f50e

View File

@@ -383,8 +383,10 @@ def make_custom_fields(update=True):
]
si_einvoice_fields = [
dict(fieldname='irn', label='IRN', fieldtype='Data', read_only=1, insert_after='customer'),
dict(fieldname='irn_cancelled', fieldtype='Check', hidden=1, read_only=1, default=0, allow_on_submit=1),
dict(fieldname='irn', label='IRN', fieldtype='Data', read_only=1,
insert_after='customer', depends_on='eval:(doc.irn_cancelled === 0)'),
dict(fieldname='irn_cancelled', label='IRN Cancelled', fieldtype='Check',
depends_on='eval:(doc.irn_cancelled === 1)', read_only=1, allow_on_submit=1, insert_after='customer'),
dict(fieldname='signed_einvoice', fieldtype='Code', options='JSON', hidden=1, read_only=1),
dict(fieldname='signed_qr_code', fieldtype='Code', options='JSON', hidden=1, read_only=1)
]