mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
progress bar in item grid
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
var delivered = doc.doctype==="Sales Order Item" ?
|
var delivered = doc.doctype==="Sales Order Item" ?
|
||||||
doc.delivered_qty : doc.received_qty,
|
doc.delivered_qty : doc.received_qty,
|
||||||
completed =
|
completed =
|
||||||
100 - cint((doc.qty - delivered) * 100 / doc.qty),
|
100 - cint((flt(doc.qty) - flt(delivered)) * 100 / flt(doc.qty)),
|
||||||
title = __("Delivered");
|
title = __("Delivered");
|
||||||
%}
|
%}
|
||||||
{% include "templates/form_grid/includes/progress.html" %}
|
{% include "templates/form_grid/includes/progress.html" %}
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
{% if(in_list(["Sales Order Item", "Purchase Order Item"],
|
{% if(in_list(["Sales Order Item", "Purchase Order Item"],
|
||||||
doc.doctype) && frm.doc.docstatus===1 && doc.amount) {
|
doc.doctype) && frm.doc.docstatus===1 && doc.amount) {
|
||||||
var completed =
|
var completed =
|
||||||
100 - cint((doc.amount - doc.billed_amt) * 100 / doc.amount),
|
100 - cint((flt(doc.amount) - flt(doc.billed_amt)) * 100 / flt(doc.amount)),
|
||||||
title = __("Billed");
|
title = __("Billed");
|
||||||
%}
|
%}
|
||||||
<br><small> </small>
|
<br><small> </small>
|
||||||
|
|||||||
Reference in New Issue
Block a user