| 1 |
import { patch } from "@web/core/utils/patch"; |
| 2 |
import { CustomerDisplayPosAdapter } from "@point_of_sale/app/customer_display/customer_display_adapter"; |
| 3 |
|
| 4 |
patch(CustomerDisplayPosAdapter.prototype, { |
| 5 |
formatOrderData(order) { |
| 6 |
super.formatOrderData(order); |
| 7 |
this.data.onlinePaymentData = { ...(order.onlinePaymentData || {}) }; |
| 8 |
}, |
| 9 |
getOrderlineData(line) { |
| 10 |
const data = super.getOrderlineData(line); |
| 11 |
data.l10n_in_hsn_code = line.getProduct().l10n_in_hsn_code || ""; |
| 12 |
return data; |
| 13 |
}, |
| 14 |
}); |