@feedmepos/mf-inventory-portal 1.2.60-dev.1 → 1.2.60

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 (132) hide show
  1. package/dist/{App-Dgk5k8U-.js → App-B6JtYLP4.js} +78 -82
  2. package/dist/{ApprovalView-CU2YMuZb.js → ApprovalView-fiHlFJKJ.js} +5 -5
  3. package/dist/{BindingsDialog-Cu0AR6jW.js → BindingsDialog-BlF79qCu.js} +5 -5
  4. package/dist/{BindingsPicker-DyycJJ6i.js → BindingsPicker-BS2OcyII.js} +3 -3
  5. package/dist/{BindingsTable-wFAnOCdU.js → BindingsTable-RyfzT4g6.js} +5 -5
  6. package/dist/{ClosingDraftView-C01bZNv_.js → ClosingDraftView-B2d-XA_E.js} +216 -217
  7. package/dist/{ClosingHistoryView-Bwjadf1x.js → ClosingHistoryView-DZPNorN6.js} +36 -36
  8. package/dist/{ClosingTemplateView-BAalivwa.js → ClosingTemplateView-L596UQJH.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-CaEmXkPV.js → DeliveryOrderPrintPreview-C82JPcVR.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D7J8uo_B.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CNf3PA0N.js} +17 -17
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DU4I0imJ.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js} +2 -2
  12. package/dist/{FmMultiselectDialog-v004bPKF.js → FmMultiselectDialog-CcMB_4yD.js} +16 -16
  13. package/dist/{FmMultiselectDialog-CdhcCzVw.js → FmMultiselectDialog-DTLcPYaF.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C756UIBL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ChqG8Av1.js} +22 -23
  15. package/dist/{ImportView-WyG44i3g.js → ImportView-diTEPSKt.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Y74PdyhQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cu-dNL-B.js} +1 -1
  17. package/dist/{IngredientGroupView-7bkBWvrQ.js → IngredientGroupView-CYqZOXH1.js} +5 -5
  18. package/dist/{IngredientsView-BDgOWARl.js → IngredientsView-DoCTezXa.js} +24 -25
  19. package/dist/{IntegrationView-BB7asiWy.js → IntegrationView-JboVfhvd.js} +17 -18
  20. package/dist/{InventoryBindingForm-CU9dnGdy.js → InventoryBindingForm-B1MrDzRK.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BmlVB1SU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Br1hzlQ5.js} +16 -17
  22. package/dist/{InventoryBindingSummary-D2W_WcLV.js → InventoryBindingSummary-B09SU9pE.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVfShkXe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BX26mYQG.js} +5 -5
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CC4jkZg4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIk5aP_6.js} +2 -2
  25. package/dist/{PublishView-DR_TwAkf.js → PublishView-BLu0VGTW.js} +8 -8
  26. package/dist/{PurchaseOrderPrintPreview-CoX0u7jn.js → PurchaseOrderPrintPreview-CFZX2Yen.js} +11 -11
  27. package/dist/{ReceiveRequestView-VBePJl-U.js → ReceiveRequestView-DD0kz7x8.js} +248 -249
  28. package/dist/RecipeView-Cg7v20hW.js +646 -0
  29. package/dist/{StockView-BFv_Tl8E.js → StockView-CJk1YeM_.js} +646 -645
  30. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BFCjZO6S.js +183 -0
  31. package/dist/{SupplierView-PSGUQEzz.js → SupplierView-CTEInwI-.js} +19 -20
  32. package/dist/{SurchargeView-B7qTXk1L.js → SurchargeView-CKJ2LS9l.js} +6 -6
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CxEeb4BW.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DVhI5Qy6.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dxg6HaiQ.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DjjLI4tM.js} +1 -1
  35. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dte8E0MX.js +3354 -0
  36. package/dist/{TransferTemplateView-CsRPCwN_.js → TransferTemplateView-rmrQtfX8.js} +21 -22
  37. package/dist/{UnitView-CdZ_GaUr.js → UnitView-Drvo3Tew.js} +10 -11
  38. package/dist/{WarehouseView-DQGYq00N.js → WarehouseView-DIBgCCzG.js} +5 -5
  39. package/dist/{WastageTemplateView-CE7aiWUH.js → WastageTemplateView-Cdvx4Ist.js} +14 -14
  40. package/dist/api/inventory.d.ts +36 -126
  41. package/dist/api/netsuite.d.ts +1 -8
  42. package/dist/api/stock-estimate.d.ts +2 -0
  43. package/dist/{app-CpEqZK89.js → app-BQahEYX9.js} +6708 -7673
  44. package/dist/app.d.ts +32 -228
  45. package/dist/app.js +1 -1
  46. package/dist/{closing-template-C20qxOGw.js → closing-template-ByR8ktYf.js} +1 -1
  47. package/dist/components/StockForecastProps.d.ts +6 -0
  48. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -37
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +0 -14
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -16
  51. package/dist/{date2-C37x5LGh.js → date2-BTP8kRm1.js} +1 -1
  52. package/dist/{dayjs.min-C5A6b5Ut.js → dayjs.min-1rxaqCQM.js} +16 -16
  53. package/dist/{defineDeepModel-btW96tVp.js → defineDeepModel-BaJIlpWC.js} +1 -1
  54. package/dist/{duplicate-template-BPduDL4a.js → duplicate-template-XaB2svr5.js} +1 -1
  55. package/dist/{feature-Cu77Fha2.js → feature-Ce7hky70.js} +1696 -1560
  56. package/dist/{format-time-from-id-ULW7QQVk.js → format-time-from-id-DwTuSEMw.js} +1 -1
  57. package/dist/{format-unit-display-CeyXEKCV.js → format-unit-display-DviFIF9R.js} +15 -16
  58. package/dist/{import-export.helper-DpgGeeZ4.js → import-export.helper-CyeFjIHv.js} +15 -16
  59. package/dist/{index-Cl2lmtBz.js → index-CC_ls9B4.js} +1412 -1471
  60. package/dist/{index-DKDWBhbI.js → index-CeTIFqwk.js} +3 -3
  61. package/dist/{index-6Is7orHh.js → index-f1rjUE_a.js} +1 -1
  62. package/dist/{lodash-BS2snJNb.js → lodash-Be4onxQF.js} +1 -1
  63. package/dist/{netsuite-B5YYhPhU.js → netsuite-CB9u725A.js} +374 -372
  64. package/dist/{purchase-order-template-DVz_OXJ7.js → purchase-order-template-DoBDYEtP.js} +1 -1
  65. package/dist/router/name.d.ts +0 -1
  66. package/dist/rules-DZnC9R5E.js +327 -0
  67. package/dist/stock-DcXdnfU0.js +75 -0
  68. package/dist/{stock-D9iwDDOz.js → stock-DjHGX36M.js} +1 -1
  69. package/dist/stores/feature.d.ts +0 -2
  70. package/dist/stores/integration/netsuite.d.ts +1 -8
  71. package/dist/stores/inventory.d.ts +30 -119
  72. package/dist/style.css +1 -1
  73. package/dist/{supplier-UJg1gtQ8.js → supplier-BtZvsnMx.js} +2 -2
  74. package/dist/{surcharge-CcJatYN4.js → surcharge-CDGjoxGm.js} +1 -1
  75. package/dist/tsconfig.app.tsbuildinfo +1 -1
  76. package/dist/{use-ingredient-select-dialog-C--_de2u.js → use-ingredient-select-dialog-l54ucmfp.js} +2 -2
  77. package/dist/{use-inventory-binding-dialog-JsmcY8OK.js → use-inventory-binding-dialog-adxsJaIL.js} +2 -2
  78. package/dist/{use-template-enabled-locations-2-Ce6Y0gQ_.js → use-template-enabled-locations-2-CgWtnf8k.js} +2 -2
  79. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -64
  80. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -192
  81. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -8
  82. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -96
  83. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -96
  84. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  85. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +0 -14
  86. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -32
  87. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -28
  88. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -8
  89. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -16
  90. package/dist/views/receive-request/components/transfer-details/RejectDraftForm.vue.d.ts +19 -0
  91. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +5 -1
  92. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +6 -33
  93. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -16
  94. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -32
  95. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
  96. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +7 -41
  97. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +42 -246
  98. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +49 -287
  99. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +0 -16
  100. package/dist/views/stock/components/StockRecordCard.vue.d.ts +0 -1
  101. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -16
  102. package/dist/views/stock/type.d.ts +2 -0
  103. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -16
  104. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -16
  105. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -16
  106. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -8
  107. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -24
  108. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -96
  109. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -96
  110. package/dist/{vue-i18n-Cv_EPb3h.js → vue-i18n-CgWPe8oO.js} +438 -438
  111. package/dist/{xlsx-DuXSmSdO.js → xlsx-FLEhrhiP.js} +1 -1
  112. package/dist/{xlsx.util-B75iIY7V.js → xlsx.util-DoAD8sxa.js} +1 -1
  113. package/package.json +2 -2
  114. package/dist/RecipeView-CiZw14m_.js +0 -1558
  115. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMEsUpAC.js +0 -172
  116. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CAviJscD.js +0 -3241
  117. package/dist/UnitCostHistoryView-Byd2FHbH.js +0 -651
  118. package/dist/api/unit-cost-history.d.ts +0 -28
  119. package/dist/number-DgdltWRu.js +0 -232
  120. package/dist/rules-BPG3Fjva.js +0 -98
  121. package/dist/stock-BXorYvfp.js +0 -75
  122. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -169
  123. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +0 -43
  124. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +0 -25
  125. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -125
  126. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +0 -129
  127. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +0 -30
  128. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -4
  129. package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +0 -2
  130. package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +0 -19
  131. package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +0 -11
  132. package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +0 -65
