FG after order qty
This commit is contained in:
parent
bc4672e695
commit
0ca4e94507
|
|
@ -185,7 +185,7 @@ export class CustomerOrderStatusGrid extends Component {
|
||||||
dispatched_qty: parseFloat(row.dispatched_qty),
|
dispatched_qty: parseFloat(row.dispatched_qty),
|
||||||
dispatched_qty_kg: parseFloat(row.dispatched_qty_kg) || 0,
|
dispatched_qty_kg: parseFloat(row.dispatched_qty_kg) || 0,
|
||||||
fg_qty: parseFloat(row.fg_qty) || 0,
|
fg_qty: parseFloat(row.fg_qty) || 0,
|
||||||
remaining_to_produce: Math.max(0, parseFloat(row.order_qty) - parseFloat(row.produced_qty)),
|
remaining_to_produce: Math.max(0, parseFloat(row.order_qty) - (parseFloat(row.produced_qty) + parseFloat(row.fg_qty))),
|
||||||
remaining_dispatch_qty: Math.max(0, parseFloat(row.order_qty) - parseFloat(row.dispatched_qty)),
|
remaining_dispatch_qty: Math.max(0, parseFloat(row.order_qty) - parseFloat(row.dispatched_qty)),
|
||||||
completion_rate: parseFloat(row.produced_qty) > 0 ? ((parseFloat(row.produced_qty) / parseFloat(row.order_qty)) * 100) : 0
|
completion_rate: parseFloat(row.produced_qty) > 0 ? ((parseFloat(row.produced_qty) / parseFloat(row.order_qty)) * 100) : 0
|
||||||
};
|
};
|
||||||
|
|
@ -785,6 +785,22 @@ export class CustomerOrderStatusGrid extends Component {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "FG Available",
|
||||||
|
width: 100,
|
||||||
|
dataIndx: "fg_qty",
|
||||||
|
dataType: "float",
|
||||||
|
filter: true,
|
||||||
|
sortable: true,
|
||||||
|
align: "right",
|
||||||
|
render: (ui) => this.formatInteger(ui.cellData),
|
||||||
|
|
||||||
|
summary: {
|
||||||
|
type: "sum",
|
||||||
|
label: "Total:",
|
||||||
|
render: (ui) => this.formatInteger(ui.data)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Produced Qty",
|
title: "Produced Qty",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -859,22 +875,6 @@ export class CustomerOrderStatusGrid extends Component {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "FG Available",
|
|
||||||
width: 100,
|
|
||||||
dataIndx: "fg_qty",
|
|
||||||
dataType: "float",
|
|
||||||
filter: true,
|
|
||||||
sortable: true,
|
|
||||||
align: "right",
|
|
||||||
render: (ui) => this.formatInteger(ui.cellData),
|
|
||||||
|
|
||||||
summary: {
|
|
||||||
type: "sum",
|
|
||||||
label: "Total:",
|
|
||||||
render: (ui) => this.formatInteger(ui.data)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Remaining Production",
|
title: "Remaining Production",
|
||||||
width: 120,
|
width: 120,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue