Debian Codegraph @

addons/pos_glory_cash/static/src/app/services/pos_store.js

raw
1 import { patch } from "@web/core/utils/patch";
2 import { PosStore } from "@point_of_sale/app/services/pos_store";
3 import { PaymentGlory } from "@pos_glory_cash/app/payment_glory";
4
5 patch(PosStore.prototype, {
6 async processServerData() {
7 await super.processServerData();
8 for (const pm of this.models["pos.payment.method"].getAll()) {
9 if (pm.payment_method_type === "glory_cash") {
10 pm.payment_terminal = new PaymentGlory(this, pm);
11 }
12 }
13 },
14 });