mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
fix: update irn_cancelled after cancelling irn
This commit is contained in:
committed by
Deepesh Garg
parent
48527c48d2
commit
df859fdc23
@@ -43,12 +43,10 @@ erpnext.setup_einvoice_actions = (doctype) => {
|
|||||||
method: 'erpnext.regional.india.e_invoice_utils.cancel_irn',
|
method: 'erpnext.regional.india.e_invoice_utils.cancel_irn',
|
||||||
args: { irn: frm.doc.irn, reason: data.reason.split('-')[0], remark: data.remark },
|
args: { irn: frm.doc.irn, reason: data.reason.split('-')[0], remark: data.remark },
|
||||||
freeze: true,
|
freeze: true,
|
||||||
callback: (res) => {
|
callback: () => {
|
||||||
if (res.message['Status'] == 1) {
|
frm.set_value('irn_cancelled', 1);
|
||||||
frm.set_value('irn_cancelled', 1);
|
frm.save("Update");
|
||||||
frm.save_or_update();
|
d.hide()
|
||||||
}
|
|
||||||
d.hide();
|
|
||||||
},
|
},
|
||||||
error: () => d.hide()
|
error: () => d.hide()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user