@feedmepos/mf-inventory-portal 1.2.7-dev.3 → 1.2.7-dev.5

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 (58) hide show
  1. package/dist/{App-JINYgYlH.js → App-D-KXb_V4.js} +1 -1
  2. package/dist/{ApprovalView-BOVW2i8o.js → ApprovalView-CsKOxurA.js} +26 -26
  3. package/dist/{BindingsDialog-BKGLpdd-.js → BindingsDialog-kjERSnxa.js} +2 -2
  4. package/dist/{BindingsPicker-Tml6Oxod.js → BindingsPicker-EVKOOG5B.js} +1 -1
  5. package/dist/{BindingsTable-DixFHTyC.js → BindingsTable-B1JqtkAz.js} +1 -1
  6. package/dist/{ClosingDraftView-nYSugXo0.js → ClosingDraftView-DHMT4v-d.js} +203 -203
  7. package/dist/{ClosingTemplateView-C-gfh6s5.js → ClosingTemplateView-BOkJvuFp.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-BM9ZkrEw.js → DeliveryOrderPrintPreview-CPKPeJQI.js} +9 -9
  9. package/dist/{FmAdminBadge-CiWXN0lw.js → FmAdminBadge-pU1X5Yn4.js} +6 -6
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn_c22ms.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BqmttydS.js} +21 -21
  11. package/dist/{FmMultiselectDialog-Bvekm8TI.js → FmMultiselectDialog-CwqvhCpx.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D62ZdWwZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dbej6KBu.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BudJCuVV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XjYJ03c6.js} +1 -1
  14. package/dist/{IngredientGroupView-DTQzZBKp.js → IngredientGroupView-Dj1wbUXi.js} +12 -12
  15. package/dist/IngredientsView-B7AKdwz5.js +2194 -0
  16. package/dist/{IntegrationView-CN6amPy_.js → IntegrationView-Dyb-shZZ.js} +84 -84
  17. package/dist/{InventoryBindingForm-Dl9n2GJn.js → InventoryBindingForm-8Mo0N4ti.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4N9XvkmZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3Q8zHn_i.js} +41 -41
  19. package/dist/{InventoryBindingSummary-eAPN3X_L.js → InventoryBindingSummary-B9-I5Jo_.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSp3zFJ3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-8vhGMGrt.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2L9cWwt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B-wDdcG4.js} +5 -5
  22. package/dist/{PublishView-BzN2wu_M.js → PublishView-BsTvJ-rb.js} +17 -17
  23. package/dist/{PurchaseOrderPrintPreview-BR40N-ew.js → PurchaseOrderPrintPreview-B4S020Dy.js} +9 -9
  24. package/dist/{ReceiveRequestView-DtYFO3Wi.js → ReceiveRequestView-BpH2TvAE.js} +80 -80
  25. package/dist/{RecipeView-DlK-VV0_.js → RecipeView-CnE96AES.js} +49 -49
  26. package/dist/StockView-DSxsDKW2.js +2101 -0
  27. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bc0fwGq2.js +158 -0
  28. package/dist/{SupplierView-Cs8-A2B0.js → SupplierView-Cv-FJVM7.js} +1103 -1016
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dzm9Q3SP.js → TransferDetails.vue_vue_type_script_setup_true_lang-DDnhftMb.js} +6 -6
  30. package/dist/{TransferTemplateView-DlzKEqem.js → TransferTemplateView-CpguVi60.js} +88 -87
  31. package/dist/{UnitView-BsYiE8aM.js → UnitView-CbtWqtXO.js} +59 -59
  32. package/dist/{WarehouseView-DIW3iPB6.js → WarehouseView-JYKSCpwD.js} +25 -25
  33. package/dist/api/netsuite.d.ts +3 -0
  34. package/dist/api/purchase-order-template.d.ts +1 -0
  35. package/dist/{app-Bszzf6y-.js → app-CoQo_jq8.js} +2401 -2294
  36. package/dist/app.d.ts +57 -0
  37. package/dist/app.js +3 -3
  38. package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
  39. package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
  40. package/dist/{decimal-BoNXDQoB.js → decimal-IHcKpXSH.js} +1 -1
  41. package/dist/{format-unit-display-Dbabkv1O.js → format-unit-display-I8vKcqcG.js} +368 -400
  42. package/dist/{index-Dk2QEFDL.js → index-C5WsQ8SM.js} +1 -1
  43. package/dist/{index-DlhdJ3A4.js → index-Dr4zDNEV.js} +1 -1
  44. package/dist/purchase-order-template-R8t_fJYZ.js +41 -0
  45. package/dist/{stock-BXV3de2I.js → stock-BRaT53YB.js} +1 -1
  46. package/dist/stores/integration/netsuite.d.ts +19 -0
  47. package/dist/{supplier-CKKYVzDf.js → supplier-C6KmsrC2.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-DEmxBaQb.js → use-ingredient-select-dialog-DkjF8Xtg.js} +5 -5
  50. package/dist/{use-inventory-binding-dialog-DCN0J-F8.js → use-inventory-binding-dialog-mzDIl-dW.js} +8 -8
  51. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
  52. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
  53. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  54. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  55. package/package.json +2 -2
  56. package/dist/IngredientsView-DOUCnkCT.js +0 -1886
  57. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  58. package/dist/StockView-B4acF5it.js +0 -2086
