Merge pull request #36167 from barredterra/percentage-rounding

fix: rounding of percentage fields
This commit is contained in:
Deepesh Garg
2023-07-30 14:41:30 +05:30
committed by GitHub
6 changed files with 27 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
title = "Warehouse",
actual_qty = (frm.doc.doctype==="Sales Order"
? doc.projected_qty : doc.actual_qty);
if(flt(frm.doc.per_delivered) < 100
if(flt(frm.doc.per_delivered, 2) < 100
&& in_list(["Sales Order Item", "Delivery Note Item"], doc.doctype)) {
if(actual_qty != undefined) {
if(actual_qty >= doc.qty) {