@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.31

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 (118) hide show
  1. package/dist/{App-BREfwtck.js → App-CEmWJ9lp.js} +85 -73
  2. package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-jDll4AVe.js} +24 -27
  3. package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-BC_gRSif.js} +4 -4
  4. package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BJsGoBzM.js} +8 -9
  5. package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-DSdwNK_q.js} +18 -22
  6. package/dist/ClosingDraftView-UfWdRXb-.js +1190 -0
  7. package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-BzG16gl5.js} +272 -286
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js +282 -0
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js} +116 -114
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js} +5 -5
  11. package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-DL8eBhkk.js} +63 -69
  12. package/dist/IngredientsView-B_HC9fgq.js +1657 -0
  13. package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-BeFT5S24.js} +92 -95
  14. package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-DJ3uwq_X.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js} +25 -27
  16. package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-CvB5j9xq.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js} +23 -24
  19. package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-3_6nBajH.js} +13 -14
  20. package/dist/ReceiveRequestView-B_0UldQ7.js +4188 -0
  21. package/dist/{RecipeView-CrmDQdc5.js → RecipeView-D9p0Ou_I.js} +79 -85
  22. package/dist/{StockView-Xb3fQaiD.js → StockView-TIdUgG3O.js} +1338 -1446
  23. package/dist/{SupplierView-CrtIiaz0.js → SupplierView-B1b9Otcr.js} +2325 -787
  24. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +1275 -0
  25. package/dist/TransferTemplateView-Dxk5b-2j.js +1264 -0
  26. package/dist/{UnitView-C6BgrZ1G.js → UnitView-BrpzJ7D3.js} +40 -44
  27. package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-CjbdEy8o.js} +94 -100
  28. package/dist/api/adjustment-template.d.ts +23 -0
  29. package/dist/api/bill.d.ts +2 -2
  30. package/dist/api/closing-draft.d.ts +6 -0
  31. package/dist/api/closing.d.ts +1 -0
  32. package/dist/api/netsuite.d.ts +3 -3
  33. package/dist/app-AcMtTQ07.js +84202 -0
  34. package/dist/app.d.ts +56 -0
  35. package/dist/app.js +2 -2
  36. package/dist/components/FmMinMaxInputRules.d.ts +4 -1
  37. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  38. package/dist/components/row-action.enum.d.ts +1 -0
  39. package/dist/composable/defineDeepModel.d.ts +1 -1
  40. package/dist/{decimal-rPKr5T-H.js → decimal-DHYZglKx.js} +1 -1
  41. package/dist/{feature-z95vJnA1.js → feature-G-NnqKcY.js} +23 -9
  42. package/dist/format-unit-display-BWqJsV_R.js +1207 -0
  43. package/dist/index-Bt8vaUdT.js +12087 -0
  44. package/dist/router/name.d.ts +2 -0
  45. package/dist/stock-VZXyPw2C.js +125 -0
  46. package/dist/stores/feature.d.ts +2 -0
  47. package/dist/stores/integration/netsuite.d.ts +70 -2
  48. package/dist/stores/inventory.d.ts +1 -4
  49. package/dist/style.css +1 -1
  50. package/dist/{supplier-BixmjZyl.js → supplier-DTUUR48O.js} +15 -15
  51. package/dist/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-DvC_i-Ih.js} +10 -11
  53. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  54. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  55. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  56. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  57. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  58. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  59. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  60. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
  61. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  62. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  63. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  64. package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
  65. package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
  66. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  67. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  68. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +621 -0
  69. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
  70. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3621 -0
  71. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  72. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
  73. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
  74. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  75. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +25 -193
  76. package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
  77. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
  78. package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
  79. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  80. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -34
  81. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  82. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -54
  83. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -54
  84. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
  85. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  86. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  87. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  88. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  89. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  90. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  91. package/package.json +2 -2
  92. package/dist/FmDroppableField-8RzKjEdL.js +0 -154
  93. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
  94. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
  95. package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
  96. package/dist/IngredientsView-DuK4YSD6.js +0 -1613
  97. package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
  98. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  99. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
  100. package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
  101. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  102. package/dist/app-CwUHqg7h.js +0 -33462
  103. package/dist/date2-CHNm4ELK.js +0 -117
  104. package/dist/dayjs.min-FE3dpxHU.js +0 -282
  105. package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
  106. package/dist/format-time-from-id-CaPj8EHN.js +0 -15
  107. package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
  108. package/dist/fuzzy-DXqhGaFi.js +0 -41
  109. package/dist/index-BMJHz32O.js +0 -22277
  110. package/dist/index-Be5vGZdr.js +0 -45
  111. package/dist/index-D2juQPg6.js +0 -10545
  112. package/dist/netsuite-P0as0Moa.js +0 -194
  113. package/dist/normalizeArguments-DP7Hrren.js +0 -1552
  114. package/dist/row-action.enum-PMKMRrZR.js +0 -50
  115. package/dist/rules-BQz4NGht.js +0 -198
  116. package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
  117. package/dist/xlsx-k2Rf0NcF.js +0 -24004
  118. package/dist/xlsx.util-CJxPf7XZ.js +0 -78
