@feedmepos/mf-inventory-portal 0.0.19-dev.15 → 0.0.19-dev.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{ApprovalView-CRHU3Bv0.js → ApprovalView-YVJ8rI2M.js} +5 -5
  2. package/dist/{BindingsDialog-ChIRg0d3.js → BindingsDialog-C7ZO5bXe.js} +9 -9
  3. package/dist/{BindingsPicker-BJAbeiDf.js → BindingsPicker-BDsVbM3L.js} +1 -1
  4. package/dist/{BindingsTable-5MxWD_qa.js → BindingsTable-BiVQ4mvK.js} +1 -1
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vuSl8LVG.js +308 -0
  6. package/dist/{IngredientsView-qXrDtzSK.js → IngredientsView-CKDZsR2e.js} +5 -5
  7. package/dist/{IntegrationView-D6yFqod1.js → IntegrationView-DQZeJKul.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDcFEUcz.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6plo8rnV.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-BWwjMRqb.js → PurchaseOrderPrintPreview-Df-gYZFA.js} +1 -1
  11. package/dist/{ReceiveRequestView-C94SWDaj.js → ReceiveRequestView-CxW1ONAk.js} +8 -8
  12. package/dist/{RecipeView-CG9H_ZOo.js → RecipeView-B8eIaR2f.js} +4 -4
  13. package/dist/{StockView-BdXGfDNl.js → StockView-CqgqPyvI.js} +8 -8
  14. package/dist/SupplierView-CPHQT1Hn.js +817 -0
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DktBkwCx.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBmoU3pN.js} +4 -4
  16. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DV6IxKMM.js +1435 -0
  17. package/dist/TransferTemplateView-BR2-tTiQ.js +1290 -0
  18. package/dist/{UnitView-Dx2vWJXi.js → UnitView-vUCf46QM.js} +5 -5
  19. package/dist/{WarehouseView-UkmUZnqH.js → WarehouseView-B3D5kkAU.js} +3 -3
  20. package/dist/api/purchase-order-template.d.ts +4 -0
  21. package/dist/api/supplier.d.ts +6 -4
  22. package/dist/{app-BLzTa0Ut.js → app-Ds9lsiAo.js} +5542 -5522
  23. package/dist/app.js +1 -1
  24. package/dist/{array-AvWd53LI.js → array-ClJzD_Lt.js} +3 -3
  25. package/dist/components/ChangeLocationComponent.vue.d.ts +14 -11
  26. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -2
  27. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  28. package/dist/{decimal-DLYVb_I_.js → decimal-BZJuYjv-.js} +1 -1
  29. package/dist/format-unit-display-Dw4iQUDG.js +707 -0
  30. package/dist/{id-to-date-CKplrnj_.js → id-to-date-CLG4t5Zp.js} +1 -1
  31. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  32. package/dist/{layout-B9sdKjL9.js → layout-b03Lvqhx.js} +1 -1
  33. package/dist/stores/feature.d.ts +1 -0
  34. package/dist/stores/location.d.ts +1 -0
  35. package/dist/stores/supplier.d.ts +9 -9
  36. package/dist/supplier-C9OQNEl0.js +69 -0
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/views/supplier/components/SupplierDialogProps.d.ts +0 -1
  39. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +583 -1
  40. package/dist/{xlsx-C3AV6UrJ.js → xlsx-B5RUBjKV.js} +1209 -1209
  41. package/dist/{xlsx.util-slrhXhsk.js → xlsx.util-H2UkpLte.js} +4 -4
  42. package/package.json +3 -3
  43. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js +0 -306
  44. package/dist/SupplierView-ClL2oc8K.js +0 -813
  45. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js +0 -1437
  46. package/dist/TransferTemplateView-BXrNS8pg.js +0 -1279
  47. package/dist/format-unit-display-D_Z4TNZd.js +0 -668
  48. package/dist/supplier-BZ6HZcYB.js +0 -60
@@ -1,7 +1,7 @@
1
1
  import { useI18n as R } from "@feedmepos/mf-common";
2
2
  import { components as I, useBreakpoints as B } from "@feedmepos/ui-library";
3
3
  import { h as s, defineComponent as F, computed as M, openBlock as a, createBlock as V, resolveDynamicComponent as x, unref as p, normalizeClass as z, withCtx as D, createElementVNode as c, renderSlot as L, normalizeProps as N, guardReactiveProps as P, createElementBlock as m, Fragment as k, renderList as _, createVNode as b, createCommentVNode as w } from "vue";
4
- import { ai as E } from "./app-BLzTa0Ut.js";
4
+ import { ai as E } from "./app-Ds9lsiAo.js";
5
5
  const { FmMenu: S, FmButton: $, FmMenuItem: j } = I;
6
6
  function U(o, r) {
7
7
  return s(
@@ -8,4 +8,5 @@ export declare const useFeatureStore: () => {
8
8
  readonly manualReceive: boolean;
9
9
  readonly enablePoTemplate: boolean;
10
10
  readonly mustUsePoTemplate: boolean;
11
+ readonly mustManageBusinessOnlyPoTemplate: boolean;
11
12
  };
@@ -1854,6 +1854,7 @@ export declare function useLocationStore(): {
1854
1854
  };
1855
1855
  };
1856
1856
  }[];