@@ -1,172 +0,0 @@
1
- import { defineComponent as I, computed as x, openBlock as l, createElementBlock as d, createElementVNode as e, normalizeClass as b, toDisplayString as u, unref as p, ref as D, resolveComponent as B, Fragment as $, createVNode as k, createCommentVNode as N, withCtx as C, renderList as E } from "vue";
2
- import { useI18n as F, useCoreStore as A } from "@feedmepos/mf-common";
3
- import { u as U } from "./netsuite-B5YYhPhU.js";
4
- function ee(o, n = !1) {
5
- var c;
6
- return o ? [
7
- {
8
- label: n ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
9
- abbrev: o.abbrev,
10
- value: null
11
- },
12
- ...((c = o.measurements) == null ? void 0 : c.map((t) => ({
13
- label: n ? t.abbrev : `1 ${t.name} (${t.abbrev})`,
14
- abbrev: t.abbrev,
15
- value: t.id
16
- }))) ?? []
17
- ] : [];
18
- }
19
- var y = /* @__PURE__ */ ((o) => (o.noInfo = "no-info", o.low = "low", o.mid = "mid", o.high = "high", o))(y || {});
20
- const H = {
21
- key: 0,
22
- class: "flex"
23
- }, O = {
24
- key: 1,
25
- class: "flex"
26
- }, z = { class: "flex px-8 py-4 bg-fm-color-neutral-gray-100 fm-corner-radius-md gap-8" }, R = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, re = /* @__PURE__ */ I({
27
- __name: "StockForecast",
28
- props: {
29
- days: {},
30
- level: {}
31
- },
32
- setup(o) {
33
- const n = o, { t: m } = F(), c = x(() => n.level ? n.level : typeof n.days != "number" ? y.noInfo : n.days > 14 ? y.high : n.days >= 7 && n.days <= 14 ? y.mid : y.low);
34
- return (t, g) => typeof n.days == "number" ? (l(), d("div", H, [
35
- e("div", {
36
- class: b([
37
- `fm-forecast-notification-${c.value}`,
38
- "flex items-center gap-8 p-4 fm-corner-radius-md fm-typo-en-body-md-600"
39
- ])
40
- }, [
41
- e("div", {
42
- class: b([
43
- "fm-forecast-notification-indicator",
44
- `fm-forecast-notification-indicator-${c.value}`
45
- ])
46
- }, null, 2),
47
- e("div", null, u(p(m)("inventory.stock.prediction.days", [n.days])), 1)
48
- ], 2)
49
- ])) : (l(), d("div", O, [
50
- e("div", z, [
51
- e("p", R, u(p(m)("inventory.stock.prediction.noData")), 1)
52
- ])
53
- ]));
54
- }
55
- }), Y = {
56
- key: 0,
57
- class: "flex items-center gap-8"
58
- }, j = { class: "flex flex-col" }, q = { class: "fm-typo-en-heading-lg-600" }, G = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, J = {
59
- key: 0,
60
- class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
61
- }, K = {
62
- key: 1,
63
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
64
- }, M = { class: "flex flex-col" }, Q = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, W = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, se = /* @__PURE__ */ I({
65
- __name: "SubsidiaryTreeDialog",
66
- setup(o) {
67
- const n = D(!1), { t: m } = F(), c = A(), t = U(), g = x(() => {
68
- var i;
69
- return ((i = c.sessionUser.value) == null ? void 0 : i.role.isAdmin) ?? !1;
70
- });
71
- function h(i, r = [], a = []) {
72
- const f = [];
73
- return i.forEach((s, V) => {
74
- const S = V === i.length - 1, P = [...r, S];
75
- let v = "";
76
- for (let _ = 0; _ < r.length; _++)
77
- v += r[_] ? " " : "│ ";
78
- v += S ? "└── " : "├── ", f.push({
79
- id: s.id,
80
- name: s.name,
81
- prefix: r.length === 0 ? "" : v,
82
- isCurrentBusiness: s.id === t.businessSubsidiaryId,
83
- isRoot: r.length === 0,
84
- isInPath: a.includes(s.id)
85
- }), s.children && s.children.length > 0 && f.push(...h(s.children, P, a));
86
- }), f;
87
- }
88
- function w(i, r) {
89
- return i.map((a) => r.includes(a.id) ? {
90
- ...a,
91
- // Recursively filter children
92
- children: a.children ? w(a.children, r) : []
93
- } : null).filter(Boolean);
94
- }
95
- const T = x(() => {
96
- if (!t.businessSubsidiaryId)
97
- return [];
98
- const i = t.getBusinessSubsidiaryTree(), r = t.getBusinessSubsidiaryPath();
99
- if (g.value)
100
- return h(i, [], r);
101
- const a = w(i, r);
102
- return h(a, [], r);
103
- });
104
- return (i, r) => {
105
- const a = B("FmButton"), f = B("FmDialog");
106
- return l(), d($, null, [
107
- p(t).isEnabled ? (l(), d("div", Y, [
108
- k(a, {
109
- "prepend-icon": "info",
110
- variant: "tertiary",
111
- onClick: r[0] || (r[0] = (s) => n.value = !0)
112
- })
113
- ])) : N("", !0),
114
- k(f, {
115
- modelValue: n.value,
116
- "onUpdate:modelValue": r[1] || (r[1] = (s) => n.value = s),
117
- "close-button": "",
118
- dismissAway: ""
119
- }, {
120
- "dialog-header": C(() => [
121
- e("div", j, [
122
- e("div", q, u(p(m)("inventory.integration.netsuite.subsidiaryHierarchy.title")), 1),
123
- e("p", G, u(p(m)("inventory.integration.netsuite.subsidiaryHierarchy.description")), 1),
124
- g.value ? (l(), d("p", J, " All subsidiaries are shown since you are an admin. ")) : (l(), d("p", K, " Only showing subsidiaries in your business path. ")),
125
- r[2] || (r[2] = e("div", { class: "flex flex-wrap gap-2 mt-4" }, [
126
- e("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-brand-secondary rounded-md" }, [
127
- e("span", { class: "w-3 h-3 rounded-sm bg-green-400" }),
128
- e("span", { class: "fm-typo-en-body-sm-400" }, "Your Business")
129
- ]),
130
- e("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-primary rounded-md border border-fm-color-border-secondary" }, [
131
- e("span", { class: "w-3 h-3 rounded-sm bg-gray-200 border-2 border-gray-400" }),
132
- e("span", { class: "fm-typo-en-body-sm-400" }, "Parent Subsidiary")
133
- ])
134
- ], -1))
135
- ])
136
- ]),
137
- default: C(() => [
138
- e("div", M, [
139
- e("div", Q, [
140
- (l(!0), d($, null, E(T.value, (s) => (l(), d("div", {
141
- key: s.id,
142
- class: "flex items-stretch"
143
- }, [
144
- e("span", W, u(s.prefix), 1),
145
- e("div", {
146
- class: b([
147
- "px-2 py-1 rounded-md flex-1",
148
- s.isCurrentBusiness ? "border-2 bg-green-200 border-green-400" : s.isInPath ? "border-2 bg-gray-200 border-gray-400" : "bg-fm-color-bg-primary border border-fm-color-border-secondary"
149
- ])
150
- }, [
151
- e("span", {
152
- class: b([
153
- s.isCurrentBusiness || s.isInPath ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
154
- ])
155
- }, u(s.name), 3)
156
- ], 2)
157
- ]))), 128))
158
- ])
159
- ])
160
- ]),
161
- _: 1
162
- }, 8, ["modelValue"])
163
- ], 64);
164
- };
165
- }
166
- });
167
- export {
168
- y as S,
169
- re as _,
170
- se as a,
171
- ee as g
172
- };