Debian Codegraph @

addons/pos_sale/static/src/app/models/pos_order.js

raw symbols SCIP
1 import { PosOrder } from "@point_of_sale/app/models/pos_order";
2 import { patch } from "@web/core/utils/patch";
3
4 patch(PosOrder.prototype, {
5 //@override
6 _getIgnoredProductIdsTotalDiscount() {
7 const productIds = super._getIgnoredProductIdsTotalDiscount(...arguments);
8 if (this.config.down_payment_product_id) {
9 productIds.push(this.config.down_payment_product_id.id);
10 }
11 return productIds;
12 },
13 });