This commit is contained in:
seb
2026-09-17 11:46:22 +02:00
parent ab6d018a1f
commit 49efd5f8a1
23 changed files with 1384 additions and 79 deletions

21
src/db/articlesupplier.js Normal file
View File

@@ -0,0 +1,21 @@
import { getStore } from './store.js';
export async function listByArticleSku(googleAuthId, sku) {
const store = await getStore();
return store.articlesupplier.listByArticleSku(googleAuthId, sku);
}
export async function create(googleAuthId, sku, data) {
const store = await getStore();
return store.articlesupplier.create(googleAuthId, sku, data);
}
export async function update(googleAuthId, sku, id, data) {
const store = await getStore();
return store.articlesupplier.update(googleAuthId, sku, id, data);
}
export async function remove(googleAuthId, sku, id) {
const store = await getStore();
return store.articlesupplier.delete(googleAuthId, sku, id);
}

View File

@@ -29,6 +29,7 @@ const STORE_NAMESPACES = [
'order',
'numbers',
'companysetting',
'articlesupplier',
];
/**