feat: add comboTotalPrice and comboTotalPriceWithoutTax getters to PosOrderLine model

This commit is contained in:
Suherdy Yacob 2026-06-05 13:29:36 +07:00
parent 57fae57177
commit a112ab83db

View File

@ -18,5 +18,19 @@ patch(PosOrderline.prototype, {
: this.priceExclNoDiscount;
}
return super.displayPriceNoDiscount;
},
get comboTotalPrice() {
if (this.combo_line_ids && this.combo_line_ids.length > 0) {
return this.displayPrice;
}
return super.comboTotalPrice;
},
get comboTotalPriceWithoutTax() {
if (this.combo_line_ids && this.combo_line_ids.length > 0) {
return this.displayPriceUnitExcl;
}
return super.comboTotalPriceWithoutTax;
}
});