feat: add getOrderlines and lines proxy getters to pos_store service
This commit is contained in:
parent
d2fe0b9f3d
commit
28518e8cb0
@ -162,6 +162,14 @@ patch(PosStore.prototype, {
|
||||
if (prop === 'changed_lines_to_print') {
|
||||
return changedLines;
|
||||
}
|
||||
if (prop === 'getOrderlines') {
|
||||
return function() {
|
||||
return changedLines;
|
||||
};
|
||||
}
|
||||
if (prop === 'lines') {
|
||||
return changedLines;
|
||||
}
|
||||
let value = Reflect.get(target, prop, receiver);
|
||||
if (typeof value === 'function') {
|
||||
return value.bind(receiver);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user