fix: rounding of percentage fields

Always round with precision of 2
This commit is contained in:
barredterra
2023-07-17 16:45:11 +02:00
parent 3b246fd7e6
commit ecaf0aba3c
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) {