Add entity customer numbers and scope APIs via selected company.
Entity gets an optional unique-per-company number with allocate/peek/isNumberFree helpers. Company-scoped store methods no longer take companyId and resolve google_auth.selected_company instead.
This commit is contained in:
@@ -10,7 +10,7 @@ import createManifestDocStore from '../manifestDoc/createStore.js';
|
||||
*
|
||||
* @example
|
||||
* const store = createOrderStore(pool);
|
||||
* const orders = await store.list(42, 1);
|
||||
* const orders = await store.list(42);
|
||||
* // => [{ id, number, type, entityId, date }]
|
||||
*/
|
||||
export default function createOrderStore(pool) {
|
||||
|
||||
Reference in New Issue
Block a user