Merge pull request #33778 from barredterra/fix-missing-const

fix: missing constant definition
This commit is contained in:
Sagar Sharma 2023-01-21 22:28:49 +05:30 committed by GitHub
commit 72be489b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;