feat: add getOrderlines and lines proxy getters to pos_store service

This commit is contained in:
Suherdy Yacob 2026-06-01 22:35:03 +07:00
parent d2fe0b9f3d
commit 28518e8cb0

View File

@ -162,6 +162,14 @@ patch(PosStore.prototype, {
if (prop === 'changed_lines_to_print') { if (prop === 'changed_lines_to_print') {
return changedLines; return changedLines;
} }
if (prop === 'getOrderlines') {
return function() {
return changedLines;
};
}
if (prop === 'lines') {
return changedLines;
}
let value = Reflect.get(target, prop, receiver); let value = Reflect.get(target, prop, receiver);
if (typeof value === 'function') { if (typeof value === 'function') {
return value.bind(receiver); return value.bind(receiver);