package/dist/app.d.ts CHANGED
@@ -221,6 +221,62 @@ export declare const i18nMessages: {
221
221
  addItem: string;
222
222
  };
223
223
  };
224
+ draft: {
225
+ title: string;
226
+ approveDraft: string;
227
+ rejectDraft: string;
228
+ };
229
+ };
230
+ adjustment: {
231
+ template: {
232
+ wastage: {
233
+ title: string;
234
+ };
235
+ create: {
236
+ title: string;
237
+ success: string;
238
+ successMessage: string;
239
+ error: string;
240
+ errorMessage: string;
241
+ };
242
+ update: {
243
+ title: string;
244
+ success: string;
245
+ successMessage: string;
246
+ error: string;
247
+ errorMessage: string;
248
+ };
249
+ import: {
250
+ title: string;
251
+ message: string;
252
+ new: string;
253
+ allLocations: string;
254
+ nLocations: string;
255
+ nItems: string;
256
+ };
257
+ publish: {
258
+ title: string;
259
+ message: string;
260
+ dialogTitle: string;
261
+ noRecentActivity: string;
262
+ nothingToPublish: string;
263
+ publishing: string;
264
+ recentlyPublishedAt: string;
265
+ stillPublishing: string;
266
+ };
267
+ table: {
268
+ createdAt: string;
269
+ name: string;
270
+ noOfItems: string;
271
+ enabledOutlets: string;
272
+ reference: string;
273
+ status: string;
274
+ published: string;
275
+ unpublished: string;
276
+ enabledForAll: string;
277
+ enabledForN: string;
278
+ };
279
+ };
224
280
  };
