@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,12 +1,12 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S, a3 as b } from "./app-Bszzf6y-.js";
2
+ import { a as S, s as b } from "./app-CoQo_jq8.js";
3
3
  import { useDialog as A } from "@feedmepos/ui-library";
4
4
  import { useI18n as I } from "@feedmepos/mf-common";
5
5
  const h = y(
6
6
  "ingredientSelectDialog",
7
7
  function() {
8
- const { t: s } = I(), n = S(), a = A();
9
- async function m(l, u) {
8
+ const { t: s } = I(), n = S(), m = A();
9
+ async function a(l, u) {
10
10
  const p = n.skus, g = u ?? ((t) => n.skuByCode[t]), d = p.map(
11
11
  (t) => {
12
12
  var e, o, i, c;
@@ -19,7 +19,7 @@ const h = y(
19
19
  };
20
20
  }
21
21
  ), f = l, { promise: v, resolve: r } = Promise.withResolvers();
22
- return a.open({
22
+ return m.open({
23
23
  title: s("inventory.transfer.form.items.selectItem"),
24
24
  closeButton: !0,
25
25
  contentComponent: b,
@@ -43,7 +43,7 @@ const h = y(
43
43
  r(e);
44
44
  }), v;
45
45
  }
46
- return { promptSelectIngredients: m };
46
+ return { promptSelectIngredients: a };
47
47
  }
48
48
  );
49
49
  export {
@@ -1,4 +1,4 @@
1
- import { a as P, a3 as g } from "./app-Bszzf6y-.js";
1
+ import { a as P, s as g } from "./app-CoQo_jq8.js";
2
2
  import { useDialog as E } from "@feedmepos/ui-library";
3
3
  function B() {
4
4
  const u = P(), _ = E();
@@ -7,7 +7,7 @@ function B() {
7
7
  const y = e.filter((n) => n.type === "SKU"), l = e.filter((n) => n.type !== "SKU"), c = /* @__PURE__ */ new Set();
8
8
  if (s)
9
9
  for (const n of u.skus)
10
- !f.some((r) => r === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((r) => r.id === s)) || c.add(n._id);
10
+ !f.some((a) => a === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((a) => a.id === s)) || c.add(n._id);
11
11
  const t = u.skus.map((n) => ({
12
12
  label: n.name,
13
13
  sublabel: `${n.code}${c.has(n._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
@@ -36,10 +36,10 @@ function B() {
36
36
  }).onPrimary((n) => {
37
37
  const d = [
38
38
  ...l,
39
- ...e.filter((r) => n.find((a) => a._id === r.id)),
40
- ...n.filter((r) => !e.find((a) => a.id === r._id)).map((r) => ({
39
+ ...e.filter((a) => n.find((r) => r._id === a.id)),
40
+ ...n.filter((a) => !e.find((r) => r.id === a._id)).map((a) => ({
41
41
  type: "SKU",
42
- id: r._id,
42
+ id: a._id,
43
43
  amount: {
44
44
  amount: 1,
45
45
  precision: 0
@@ -55,11 +55,11 @@ function B() {
55
55
  if (s.length)
56
56
  for (const i of u.recipes) {
57
57
  const o = ((p = u.recipeBindingFlattenCache[i._id]) == null ? void 0 : p.inventoryBindings) ?? [], n = o.some(
58
- (a) => a.bindingPaths.some((S) => s.some((h) => h === S.id))
58
+ (r) => r.bindingPaths.some((S) => s.some((h) => h === S.id))
59
59
  ), d = o.some(
60
- (a) => "success" in a && s.includes(a.ingredient._id)
60
+ (r) => "success" in r && s.includes(r.ingredient._id)
61
61
  );
62
- (s.some((a) => a === i._id) || n || d) && l.add(i._id);
62
+ (s.some((r) => r === i._id) || n || d) && l.add(i._id);
63
63
  }
64
64
  const c = u.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
65
65
  label: i.name,
@@ -76,6 +76,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  disabled: {
77
77
  type: import("vue").PropType<boolean>;
78
78
  };
79
+ purchaseOrderTemplateIds: {
80
+ type: import("vue").PropType<string[]>;
81
+ };
82
+ wastageTemplateIds: {
83
+ type: import("vue").PropType<string[]>;
84
+ };
79
85
  }>, {
80
86
  validateInputs: () => void;
81
87
  resetInputsValidation: () => void;
@@ -147,6 +153,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
147
153
  };
148
154
  }) => void;
149
155
  "click:submit": () => void;
156
+ "update:purchaseOrderTemplateIds": (templateIds: string[]) => void;
157
+ "update:wastageTemplateIds": (templateIds: string[]) => void;
150
158
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
151
159
  search: import("vue").PropType<string>;
152
160
  mode: {
@@ -224,6 +232,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
224
232
  disabled: {
225
233
  type: import("vue").PropType<boolean>;
226
234
  };
235
+ purchaseOrderTemplateIds: {
236
+ type: import("vue").PropType<string[]>;
237
+ };
238
+ wastageTemplateIds: {
239
+ type: import("vue").PropType<string[]>;
240
+ };
227
241
  }>> & Readonly<{
228
242
  "onUpdate:modelValue"?: ((mv: {
229
243
  isInactive?: boolean | null | undefined;
@@ -291,5 +305,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
291
305
  };
292
306
  }) => any) | undefined;
293
307
  "onClick:submit"?: (() => any) | undefined;
308
+ "onUpdate:purchaseOrderTemplateIds"?: ((templateIds: string[]) => any) | undefined;
309
+ "onUpdate:wastageTemplateIds"?: ((templateIds: string[]) => any) | undefined;
294
310
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
295
311
  export default _default;
@@ -3,8 +3,12 @@ export interface IngredientFormProps {
3
3
  mode: FormMode;
4
4
  modelValue: FdoInventorySku | null;
5
5
  disabled?: boolean;
6
+ purchaseOrderTemplateIds?: string[];
7
+ wastageTemplateIds?: string[];
6
8
  }
7
9
  export interface InventoryFormEvents {
8
10
  (event: 'update:modelValue', mv: FdoInventorySku): void;
9
11
  (event: 'click:submit'): void;
12
+ (event: 'update:purchaseOrderTemplateIds', templateIds: string[]): void;
13
+ (event: 'update:wastageTemplateIds', templateIds: string[]): void;
10
14
  }
@@ -1,6 +1,7 @@
1
1
  import type { LocationConfigurationDialogProps } from './BusinessNetSuiteSideSheetProps';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LocationConfigurationDialogProps>, {}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  "update:setting": (setting: Omit<{
4
+ subsidiaryId?: string | null | undefined;
4
5
  accessToken?: string | null | undefined;
5
6
  syncedAt?: string | null | undefined;
6
7
  restlet?: {
@@ -82,6 +83,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
82
83
  onSubmit?: (() => any) | undefined;
83
84
  "onUpdate:show"?: ((show: boolean) => any) | undefined;
84
85
  "onUpdate:setting"?: ((setting: Omit<{
86
+ subsidiaryId?: string | null | undefined;
85
87
  accessToken?: string | null | undefined;
86
88
  syncedAt?: string | null | undefined;
87
89
  restlet?: {
@@ -1,5 +1,6 @@
1
1
  export interface SupplierSupplyItemFieldProps {
2
2
  modelValue: FdoSupplierSupplyItem[];
3
+ autoAppendToTemplates?: boolean;
3
4
  }
4
5
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
6
  modelValue: import("vue").PropType<{
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
22
  };
22
23
  skuId: string;
23
24
  }[]>;
25
+ autoAppendToTemplates: import("vue").PropType<boolean>;
24
26
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
27
  modelValue: import("vue").PropType<{
26
28
  defaultCost: {
@@ -41,5 +43,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
43
  };
42
44
  skuId: string;
43
45
  }[]>;
46
+ autoAppendToTemplates: import("vue").PropType<boolean>;
44
47
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
48
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.7-dev.3",
3
+ "version": "1.2.7-dev.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -43,9 +43,9 @@
43
43
  "vue-i18n": "^10.0.5",
44
44
  "vue-router": "^4.4.0",
45
45
  "xlsx": "^0.18.5",
46
+ "@feedmepos/inventory-core-2": "^2.0.0",
46
47
  "@feedmepos/inventory-core": "^1.0.1-dev.2",
47
48
  "@feedmepos/inventory-core-dart": "^1.0.0",
48
- "@feedmepos/inventory-core-2": "^2.0.0",
49
49
  "@feedmepos/inventory-core-js": "^1.0.1",
50
50
  "@feedmepos/netsuite-core": "^1.0.0",
51
51
  "@feedmepos/zod-inventory": "^1.0.12"