u
This commit is contained in:
21
src/db/articlesupplier.js
Normal file
21
src/db/articlesupplier.js
Normal 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);
|
||||
}
|
||||
@@ -29,6 +29,7 @@ const STORE_NAMESPACES = [
|
||||
'order',
|
||||
'numbers',
|
||||
'companysetting',
|
||||
'articlesupplier',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user