225
281
  ingredient: {
226
282
  title: string;
package/dist/app.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "vue";
2
- import { N as a, O as e, P as o, M as t, Q as i, a as m } from "./app-CwUHqg7h.js";
2
+ import { aX as s, aY as e, aZ as o, aW as t, a_ as i, a as m } from "./app-AcMtTQ07.js";
3
3
  export {
4
- a as FmApp,
4
+ s as FmApp,
5
5
  e as InventoryBindingForm,
6
6
  o as InventoryBindingSummary,
7
7
  t as i18nMessages,
@@ -1,6 +1,9 @@
1
1
  import type { FmMinMaxInputModel } from './FmMinMaxInputProps';
2
2
  import type { FdoDecimal } from '@feedmepos/core/entity';
3
- export declare function FmMinMaxRequired(): (model?: FmMinMaxInputModel) => true | "Required";
3
+ export declare function FmMinMaxRequired({ min, max }?: {
4
+ min?: boolean;
5
+ max?: boolean;
6
+ }): (model?: FmMinMaxInputModel) => true | "Required";
4
7
  /** Both `min` and `max` are inclusive */
5
8
  export declare function FmMinMaxBoundary(min: number, max: number): (model?: FmMinMaxInputModel) => string | true;
6
9
  export declare function FmMinMaxMultipleOf(decimal: FdoDecimal): (model?: FmMinMaxInputModel) => string | true;
@@ -2,6 +2,7 @@ import type { ISelectItem } from 'node_modules/@feedmepos/ui-library/dist/compon
2
2
  export interface ISelectItemSublabel extends ISelectItem {
3
3
  groupId?: string;
4
4
  collapsed?: boolean;
5
+ tags?: string[];
5
6
  }
6
7
  export interface ISelectItemGroup {
7
8
  id: string;
@@ -9,6 +9,7 @@ export declare enum RowActionEnum {
9
9
  Add = "Add",
10
10
  Create = "Create",
11
11
  Print = "Print",
12
+ Export = "Export",
12
13
  Update = "Update",
13
14
  Details = "Details",
14
15
  Edit = "Edit",
@@ -1,2 +1,2 @@
1
- /** Use in <script setup> only! */
1
+ /** Use in "\<script setup\>" only! */
2
2
  export declare function defineDeepModel<T>(name?: string): T;
@@ -1,4 +1,4 @@
1
- import "./index-BMJHz32O.js";
1
+ import "./app-AcMtTQ07.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,6 +1,6 @@
1
1
  import { useCoreStore as t } from "@feedmepos/mf-common";
2
- import { u as o, I as u, a as c } from "./app-CwUHqg7h.js";
3
- const i = /* @__PURE__ */ new Set([
2
+ import { u as o, aw as a, a as i } from "./app-AcMtTQ07.js";
3
+ const c = /* @__PURE__ */ new Set([
4
4
  // vivo pizza prod
5
5
  "business_6687e91fa7240b001ba3f4c2",
6
6
  // vivo dev
@@ -19,22 +19,30 @@ const i = /* @__PURE__ */ new Set([
19
19
  "business_655b25254fe3be001b123f0b",
20
20
  // zus dev
21
21
  "business_671005de24a7f4001c87e25e"
22
- ]), S = () => ({
22
+ ]), m = /* @__PURE__ */ new Set([
23
+ // kfc dev
24
+ "business_655b25254fe3be001b123f0b",
25
+ // zus dev
26
+ "business_671005de24a7f4001c87e25e"
27
+ ]), S = /* @__PURE__ */ new Set([
28
+ // zus dev
29
+ "business_671005de24a7f4001c87e25e"
30
+ ]), h = () => ({
23
31
  get businessDbName() {
24
32
  var n;
25
33
  return `business_${((n = t().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`;
26
34
  },
27
35
  get isWarehouse() {
28
36
  var e;
29
- return ((e = o()._currentLocation) == null ? void 0 : e.type) === u.warehouse;
37
+ return ((e = o()._currentLocation) == null ? void 0 : e.type) === a.warehouse;
30
38
  },
31
39
  get restaurantPosVersion() {
32
40
  var n;
33
41
  const s = o();
34
42
  return (n = t().restaurants.value.find(
35
- (a) => {
43
+ (u) => {
36
44
  var r;
37
- return a._id === ((r = s._currentLocation) == null ? void 0 : r.doc._id);
45
+ return u._id === ((r = s._currentLocation) == null ? void 0 : r.doc._id);
38
46
  }
39
47
  )) == null ? void 0 : n.posVersion;
40
48
  },
@@ -43,7 +51,7 @@ const i = /* @__PURE__ */ new Set([
43
51
  return ((e = t().currentBusiness.value) == null ? void 0 : e.menuVersion) === "v4";
44
52
  },
45
53
  get enableBackdatePo() {
46
- const s = c();
54
+ const s = i();
47
55
  return b.has(this.businessDbName) && (this.isWarehouse || s.state.closing !== null);
48
56
  },
49
57
  get autoReceiveWarehouse() {
@@ -55,7 +63,7 @@ const i = /* @__PURE__ */ new Set([
55
63
  // if menu v4, must manual receive && must use outlet app
56
64
  ((e = t().currentBusiness.value) == null ? void 0 : e.menuVersion) === "v4" && // more guard for businesses using menu v4, only those listed for manual receive will be included
57
65
  // TODO: may be removed to use menu version only
58
- i.has(this.businessDbName)
66
+ c.has(this.businessDbName)
59
67
  );
60
68
  },
61
69
  get enablePoTemplate() {
@@ -71,8 +79,14 @@ const i = /* @__PURE__ */ new Set([
71
79
  get mustUsePoTemplate() {
72
80
  const s = t();
73
81
  return l.has(this.businessDbName) && s.namespace.value === "dev";
82
+ },
83
+ get mustUseDefaultCost() {
84
+ return m.has(this.businessDbName);
85
+ },
86
+ get businessSupplierOnly() {
87
+ return S.has(this.businessDbName);
74
88
  }
75
89
  });
76
90
  export {
77
- S as u
91
+ h as u
78
92
  };