1857
+ businessLevel: boolean;
1857
1858
  watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>): void;
1858
1859
  readLocations(): Promise<void>;
1859
1860
  setLocations(resp: InventoryLocation[]): void;
@@ -1,9 +1,9 @@
1
1
  import type { CreateType } from '@/api/type';
2
2
  export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier", Pick<{
3
3
  readSuppliers(): Promise<void>;
4
- createSupplier(supplier: CreateType<FdoSupplier>, businessLevel?: boolean): Promise<void>;
5
- updateSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
6
- deleteSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
4
+ createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
5
+ updateSupplier(supplier: FdoSupplier): Promise<void>;
6
+ deleteSupplier(supplier: FdoSupplier): Promise<void>;
7
7
  init(): Promise<void>;
8
8
  suppliers: import("vue").ComputedRef<{
9
9
  phoneNumber?: string | null | undefined;
@@ -262,9 +262,9 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
262
262
  }[]>;
263
263
  }, "locationSuppliers" | "businessSuppliers">, Pick<{
264
264
  readSuppliers(): Promise<void>;
265
- createSupplier(supplier: CreateType<FdoSupplier>, businessLevel?: boolean): Promise<void>;
266
- updateSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
267
- deleteSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
265
+ createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
266
+ updateSupplier(supplier: FdoSupplier): Promise<void>;
267
+ deleteSupplier(supplier: FdoSupplier): Promise<void>;
268
268
  init(): Promise<void>;
269
269
  suppliers: import("vue").ComputedRef<{
270
270
  phoneNumber?: string | null | undefined;
@@ -523,9 +523,9 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
523
523
  }[]>;
524
524
  }, "suppliers">, Pick<{
525
525
  readSuppliers(): Promise<void>;
526
- createSupplier(supplier: CreateType<FdoSupplier>, businessLevel?: boolean): Promise<void>;
527
- updateSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
528
- deleteSupplier(supplier: FdoSupplier, businessLevel?: boolean): Promise<void>;
526
+ createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
527
+ updateSupplier(supplier: FdoSupplier): Promise<void>;
528
+ deleteSupplier(supplier: FdoSupplier): Promise<void>;
529
529
  init(): Promise<void>;
530
530
  suppliers: import("vue").ComputedRef<{
531
531
  phoneNumber?: string | null | undefined;
@@ -0,0 +1,69 @@
1
+ import { n as S, j as u, Q as m, T as y } from "./app-Ds9lsiAo.js";
2
+ import { useCoreStore as c } from "@feedmepos/mf-common";
3
+ import { defineStore as b } from "pinia";
4
+ import { ref as l, computed as v } from "vue";
5
+ const p = S((s, n) => {
6
+ function a() {
7
+ var o;
8
+ const e = c(), r = u(), t = r.businessLevel, i = `business_${((o = e.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, d = r.currentLocation.dbName;
9
+ return t ? i : d;
10
+ }
11
+ return {
12
+ async readSuppliers() {
13
+ const e = a(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
14
+ return await n.get(r);
15
+ },
16
+ async readLocationSuppliers() {
17
+ const r = u().currentLocation.dbName, t = `${s.inventoryBackendUrl}/${r}/supplier`;
18
+ return await n.get(t);
19
+ },
20
+ async readBusinessSuppliers() {
21
+ var i;
22
+ const r = `business_${((i = c().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, t = `${s.inventoryBackendUrl}/${r}/supplier`;
23
+ return await n.get(t);
24
+ },
25
+ async createSupplier(e) {
26
+ const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
27
+ return await n.post(t, e);
28
+ },
29
+ async updateSupplier(e) {
30
+ const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
31
+ return await n.put(t, e);
32
+ },
33
+ async deleteSupplier(e) {
34
+ const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
35
+ return await n.delete(t, e);
36
+ }
37
+ };
38
+ }), f = b("supplier", () => {
39
+ const s = l(new Array()), n = l(new Array()), a = v(() => [...s.value, ...n.value]);
40
+ return {
41
+ async readSuppliers() {
42
+ const e = p();
43
+ s.value = await e.readLocationSuppliers(), n.value = await e.readBusinessSuppliers();
44
+ },
45
+ async createSupplier(e) {
46
+ await p().createSupplier(e);
47
+ },
48
+ async updateSupplier(e) {
49
+ await p().updateSupplier(e);
50
+ },
51
+ async deleteSupplier(e) {
52
+ await p().deleteSupplier(e);
53
+ },
54
+ async init() {
55
+ const e = m();
56
+ try {
57
+ await this.readSuppliers();
58
+ } catch (r) {
59
+ throw r instanceof y || e.error("Error at reading suppliers"), r;
60
+ }
61
+ },
62
+ suppliers: a,
63
+ locationSuppliers: s,
64
+ businessSuppliers: n
65
+ };
66
+ });
67
+ export {
68
+ f as u
69
+ };