dashboard weight updates
This commit is contained in:
parent
3eadd05d1c
commit
76aa09f108
|
|
@ -118,6 +118,7 @@ export class ConsumptionDashboard extends Component {
|
|||
}
|
||||
// Default to first 2 characters of product code
|
||||
if (row.product_code && row.product_code.length >= 2) {
|
||||
debugger;
|
||||
return row.product_code.substring(0, 2).toUpperCase();
|
||||
}
|
||||
// Fallback if no product code
|
||||
|
|
@ -125,7 +126,7 @@ export class ConsumptionDashboard extends Component {
|
|||
}
|
||||
|
||||
processConsumptionData() {
|
||||
const po_rows = this.state.rows.filter(i => i.value > 0);
|
||||
const po_rows = this.state.rows.filter(i => i.value > 0 && i.quantity > 0);
|
||||
const neg_rows = this.state.rows.filter(i => i.value < 0);
|
||||
|
||||
// Group negative rows by reference and product prefix
|
||||
|
|
|
|||
Loading…
Reference in New Issue