supplierAutomat
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import supplierAutomat from '../../automats/supplierAutomat';
|
||||
|
||||
/** Groups that are not sales customers (filter client-side). */
|
||||
export const EXCLUDED_CUSTOMER_GROUP_NAMES = new Set(['Lieferanten', 'POS']);
|
||||
|
||||
@@ -424,7 +426,10 @@ export const DELIVERY_LINE_COLUMNS = [
|
||||
*/
|
||||
export async function loadParties(kind, ctx) {
|
||||
if (kind === 'delivery') {
|
||||
const list = ctx.suppliers ?? (await ctx.supplierPromise);
|
||||
if (supplierAutomat.state.status === 'ready') {
|
||||
return sortSuppliers(supplierAutomat.state.suppliers);
|
||||
}
|
||||
const list = await supplierAutomat.actions.load();
|
||||
return sortSuppliers(list);
|
||||
}
|
||||
const [entities, groups] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user