Skip to content

Commit

Permalink
fix: missing constant definition
Browse files Browse the repository at this point in the history
(cherry picked from commit 547d37b)
  • Loading branch information
barredterra authored and mergify[bot] committed Jan 21, 2023
1 parent 8af9a2f commit 219aa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/taxes_and_totals.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
calculate_item_values() {
var me = this;
if (!this.discount_amount_applied) {
for (item of this.frm.doc.items || []) {
for (const item of this.frm.doc.items || []) {
frappe.model.round_floats_in(item);
item.net_rate = item.rate;
item.qty = item.qty === undefined ? (me.frm.doc.is_return ? -1 : 1) : item.qty;
Expand Down

0 comments on commit 219aa81

Please sign in to comment.