addons/l10n_uy_pos/static/src/overrides/component/payment_screen/payment_screen.js
raw| 1 | import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen"; |
| 2 | import { patch } from "@web/core/utils/patch"; |
| 3 | |
| 4 | patch(PaymentScreen.prototype, { |
| 5 | onMounted() { |
| 6 | super.onMounted(); |
| 7 | if (this.pos.company.country_id?.code == "UY") { |
| 8 | this.currentOrder.setToInvoice(true); |
| 9 | } |
| 10 | }, |
| 11 | }); |