@feedmepos/mf-inventory-portal 1.2.7-dev.2 → 1.2.7-dev.4

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 (55) hide show
  1. package/dist/{App-CBwWCCOM.js → App-C36fMhxq.js} +1 -1
  2. package/dist/{ApprovalView-BrRGheio.js → ApprovalView-BK-UXBwv.js} +26 -26
  3. package/dist/{BindingsDialog-BSPkkRis.js → BindingsDialog-C5ry8Cg7.js} +2 -2
  4. package/dist/{BindingsPicker-L3XnC3__.js → BindingsPicker-D1lrIB-Y.js} +1 -1
  5. package/dist/{BindingsTable-CgUm0Ity.js → BindingsTable-CoWyge2-.js} +1 -1
  6. package/dist/{ClosingDraftView-D_gq2fCk.js → ClosingDraftView-FFi85ylu.js} +203 -203
  7. package/dist/{ClosingTemplateView-Q16zr6EV.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
  9. package/dist/{FmAdminBadge-Cjy6QPoR.js → FmAdminBadge-DtBVrN_M.js} +6 -6
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnH2Qxnr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
  11. package/dist/{FmMultiselectDialog-BbYhJk_O.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CCuLSITo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
  14. package/dist/{IngredientGroupView-CJ9Rsfg-.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
  15. package/dist/IngredientsView-75ahXQeJ.js +2271 -0
  16. package/dist/{IntegrationView-B4giJ-Zl.js → IntegrationView-DEUOEn_W.js} +84 -84
  17. package/dist/{InventoryBindingForm-bNRoyTsA.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAaoOXUY.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
  19. package/dist/{InventoryBindingSummary-NfFve-nM.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP11tzty.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-yjjkBSqL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
  22. package/dist/{PublishView-w9GYA6kf.js → PublishView-DKkCs9F8.js} +17 -17
  23. package/dist/{PurchaseOrderPrintPreview-DmdDJmEq.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
  24. package/dist/{ReceiveRequestView-z4o7lZvK.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
  25. package/dist/{RecipeView-DiiQtfXn.js → RecipeView-CI_Tec4J.js} +49 -49
  26. package/dist/{StockView-DKR2nFdm.js → StockView-Bx3lqHZg.js} +327 -327
  27. package/dist/{SupplierView-BJcU4iQk.js → SupplierView-BT2aZGQE.js} +1103 -1016
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-UNVxzRmJ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +245 -245
  29. package/dist/{TransferTemplateView-rCbAWlh_.js → TransferTemplateView-DQtlCFze.js} +88 -87
  30. package/dist/{UnitView-BW9hbVHL.js → UnitView-h61yFjgP.js} +59 -59
  31. package/dist/{WarehouseView-BO0hf42-.js → WarehouseView-I8GqyD2C.js} +25 -25
  32. package/dist/api/netsuite.d.ts +3 -0
  33. package/dist/api/purchase-order-template.d.ts +1 -0
  34. package/dist/{app-ChezCkd5.js → app-CxSrmhCK.js} +6888 -6786
  35. package/dist/app.d.ts +57 -0
  36. package/dist/app.js +3 -3
  37. package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
  38. package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
  39. package/dist/{decimal-1sc-GcXN.js → decimal-DpfcXNky.js} +1 -1
  40. package/dist/{format-unit-display-BK2TkQOA.js → format-unit-display-xov4MvuI.js} +368 -400
  41. package/dist/{index-CWivxw9k.js → index-B4hWNXtZ.js} +1 -1
  42. package/dist/{index-cLW2Uxz3.js → index-CwzV_5fz.js} +1 -1
  43. package/dist/purchase-order-template-DkBl6qMP.js +41 -0
  44. package/dist/{stock-FEj_v-SS.js → stock-Nt176YY7.js} +1 -1
  45. package/dist/stores/integration/netsuite.d.ts +10 -0
  46. package/dist/{supplier-2r8VFThu.js → supplier-B7gAUwhb.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
  49. package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
  50. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
  51. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
  52. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  53. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  54. package/package.json +1 -1
  55. package/dist/IngredientsView-BbKzQnQP.js +0 -1886
@@ -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-ChezCkd5.js";
2
+ import { u as d, b4 as p, aW as v, c as m, b as h } from "./app-CxSrmhCK.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -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-ChezCkd5.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-CxSrmhCK.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -0,0 +1,41 @@
1
+ import { a6 as s } from "./app-CxSrmhCK.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-ChezCkd5.js";
1
+ import { a6 as m, u as k, a as l, ax as B, Z as p } from "./app-CxSrmhCK.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,9 @@ 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
+ skuSubsidiary: Record<string, string>;
24
26
  isReady: boolean;
25
27
  skuOptions: Record<string, NetSuiteSettingOption>;
26
28
  }
@@ -40,6 +42,8 @@ export declare function useNetSuiteStore(): {
40
42
  readonly isReady: boolean;
41
43
  readonly isEnabled: boolean;
42
44
  readonly isBusinessLocation: boolean;
45
+ readonly businessSubsidiaryId: string | null | undefined;
46
+ readonly businessSubsidiaryName: string;
43
47
  readonly state: {
44
48
  setting: {
45
49
  _id: string;
@@ -60,6 +64,7 @@ export declare function useNetSuiteStore(): {
60
64
  subsidiaryIds: string[];
61
65
  includeChildren: boolean;
62
66
  }[];
67
+ subsidiaryId?: string | null | undefined;
63
68
  syncedAt?: string | null | undefined;
64
69
  restlet?: {
65
70
  type: "createItemReceipt" | "retrieveRecordInfo";
@@ -114,7 +119,9 @@ export declare function useNetSuiteStore(): {
114
119
  subsidiaryId: string;
115
120
  }[];
116
121
  };
122
+ businessSubsidiaryName: string;
117
123
  vendorSubsidiary: Record<string, string>;
124
+ skuSubsidiary: Record<string, string>;
118
125
  isReady: boolean;
119
126
  skuOptions: Record<string, NetSuiteSettingOption>;
120
127
  };
@@ -238,6 +245,8 @@ export declare function useNetSuiteStore(): {
238
245
  label: string;
239
246
  value: FdoPurchaseOrderSubsidiaryNetSuiteSetting;
240
247
  }[];
248
+ getBusinessSubsidiaryTree(): FdoNetSuiteSubsidiaryWithChildren[];
249
+ getBusinessSubsidiaryPath(): string[];
241
250
  getAvailableItems(subsidiaryId?: string | null): string[];
242
251
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
243
252
  readSetting(): Promise<void>;
@@ -247,6 +256,7 @@ export declare function useNetSuiteStore(): {
247
256
  }>): Promise<any>;
248
257
  getNetSuiteLocations(): Promise<any>;
249
258
  getVendorSubsidiaryName(supplierId: string): string;
259
+ getSkuSubsidiaryName(skuId: string): string;
250
260
  syncPurchaseOrder(poId: string, locationDb?: string): Promise<void>;
251
261
  getItemCustomCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
252
262
  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-ChezCkd5.js";
1
+ import { a6 as m, u, c as b, C as w, ay as v, az as $ } from "./app-CxSrmhCK.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";