@@ -1,4 +1,4 @@
1
- import { b2 as x, b9 as V, ba as q, bb as Re, bc as cl, bd as sr, be as Lt, bf as fl, bg as $l } from "./app-Bszzf6y-.js";
1
+ import { b3 as x, ba as V, bb as q, bc as Re, bd as cl, be as sr, bf as Lt, bg as fl, bh as $l } from "./app-CoQo_jq8.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b3 as p, aV as v, c as m, b as h } from "./app-Bszzf6y-.js";
2
+ import { u as d, b4 as p, aW as v, c as m, b as h } from "./app-CoQo_jq8.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -0,0 +1,41 @@
1
+ import { a6 as s } from "./app-CoQo_jq8.js";
2
+ import { useCoreStore as c } from "@feedmepos/mf-common";
3
+ const u = s((n, a) => {
4
+ function o() {
5
+ var t;
6
+ return `business_${((t = c().currentBusiness.value) == null ? void 0 : t._id) ?? ""}`;
7
+ }
8
+ return {
9
+ async getTemplate(e) {
10
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template/${e}`;
11
+ return a.get(t);
12
+ },
13
+ async getTemplateBySupplierId(e) {
14
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template?supplierId=${e}`;
15
+ return a.get(t);
16
+ },
17
+ async readTemplates() {
18
+ const e = o(), r = `${n.inventoryBackendUrl}/${e}/purchase-order-template`;
19
+ return a.get(r);
20
+ },
21
+ async createTemplate(e) {
22
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template`;
23
+ return a.post(t, e);
24
+ },
25
+ async updateTemplate(e) {
26
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template`;
27
+ return a.put(t, e);
28
+ },
29
+ async deleteTemplate(e) {
30
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template`;
31
+ return a.delete(t, { _id: e._id, _rev: e._rev });
32
+ },
33
+ async importTemplates(e) {
34
+ const r = o(), t = `${n.inventoryBackendUrl}/${r}/purchase-order-template/import`;
35
+ return a.post(t, e);
36
+ }
37
+ };
38
+ });
39
+ export {
40
+ u
41
+ };
@@ -1,4 +1,4 @@
1
- import { a4 as m, u as k, a as l, av as B, V as p } from "./app-Bszzf6y-.js";
1
+ import { a6 as m, u as k, a as l, ax as B, Z as p } from "./app-CoQo_jq8.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -20,7 +20,12 @@ interface NetSuiteSettingOption {
20
20
  }
21
21
  export interface NetSuiteState {
22
22
  setting: Omit<FdoNetSuiteSetting, 'realm' | 'accessToken'>;
23
+ businessSubsidiaryName: string;
23
24
  vendorSubsidiary: Record<string, string>;
25
+ skuSubsidiaries: Record<string, {
26
+ includeChildren: boolean;
27
+ subsidiaryNames: string[];
28
+ }>;
24
29
  isReady: boolean;
25
30
  skuOptions: Record<string, NetSuiteSettingOption>;
26
31
  }
@@ -40,6 +45,8 @@ export declare function useNetSuiteStore(): {
40
45
  readonly isReady: boolean;
41
46
  readonly isEnabled: boolean;
42
47
  readonly isBusinessLocation: boolean;
48
+ readonly businessSubsidiaryId: string | null | undefined;
49
+ readonly businessSubsidiaryName: string;
43
50
  readonly state: {
44
51
  setting: {
45
52
  _id: string;
@@ -60,6 +67,7 @@ export declare function useNetSuiteStore(): {
60
67
  subsidiaryIds: string[];
61
68
  includeChildren: boolean;
62
69
  }[];
70
+ subsidiaryId?: string | null | undefined;
63
71
  syncedAt?: string | null | undefined;
64
72
  restlet?: {
65
73
  type: "createItemReceipt" | "retrieveRecordInfo";
@@ -114,7 +122,12 @@ export declare function useNetSuiteStore(): {
114
122
  subsidiaryId: string;
115
123
  }[];
116
124
  };
125
+ businessSubsidiaryName: string;
117
126
  vendorSubsidiary: Record<string, string>;
127
+ skuSubsidiaries: Record<string, {
128
+ includeChildren: boolean;
129
+ subsidiaryNames: string[];
130
+ }>;
118
131
  isReady: boolean;
119
132
  skuOptions: Record<string, NetSuiteSettingOption>;
120
133
  };
@@ -238,6 +251,8 @@ export declare function useNetSuiteStore(): {
238
251
  label: string;
239
252
  value: FdoPurchaseOrderSubsidiaryNetSuiteSetting;
240
253
  }[];
254
+ getBusinessSubsidiaryTree(): FdoNetSuiteSubsidiaryWithChildren[];
255
+ getBusinessSubsidiaryPath(): string[];
241
256
  getAvailableItems(subsidiaryId?: string | null): string[];
242
257
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
243
258
  readSetting(): Promise<void>;
@@ -247,6 +262,10 @@ export declare function useNetSuiteStore(): {
247
262
  }>): Promise<any>;
248
263
  getNetSuiteLocations(): Promise<any>;
249
264
  getVendorSubsidiaryName(supplierId: string): string;
265
+ getSkuSubsidiaries(skuId: string): {
266
+ includeChildren: boolean;
267
+ subsidiaryNames: string[];
268
+ };
250
269
  syncPurchaseOrder(poId: string, locationDb?: string): Promise<void>;
251
270
  getItemCustomCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
252
271
  getNetSuiteLocationOptions(): Promise<{
@@ -1,4 +1,4 @@
1
- import { a4 as m, u, c as b, x as w, aw as v, ax as $ } from "./app-Bszzf6y-.js";
1
+ import { a6 as m, u, c as b, C as w, ay as v, az as $ } from "./app-CoQo_jq8.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";