diff --git a/static/src/app/pos_order_patch.js b/static/src/app/pos_order_patch.js index 7e0e3ac..e046c65 100644 --- a/static/src/app/pos_order_patch.js +++ b/static/src/app/pos_order_patch.js @@ -72,6 +72,9 @@ patch(PosOrder.prototype, { } } const result = {}; + for (const program of this.models["loyalty.program"].getAll()) { + result[program.id] = []; + } for (const program of programs) { let points = 0; const splitPoints = [];