Skip to content

Commit

Permalink
fix: change message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Apr 17, 2024
1 parent 6303932 commit e8bcb17
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions india_compliance/gst_india/client_scripts/e_invoice_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ function show_cancel_e_invoice_dialog(frm, callback) {
const d = new frappe.ui.Dialog({
title: frm.doc.ewaybill
? __("Cancel e-Invoice and e-Waybill")
: __("Cancel e-Invoice") + "<br>" + __("Sales Invoice will also be Cancelled"),
: __("Cancel e-Invoice"),
fields: get_cancel_e_invoice_dialog_fields(frm),
primary_action_label: frm.doc.ewaybill
? __("Cancel IRN & e-Waybill")
: __("Cancel IRN"),
? __("Cancel IRN & e-Waybill & Invoice")
: __("Cancel IRN & Invoice"),
primary_action(values) {
frappe.call({
method: "india_compliance.gst_india.utils.e_invoice.cancel_e_invoice",
Expand All @@ -174,6 +174,12 @@ function show_cancel_e_invoice_dialog(frm, callback) {

india_compliance.primary_to_danger_btn(d);
d.show();

$(`
<div class="alert alert-warning" role="alert">
Sales invoice will be cancelled along with the IRN.
</div>
`).prependTo(d.wrapper);
}

function show_mark_e_invoice_as_cancelled_dialog(frm) {
Expand Down

0 comments on commit e8bcb17

Please sign in to comment.