@feedmepos/mf-inventory-portal 0.0.23-dev.2 → 0.0.23-dev.21

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 (112) hide show
  1. package/dist/{App-DRE3c1lJ.js → App-CvIvF0fg.js} +59 -51
  2. package/dist/{ApprovalView-B4ZYcS3B.js → ApprovalView-BOn2HDVY.js} +20 -23
  3. package/dist/{BindingsDialog-Df1yrWHU.js → BindingsDialog-9qfADiSA.js} +7 -7
  4. package/dist/{BindingsPicker-BERMWh4w.js → BindingsPicker-CpV9uOqj.js} +7 -8
  5. package/dist/{BindingsTable-DRIapOWW.js → BindingsTable-BYScxUTj.js} +16 -20
  6. package/dist/ClosingDraftView-DM7-3zOd.js +1116 -0
  7. package/dist/{ClosingTemplateView-CbFn3Sdy.js → ClosingTemplateView-Cye5VPAM.js} +66 -76
  8. package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-AIKfZo3H.js} +1 -1
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQUsooGm.js +282 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CFQc-CBX.js} +121 -119
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-2r8mut0B.js} +7 -7
  12. package/dist/{IngredientGroupView-DoETcEvV.js → IngredientGroupView-RNokzPJa.js} +30 -36
  13. package/dist/IngredientsView-M7K_GAEO.js +1660 -0
  14. package/dist/{IntegrationView-D1HeBiGF.js → IntegrationView-D9a8d1sO.js} +18 -20
  15. package/dist/{InventoryBindingForm-Dmz9BQ37.js → InventoryBindingForm-B0Gx5N1p.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DEOudgKD.js} +15 -17
  17. package/dist/{InventoryBindingSummary-DrpwiRGZ.js → InventoryBindingSummary-C16Nc5aN.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BbYZwclN.js} +8 -8
  20. package/dist/{PurchaseOrderPrintPreview-cp671yWE.js → PurchaseOrderPrintPreview-DdKF8g0J.js} +13 -14
  21. package/dist/ReceiveRequestView-DBPRR6fz.js +4186 -0
  22. package/dist/{RecipeView-CD_dAWLo.js → RecipeView-CzUgVxKz.js} +58 -63
  23. package/dist/{StockView-DfUzFC1b.js → StockView-DCO3N1FS.js} +1338 -1446
  24. package/dist/{SupplierView-DB-zrNxh.js → SupplierView-CzV6DYSj.js} +2345 -783
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-00pcY0qu.js +1228 -0
  26. package/dist/TransferTemplateView-uL5PId9-.js +1265 -0
  27. package/dist/{UnitView-BlC9-WOA.js → UnitView-d-mCs-cS.js} +40 -44
  28. package/dist/{WarehouseView-CgEY87Lo.js → WarehouseView-B7z8m-Hv.js} +67 -73
  29. package/dist/api/adjustment-template.d.ts +23 -0
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/closing-draft.d.ts +6 -0
  32. package/dist/api/closing.d.ts +1 -0
  33. package/dist/api/netsuite.d.ts +69 -0
  34. package/dist/app-CTCC1zfY.js +58871 -0
  35. package/dist/app.d.ts +56 -0
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmMinMaxInputRules.d.ts +4 -1
  38. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  39. package/dist/components/row-action.enum.d.ts +1 -0
  40. package/dist/composable/defineDeepModel.d.ts +1 -1
  41. package/dist/{decimal-D7BCubZO.js → decimal-DhUR6QsF.js} +1 -1
  42. package/dist/{feature-BR-MsGYt.js → feature-DiGS5Fa4.js} +23 -9
  43. package/dist/format-unit-display-MRARpSlY.js +1210 -0
  44. package/dist/index-BSN3RnCl.js +12087 -0
  45. package/dist/netsuite-CIibMNer.js +251 -0
  46. package/dist/router/name.d.ts +2 -0
  47. package/dist/stock-COHpOTJk.js +110 -0
  48. package/dist/stores/feature.d.ts +2 -0
  49. package/dist/stores/integration/netsuite.d.ts +81 -0
  50. package/dist/stores/inventory.d.ts +1 -4
  51. package/dist/style.css +1 -1
  52. package/dist/{supplier-aBuwVukl.js → supplier-csNwTHYl.js} +15 -15
  53. package/dist/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/{use-inventory-binding-dialog-CLQ0LUmW.js → use-inventory-binding-dialog-172A48Xx.js} +10 -11
  55. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  56. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  57. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  58. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  59. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
  60. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  61. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  62. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  63. package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
  65. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  66. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  67. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +451 -0
  68. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
  69. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
  70. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  71. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
  72. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
  73. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  74. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
  75. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  76. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  77. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  78. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  79. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
  80. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  81. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  82. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  83. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  84. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  85. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  86. package/dist/{xlsx-BbtURTDy.js → xlsx-CH-bhcOL.js} +1 -1
  87. package/dist/{xlsx.util-zYS4OJFi.js → xlsx.util-4aHI7W-Z.js} +1 -1
  88. package/package.json +3 -3
  89. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +0 -267
  90. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js +0 -436
  91. package/dist/FmMultiselectDialog-Da9JMCYa.js +0 -415
  92. package/dist/IngredientsView-DHAhj9pV.js +0 -1613
  93. package/dist/ReceiveRequestView-C1WBlpho.js +0 -4082
  94. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +0 -1144
  96. package/dist/TransferTemplateView-CaAJrqU6.js +0 -1262
  97. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  98. package/dist/app-CAyFhmAz.js +0 -33457
  99. package/dist/date2-D9i5izMt.js +0 -117
  100. package/dist/dayjs.min-SJKP9zBL.js +0 -282
  101. package/dist/defineDeepModel-DS4Shctf.js +0 -13
  102. package/dist/format-time-from-id-CUby60uW.js +0 -15
  103. package/dist/format-unit-display-D25Al2JZ.js +0 -1198
  104. package/dist/fuzzy-BryBtMz_.js +0 -41
  105. package/dist/index-ByJbUSIQ.js +0 -45
  106. package/dist/index-CFA_VFyX.js +0 -10545
  107. package/dist/index-CTvgBOum.js +0 -22280
  108. package/dist/netsuite-D0G4B60k.js +0 -146
  109. package/dist/normalizeArguments-DP7Hrren.js +0 -1552
  110. package/dist/row-action.enum-PMKMRrZR.js +0 -50
  111. package/dist/rules-DxVY0b7F.js +0 -198
  112. package/dist/use-template-enabled-locations-2-BgTiwy_3.js +0 -86
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-CAyFhmAz.js";
2
+ import { aN as s, aO as e, aP as o, aM as t, aQ as i, a as m } from "./app-CTCC1zfY.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-CTvgBOum.js";
1
+ import "./app-CTCC1zfY.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-CAyFhmAz.js";
3
- const i = /* @__PURE__ */ new Set([
2
+ import { u as o, ao as a, a as i } from "./app-CTCC1zfY.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
  };