addons/product_expiry/static/src/forecasted_header.js
raw| 1 | import { patch } from "@web/core/utils/patch"; |
| 2 | import { ForecastedHeader } from "@stock/stock_forecasted/forecasted_header"; |
| 3 | |
| 4 | patch(ForecastedHeader.prototype, { |
| 5 | get to_remove_qty() { |
| 6 | return Object.values(this.props.docs.product).reduce((sum, p) => sum + (p.to_remove_qty || 0), 0); |
| 7 | } |
| 8 | }); |