Change product quantity compoent precision to 8

This commit is contained in:
2025-05-09 17:10:32 +00:00
parent e86a199c5e
commit f1a0b7be5e
7 changed files with 24 additions and 22 deletions

View File

@@ -70,10 +70,10 @@ var items = this.items;
if(total_quantity=='NaN'){
total_quantity=0;
}
$(row).val(QuantityFormat(total_quantity,6));
$(row).val(QuantityFormat(total_quantity,8));
console.log(items);
items[index ]['quantity'] = total_quantity.toFixed(6);
items[index ]['quantity'] = total_quantity.toFixed(8);
}
});
@@ -95,8 +95,8 @@ var items = this.items;
if(total_quantity=='NaN'){
total_quantity=0;
}
$(row).val(QuantityFormat(total_quantity,6));
items[index ]['quantity'] = total_quantity.toFixed(6);
$(row).val(QuantityFormat(total_quantity,8));
items[index ]['quantity'] = total_quantity.toFixed(8);
}
});