mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
feat: clear payment terms and schedule
This commit is contained in:
@@ -1060,11 +1060,16 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
to_clear.push("Payment Schedule Table");
|
to_clear.push("Payment Schedule Table");
|
||||||
}
|
}
|
||||||
|
|
||||||
frappe.msgprint(
|
frappe.confirm(
|
||||||
__(
|
__(
|
||||||
"Please clear the {0}",
|
"Do you want to clear the selected {0}?",
|
||||||
[frappe.utils.comma_and(to_clear.map(dt => __(dt)))]
|
[frappe.utils.comma_and(to_clear.map(dt => __(dt)))]
|
||||||
)
|
),
|
||||||
|
() => {
|
||||||
|
this.frm.set_value("payment_terms_template", "");
|
||||||
|
this.frm.clear_table("payment_schedule");
|
||||||
|
this.frm.refresh_field("payment_schedule");
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user