feat: add comboTotalPrice and comboTotalPriceWithoutTax getters to PosOrderLine model
This commit is contained in:
parent
57fae57177
commit
a112ab83db
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user