fix: initialize loyalty program result map to prevent undefined access during order processing
This commit is contained in:
parent
ca97bab9c4
commit
25ef115aa4
@ -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 = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user