mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Merge pull request #40090 from frappe/mergify/bp/version-14-hotfix/pr-40073
refactor: update payments section on item removal (backport #40073)
This commit is contained in:
@@ -140,7 +140,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.frm.fields_dict["items"]) {
|
if(this.frm.fields_dict["items"]) {
|
||||||
this["items_remove"] = this.calculate_net_weight;
|
this["items_remove"] = this.process_item_removal;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.frm.fields_dict["recurring_print_format"]) {
|
if(this.frm.fields_dict["recurring_print_format"]) {
|
||||||
@@ -1192,6 +1192,11 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process_item_removal() {
|
||||||
|
this.frm.trigger("calculate_taxes_and_totals");
|
||||||
|
this.frm.trigger("calculate_net_weight");
|
||||||
|
}
|
||||||
|
|
||||||
calculate_net_weight(){
|
calculate_net_weight(){
|
||||||
/* Calculate Total Net Weight then further applied shipping rule to calculate shipping charges.*/
|
/* Calculate Total Net Weight then further applied shipping rule to calculate shipping charges.*/
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user