fix(sales_order_list): compare type as well (#18331)
* fix(sales_order_list): compare type as well * fix(sales_order_list): compare type as well
This commit is contained in:
parent
ec810a4a55
commit
7697066cc2
@ -34,7 +34,7 @@ frappe.listview_settings['Sales Order'] = {
|
|||||||
"per_delivered,<,100|per_billed,=,100|status,!=,Closed"];
|
"per_delivered,<,100|per_billed,=,100|status,!=,Closed"];
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ((flt(doc.per_delivered, 6) == 100)
|
} else if ((flt(doc.per_delivered, 6) === 100)
|
||||||
&& flt(doc.grand_total) !== 0 && flt(doc.per_billed, 6) < 100 && doc.status !== "Closed") {
|
&& flt(doc.grand_total) !== 0 && flt(doc.per_billed, 6) < 100 && doc.status !== "Closed") {
|
||||||
// to bill
|
// to bill
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ frappe.listview_settings['Sales Order'] = {
|
|||||||
|
|
||||||
if(flt(doc.per_billed, 6) < 100 ){
|
if(flt(doc.per_billed, 6) < 100 ){
|
||||||
return [__("To Deliver and Bill"), "orange", "per_delivered,=,100|per_billed,<,100|status,!=,Closed"];
|
return [__("To Deliver and Bill"), "orange", "per_delivered,=,100|per_billed,<,100|status,!=,Closed"];
|
||||||
}else if(flt(doc.per_billed, 6) == 100){
|
}else if(flt(doc.per_billed, 6) === 100){
|
||||||
return [__("To Deliver"), "orange", "per_delivered,=,100|per_billed,=,100|status,!=,Closed"];
|
return [__("To Deliver"), "orange", "per_delivered,=,100|per_billed,=,100|status,!=,Closed"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user