2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 15:17:30 +00:00

fix: list only inventory items (trackItem enabled)

This commit is contained in:
akshayitzme 2023-09-25 10:46:26 +05:30 committed by akshayitzme
parent 819d88f494
commit 23f9fc97d6

View File

@ -131,6 +131,7 @@ export default defineComponent({
async setItems() { async setItems() {
const items = (await fyo.db.getAll(ModelNameEnum.Item, { const items = (await fyo.db.getAll(ModelNameEnum.Item, {
fields: [], fields: [],
filters: { trackItem: true },
})) as Item[]; })) as Item[];
this.items = [] as POSItem[]; this.items = [] as POSItem[];