@feedmepos/mf-inventory-portal 0.0.25-dev.5 → 0.0.25-dev.50

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 (117) hide show
  1. package/dist/{App-Kq8apMtA.js → App-B7fIlPKw.js} +29 -28
  2. package/dist/ApprovalView-Dp20w8em.js +143 -0
  3. package/dist/{BindingsDialog-DOXckftj.js → BindingsDialog-BIHCuoDe.js} +6 -6
  4. package/dist/{BindingsPicker-Cm5vh_SU.js → BindingsPicker-DoM1Dh1y.js} +8 -8
  5. package/dist/{BindingsTable-CqIY16hU.js → BindingsTable-ChJYIxrf.js} +6 -6
  6. package/dist/ClosingDraftView-L4EHR0Sb.js +1348 -0
  7. package/dist/ClosingTemplateView-CFVINyCr.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-0Kw57u62.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js +51 -0
  12. package/dist/{IngredientGroupView-CLmsjrp8.js → IngredientGroupView-Vz6XV_-q.js} +14 -14
  13. package/dist/{IngredientsView-T5S1322D.js → IngredientsView-D1lmg_97.js} +577 -551
  14. package/dist/{IntegrationView-DLLrgrr9.js → IntegrationView-CfDmLYwt.js} +661 -690
  15. package/dist/{InventoryBindingForm-BCPZcNwR.js → InventoryBindingForm-C68ZfWme.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DY96hhyi.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js} +96 -96
  17. package/dist/{InventoryBindingSummary-CpCsz_Xc.js → InventoryBindingSummary-DT9cg2b4.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CP5yNARW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cow0sp-k.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js} +15 -15
  20. package/dist/PublishView-DMzULnCX.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-DQ8GaxvA.js → PurchaseOrderPrintPreview-D6wcth8H.js} +1 -1
  22. package/dist/ReceiveRequestView-DsX41zj-.js +2579 -0
  23. package/dist/{RecipeView-CROffYxl.js → RecipeView-DlKk9-tm.js} +47 -46
  24. package/dist/{index-B2ISFLHY.js → StockView-CNmvVK0V.js} +3616 -1783
  25. package/dist/{SupplierView-DUFTtK7r.js → SupplierView-BcoOgM67.js} +446 -457
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js +1605 -0
  27. package/dist/TransferTemplateView-BI96LQfP.js +1526 -0
  28. package/dist/{UnitView-B4jcaZF4.js → UnitView-BF2eBWtF.js} +14 -14
  29. package/dist/{WarehouseView-BmZtdMZU.js → WarehouseView-joOR4EsJ.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/netsuite.d.ts +22 -5
  33. package/dist/api/purchase-order.d.ts +7 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/app-DavuMSpS.js +88117 -0
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  38. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  39. package/dist/components/FmLockableField.vue.d.ts +3 -0
  40. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  41. package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
  42. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  43. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  44. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  45. package/dist/{decimal-T4Ng3pLP.js → decimal-C_LJTg2_.js} +1 -1
  46. package/dist/feature-D3M-bziy.js +1015 -0
  47. package/dist/{format-unit-display-D6tf1DHa.js → format-unit-display-BebmN2s-.js} +335 -328
  48. package/dist/helper/country.d.ts +1 -0
  49. package/dist/helper/fuzzy.d.ts +10 -0
  50. package/dist/index-BDEeA1dY.js +12197 -0
  51. package/dist/index-DzshvJTA.js +77 -0
  52. package/dist/{stock-CmZXXh6b.js → stock-CHVVTrSI.js} +29 -25
  53. package/dist/stores/feature.d.ts +7 -5
  54. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  55. package/dist/stores/integration/index.d.ts +1 -0
  56. package/dist/stores/integration/netsuite.d.ts +22 -5
  57. package/dist/stores/inventory.d.ts +141 -8
  58. package/dist/stores/location.d.ts +9 -0
  59. package/dist/stores/stock.d.ts +5 -0
  60. package/dist/stores/warehouse.d.ts +5 -7
  61. package/dist/style.css +1 -1
  62. package/dist/{supplier-BVsAD8Ou.js → supplier-Ddl4sUpm.js} +1 -1
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/use-ingredient-select-dialog-Z6bbIKfM.js +51 -0
  65. package/dist/{use-inventory-binding-dialog-CqrrqmB7.js → use-inventory-binding-dialog-Dj45RBWc.js} +1 -1
  66. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  67. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  68. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  69. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  70. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  71. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  72. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  73. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  74. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  75. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  76. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  77. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  78. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  79. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  80. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  81. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  82. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +427 -31
  83. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
  84. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  85. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +7 -4
  86. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +18 -0
  87. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +867 -68
  88. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +678 -70
  89. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  90. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  91. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  92. package/dist/views/receive-request/import/export.d.ts +12 -0
  93. package/dist/views/receive-request/import/props.d.ts +7 -0
  94. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  95. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  96. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  97. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  98. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +10 -5
  99. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +72 -24
  100. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +72 -24
  101. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  102. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +10 -14
  103. package/dist/{vue-i18n-Mb3AM8uP.js → vue-i18n-Cak3W4nS.js} +331 -331
  104. package/package.json +4 -4
  105. package/dist/ApprovalView-DXlXet32.js +0 -138
  106. package/dist/ClosingDraftView-CABY9YVF.js +0 -1225
  107. package/dist/ClosingTemplateView-Bsd6W6id.js +0 -1819
  108. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-d-Qy7I_I.js +0 -142
  109. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXjO-PL0.js +0 -286
  110. package/dist/PublishView-BQ9pqu-S.js +0 -192
  111. package/dist/ReceiveRequestView-Cj1g6ZzI.js +0 -1876
  112. package/dist/StockView-D_XXAmSl.js +0 -1817
  113. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLADqDM9.js +0 -1327
  114. package/dist/TransferTemplateView-Dy2nZRCc.js +0 -1284
  115. package/dist/app-DcBKHZIR.js +0 -85643
  116. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  117. package/dist/index-Cxi2NbBg.js +0 -29202
@@ -0,0 +1,77 @@
1
+ import { ref as c, computed as l } from "vue";
2
+ import { u as g, aR as d, b as m } from "./app-DavuMSpS.js";
3
+ import { useSnackbar as f } from "@feedmepos/ui-library";
4
+ function b() {
5
+ return {
6
+ setting: {
7
+ _id: "",
8
+ enable: !1,
9
+ bindings: [],
10
+ uniqueCode: "",
11
+ branchCode: "",
12
+ server: {
13
+ password: "",
14
+ host: "",
15
+ username: "",
16
+ port: "",
17
+ directory: ""
18
+ },
19
+ histories: [],
20
+ modifiers: [],
21
+ exportAsJson: !1
22
+ },
23
+ menu: [],
24
+ group: [],
25
+ variants: [],
26
+ categories: []
27
+ };
28
+ }
29
+ const e = c(b());
30
+ function p() {
31
+ return {
32
+ // state
33
+ get isEnabled() {
34
+ return e.value.setting.enable;
35
+ },
36
+ get isBusinessLocation() {
37
+ return g().businessLevel;
38
+ },
39
+ get state() {
40
+ return e.value;
41
+ },
42
+ async init() {
43
+ var a, r, o, s;
44
+ const n = d();
45
+ try {
46
+ const t = await n.readMenu();
47
+ e.value.menu = ((a = t.modules) == null ? void 0 : a.item) ?? [], e.value.group = ((r = t.modules) == null ? void 0 : r.group) ?? [], e.value.variants = ((o = t.modules) == null ? void 0 : o.variant) ?? [];
48
+ const u = (((s = t.modules) == null ? void 0 : s.category) ?? []).map((i) => ({
49
+ ...i,
50
+ _id: i._id === void 0 ? null : i._id
51
+ }));
52
+ e.value.categories = u, e.value.setting = await n.readSetting();
53
+ } catch (t) {
54
+ f().open({
55
+ title: "Something went wrong",
56
+ message: "Cannot fetch integration info. Please try again.",
57
+ type: "error"
58
+ }), console.error("Error at fetching integration info", t);
59
+ }
60
+ }
61
+ };
62
+ }
63
+ function y() {
64
+ const n = m(), a = p(), r = l(() => n.isEnabled), o = l(() => a.isEnabled);
65
+ return {
66
+ get enabledIntegrations() {
67
+ return [r.value, o.value].filter((s) => s).length;
68
+ },
69
+ get isNetSuiteEnabled() {
70
+ return r.value;
71
+ }
72
+ };
73
+ }
74
+ export {
75
+ p as a,
76
+ y as u
77
+ };
@@ -1,41 +1,45 @@
1
- import { X as m, u as k, a as d, ak as B, L as p } from "./app-DcBKHZIR.js";
2
- import { useCoreStore as v } from "@feedmepos/mf-common";
1
+ import { W as m, u as B, a as l, an as k, K as v } from "./app-DavuMSpS.js";
2
+ import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as y } from "@feedmepos/ui-library";
4
4
  import { ref as $, computed as S } from "vue";
5
5
  const b = m((r, o) => {
6
- const u = k(), a = v(), c = y();
6
+ const c = B(), a = p(), u = y();
7
7
  return o.onError(async (t) => {
8
- t.name === "SvcForbiddenError" && (c == null || c.open({
8
+ t.name === "SvcForbiddenError" && (u == null || u.open({
9
9
  title: t.title,
10
10
  message: t.message,
11
11
  type: "error"
12
12
  }));
13
13
  }), {
14
14
  async readStockBalance() {
15
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
15
+ const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
16
16
  return await o.get(e);
17
17
  },
18
18
  async readSkuBalance() {
19
19
  var s;
20
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
20
+ const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
21
21
  return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
22
22
  },
23
23
  async readSingleAdjustment(t) {
24
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
24
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
25
25
  return await o.get(`${n}?adjustmentId=${t}`);
26
26
  },
27
27
  async readStockAdjustment(t, e, n) {
28
- const s = u.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
28
+ const s = c.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
29
29
  return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
30
30
  },
31
+ async readAdjustmentById(t) {
32
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
33
+ return await o.get(`${n}?adjustmentId=${t}`);
34
+ },
31
35
  async convertSku(t) {
32
36
  var i;
33
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
37
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
34
38
  return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
35
39
  },
36
40
  async adjustSku(t) {
37
41
  var i;
38
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
42
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
39
43
  return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
40
44
  },
41
45
  recalculation: {
@@ -61,44 +65,44 @@ function g() {
61
65
  productBalance: []
62
66
  };
63
67
  }
64
- const f = p(0), w = {
68
+ const f = v(0), w = {
65
69
  id: "",
66
70
  balance: f,
67
71
  closing: null,
68
72
  costs: null
69
- }, l = $(g()), A = () => {
70
- const r = d(), o = S(() => {
73
+ }, d = $(g()), A = () => {
74
+ const r = l(), o = S(() => {
71
75
  var t;
72
- const a = (t = l.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), c = (e) => {
76
+ const a = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
73
77
  var n;
74
78
  return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
75
79
  };
76
- return r.skus.map((e) => c(e._id));
77
- }), u = b();
80
+ return r.skus.map((e) => u(e._id));
81
+ }), c = b();
78
82
  return {
79
83
  // state
80
84
  get stockBalance() {
81
85
  return {
82
- ...l.value.stockBalance,
86
+ ...d.value.stockBalance,
83
87
  skus: o.value
84
88
  };
85
89
  },
86
90
  set stockBalance(a) {
87
- l.value.stockBalance = a;
91
+ d.value.stockBalance = a;
88
92
  },
89
93
  get productBalance() {
90
- return l.value.productBalance;
94
+ return d.value.productBalance;
91
95
  },
92
96
  set productBalance(a) {
93
- l.value.productBalance = a;
97
+ d.value.productBalance = a;
94
98
  },
95
99
  // actions
96
100
  async readStockBalance() {
97
- this.stockBalance = await u.readStockBalance();
101
+ this.stockBalance = await c.readStockBalance();
98
102
  },
99
103
  async readProductBalance() {
100
104
  this.productBalance = [];
101
- const a = d(), c = B({
105
+ const a = l(), u = k({
102
106
  recipes: a.recipes,
103
107
  skus: a.skus,
104
108
  inventoryBindingMapping: {},
@@ -108,9 +112,9 @@ const f = p(0), w = {
108
112
  function t(e, n) {
109
113
  return Object.prototype.hasOwnProperty.call(e, n);
110
114
  }
111
- for (const e in c.convertCountdown)
112
- if (t(c.convertCountdown, e)) {
113
- const n = c.convertCountdown[e];
115
+ for (const e in u.convertCountdown)
116
+ if (t(u.convertCountdown, e)) {
117
+ const n = u.convertCountdown[e];
114
118
  this.productBalance.push({
115
119
  id: e,
116
120
  count: n
@@ -11,7 +11,9 @@ export declare enum InventoryFeature {
11
11
  inventory_pos_costing = "inventory_pos_costing",
12
12
  inventory_pos_stock_return = "inventory_pos_stock_return",
13
13
  inventory_pos_transfer_require_fulfillment = "inventory_pos_transfer_require_fulfillment",
14
- inventory_purchase_order_approval = "inventory_purchase_order_approval"
14
+ inventory_purchase_order_approval = "inventory_purchase_order_approval",
15
+ inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note",
16
+ inventory_portal_po_operate_v2 = "inventory_portal_po_operate_v2"
15
17
  }
16
18
  export interface FeatureState {
17
19
  enableTotalCost: boolean;
@@ -25,10 +27,10 @@ export interface FeatureState {
25
27
  enableWastageTemplate: boolean;
26
28
  enableIngredientGroup: boolean;
27
29
  mustUsePoTemplate: boolean;
28
- /** @deprecated TODO: remove */
29
- mustUseDefaultCost: boolean;
30
30
  enableSupplierMasterList: boolean;
31
31
  businessSupplierOnly: boolean;
32
+ enableXilnexTransferNote: boolean;
33
+ enablePoOperateV2: boolean;
32
34
  }
33
35
  export declare const useFeatureStore: () => {
34
36
  readonly businessDbName: string;
@@ -45,10 +47,10 @@ export declare const useFeatureStore: () => {
45
47
  readonly enableWastageTemplate: boolean;
46
48
  readonly enableIngredientGroup: boolean;
47
49
  readonly mustUsePoTemplate: boolean;
48
- /** @deprecated TODO: remove */
49
- readonly mustUseDefaultCost: boolean;
50
50
  readonly enableSupplierMasterList: boolean;
51
51
  readonly businessSupplierOnly: boolean;
52
+ readonly enableXilnexTransferNote: boolean;
53
+ readonly enablePoOperateV2: boolean;
52
54
  init(): Promise<void>;
53
55
  setUser(location: FdoInventoryLocation): Promise<void>;
54
56
  };
@@ -1,4 +1,3 @@
1
- export declare const otherServers: string[];
2
1
  export declare function generateBackendUrl(country: string): {
3
2
  portalBackendUrl: string;
4
3
  netSuiteBackendUrl: string;
@@ -4,4 +4,5 @@ export declare enum IntegrationType {
4
4
  }
5
5
  export declare function useIntegrationStore(): {
6
6
  readonly enabledIntegrations: number;
7
+ readonly isNetSuiteEnabled: boolean;
7
8
  };
@@ -12,9 +12,13 @@ export declare function useNetSuiteStore(): {
12
12
  _id: string;
13
13
  enable: boolean;
14
14
  items: {
15
+ externalId?: string | null | undefined;
16
+ cogsAccount?: {
17
+ id: string;
18
+ refName: string;
19
+ } | null | undefined;
15
20
  pktCode?: string | null | undefined;
16
21
  pktName?: string | null | undefined;
17
- externalId?: string | null | undefined;
18
22
  id: string;
19
23
  netSuiteId: string;
20
24
  unitTypeId: string;
@@ -36,9 +40,13 @@ export declare function useNetSuiteStore(): {
36
40
  deploymentId: string;
37
41
  }[] | null | undefined;
38
42
  childItems: {
43
+ externalId?: string | null | undefined;
44
+ cogsAccount?: {
45
+ id: string;
46
+ refName: string;
47
+ } | null | undefined;
39
48
  pktCode?: string | null | undefined;
40
49
  pktName?: string | null | undefined;
41
- externalId?: string | null | undefined;
42
50
  netSuiteId: string;
43
51
  parentNetSuiteId: string;
44
52
  unitTypeId: string;
@@ -77,9 +85,13 @@ export declare function useNetSuiteStore(): {
77
85
  readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
78
86
  readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
79
87
  readonly netSuiteItemBySkuId: Map<unknown, [{
88
+ externalId?: string | null | undefined;
89
+ cogsAccount?: {
90
+ id: string;
91
+ refName: string;
92
+ } | null | undefined;
80
93
  pktCode?: string | null | undefined;
81
94
  pktName?: string | null | undefined;
82
- externalId?: string | null | undefined;
83
95
  id: string;
84
96
  netSuiteId: string;
85
97
  unitTypeId: string;
@@ -87,9 +99,13 @@ export declare function useNetSuiteStore(): {
87
99
  subsidiaryIds: string[];
88
100
  includeChildren: boolean;
89
101
  }, ...{
102
+ externalId?: string | null | undefined;
103
+ cogsAccount?: {
104
+ id: string;
105
+ refName: string;
106
+ } | null | undefined;
90
107
  pktCode?: string | null | undefined;
91
108
  pktName?: string | null | undefined;
92
- externalId?: string | null | undefined;
93
109
  id: string;
94
110
  netSuiteId: string;
95
111
  unitTypeId: string;
@@ -172,8 +188,9 @@ export declare function useNetSuiteStore(): {
172
188
  getAvailableItems(subsidiaryId?: string | null): string[];
173
189
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
174
190
  readSetting(): Promise<void>;
191
+ getNetSuiteLocations(): Promise<any>;
175
192
  getVendorSubsidiaryName(supplierId: string): string;
176
- syncTransferOrder(type: string, poId: string, porId?: string): Promise<void>;
193
+ syncPurchaseOrder(poId: string): Promise<void>;
177
194
  getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
178
195
  };
179
196
  export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
@@ -50,6 +50,7 @@ export declare function useInventoryStore(): {
50
50
  }[];
51
51
  }[] | null | undefined;
52
52
  sku?: {
53
+ customAttributes?: Record<string, any> | null | undefined;
53
54
  trackingMeasurement?: string | null | undefined;
54
55
  convert?: {
55
56
  measurement?: string | null | undefined;
@@ -93,7 +94,6 @@ export declare function useInventoryStore(): {
93
94
  low: number;
94
95
  mid: number;
95
96
  } | null | undefined;
96
- customAttributes?: Record<string, any> | null | undefined;
97
97
  unit: {
98
98
  _id: string;
99
99
  name: string;
@@ -155,6 +155,7 @@ export declare function useInventoryStore(): {
155
155
  _id: string;
156
156
  name: string;
157
157
  skus: {
158
+ customAttributes?: Record<string, any> | null | undefined;
158
159
  trackingMeasurement?: string | null | undefined;
159
160
  convert?: {
160
161
  measurement?: string | null | undefined;
@@ -198,7 +199,6 @@ export declare function useInventoryStore(): {
198
199
  low: number;
199
200
  mid: number;
200
201
  } | null | undefined;
201
- customAttributes?: Record<string, any> | null | undefined;
202
202
  code: string;
203
203
  _id: string;
204
204
  name: string;
@@ -826,6 +826,7 @@ export declare function useInventoryStore(): {
826
826
  }[];
827
827
  }[] | null | undefined;
828
828
  sku?: {
829
+ customAttributes?: Record<string, any> | null | undefined;
829
830
  trackingMeasurement?: string | null | undefined;
830
831
  convert?: {
831
832
  measurement?: string | null | undefined;
@@ -869,7 +870,6 @@ export declare function useInventoryStore(): {
869
870
  low: number;
870
871
  mid: number;
871
872
  } | null | undefined;
872
- customAttributes?: Record<string, any> | null | undefined;
873
873
  unit: {
874
874
  _id: string;
875
875
  name: string;
@@ -931,6 +931,7 @@ export declare function useInventoryStore(): {
931
931
  _id: string;
932
932
  name: string;
933
933
  skus: {
934
+ customAttributes?: Record<string, any> | null | undefined;
934
935
  trackingMeasurement?: string | null | undefined;
935
936
  convert?: {
936
937
  measurement?: string | null | undefined;
@@ -974,7 +975,6 @@ export declare function useInventoryStore(): {
974
975
  low: number;
975
976
  mid: number;
976
977
  } | null | undefined;
977
- customAttributes?: Record<string, any> | null | undefined;
978
978
  code: string;
979
979
  _id: string;
980
980
  name: string;
@@ -1963,6 +1963,7 @@ export declare function useInventoryStore(): {
1963
1963
  unitUsedBy: Record<string, UnitUsedBy[]>;
1964
1964
  };
1965
1965
  closing: {
1966
+ effectiveAt?: string | null | undefined;
1966
1967
  closedBy?: {
1967
1968
  name: string;
1968
1969
  id: string;
@@ -2001,6 +2002,11 @@ export declare function useInventoryStore(): {
2001
2002
  id: string;
2002
2003
  createdAt: string;
2003
2004
  } | null | undefined;
2005
+ weightedAverage?: {
2006
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2007
+ amount: number;
2008
+ precision: number;
2009
+ } | null | undefined;
2004
2010
  balance: {
2005
2011
  amount: number;
2006
2012
  precision: number;
@@ -2085,6 +2091,7 @@ export declare function useInventoryStore(): {
2085
2091
  }[];
2086
2092
  }>;
2087
2093
  readonly skus: {
2094
+ customAttributes?: Record<string, any> | null | undefined;
2088
2095
  trackingMeasurement?: string | null | undefined;
2089
2096
  convert?: {
2090
2097
  measurement?: string | null | undefined;
@@ -2128,7 +2135,6 @@ export declare function useInventoryStore(): {
2128
2135
  low: number;
2129
2136
  mid: number;
2130
2137
  } | null | undefined;
2131
- customAttributes?: Record<string, any> | null | undefined;
2132
2138
  unit: {
2133
2139
  _id: string;
2134
2140
  name: string;
@@ -2149,6 +2155,7 @@ export declare function useInventoryStore(): {
2149
2155
  name: string;
2150
2156
  }[];
2151
2157
  readonly skuById: Record<string, {
2158
+ customAttributes?: Record<string, any> | null | undefined;
2152
2159
  trackingMeasurement?: string | null | undefined;
2153
2160
  convert?: {
2154
2161
  measurement?: string | null | undefined;
@@ -2192,7 +2199,6 @@ export declare function useInventoryStore(): {
2192
2199
  low: number;
2193
2200
  mid: number;
2194
2201
  } | null | undefined;
2195
- customAttributes?: Record<string, any> | null | undefined;
2196
2202
  unit: {
2197
2203
  _id: string;
2198
2204
  name: string;
@@ -2213,6 +2219,7 @@ export declare function useInventoryStore(): {
2213
2219
  name: string;
2214
2220
  }>;
2215
2221
  readonly skuByCode: Record<string, {
2222
+ customAttributes?: Record<string, any> | null | undefined;
2216
2223
  trackingMeasurement?: string | null | undefined;
2217
2224
  convert?: {
2218
2225
  measurement?: string | null | undefined;
@@ -2256,7 +2263,6 @@ export declare function useInventoryStore(): {
2256
2263
  low: number;
2257
2264
  mid: number;
2258
2265
  } | null | undefined;
2259
- customAttributes?: Record<string, any> | null | undefined;
2260
2266
  unit: {
2261
2267
  _id: string;
2262
2268
  name: string;
@@ -2296,6 +2302,7 @@ export declare function useInventoryStore(): {
2296
2302
  _id: string;
2297
2303
  name: string;
2298
2304
  skus: {
2305
+ customAttributes?: Record<string, any> | null | undefined;
2299
2306
  trackingMeasurement?: string | null | undefined;
2300
2307
  convert?: {
2301
2308
  measurement?: string | null | undefined;
@@ -2339,12 +2346,138 @@ export declare function useInventoryStore(): {
2339
2346
  low: number;
2340
2347
  mid: number;
2341
2348
  } | null | undefined;
2342
- customAttributes?: Record<string, any> | null | undefined;
2343
2349
  code: string;
2344
2350
  _id: string;
2345
2351
  name: string;
2346
2352
  }[];
2347
2353
  }[];
2354
+ readonly skuTags: Map<unknown, [{
2355
+ customAttributes?: Record<string, any> | null | undefined;
2356
+ trackingMeasurement?: string | null | undefined;
2357
+ convert?: {
2358
+ measurement?: string | null | undefined;
2359
+ inventoryBindings?: {
2360
+ measurement?: {
2361
+ id: string;
2362
+ name: string;
2363
+ abbrev: string;
2364
+ conversion: {
2365
+ amount: number;
2366
+ precision: number;
2367
+ };
2368
+ } | null | undefined;
2369
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2370
+ amount: {
2371
+ amount: number;
2372
+ precision: number;
2373
+ };
2374
+ id: string;
2375
+ }[] | null | undefined;
2376
+ } | null | undefined;
2377
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2378
+ defaultCost?: {
2379
+ measurement?: {
2380
+ id: string;
2381
+ name: string;
2382
+ abbrev: string;
2383
+ conversion: {
2384
+ amount: number;
2385
+ precision: number;
2386
+ };
2387
+ } | null | undefined;
2388
+ costPerUnit: {
2389
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2390
+ amount: number;
2391
+ precision: number;
2392
+ };
2393
+ } | null | undefined;
2394
+ operationalGroup?: string | null | undefined;
2395
+ thresholds?: {
2396
+ low: number;
2397
+ mid: number;
2398
+ } | null | undefined;
2399
+ unit: {
2400
+ _id: string;
2401
+ name: string;
2402
+ abbrev: string;
2403
+ precision: number;
2404
+ measurements: {
2405
+ id: string;
2406
+ name: string;
2407
+ abbrev: string;
2408
+ conversion: {
2409
+ amount: number;
2410
+ precision: number;
2411
+ };
2412
+ }[];
2413
+ };
2414
+ code: string;
2415
+ _id: string;
2416
+ name: string;
2417
+ }, ...{
2418
+ customAttributes?: Record<string, any> | null | undefined;
2419
+ trackingMeasurement?: string | null | undefined;
2420
+ convert?: {
2421
+ measurement?: string | null | undefined;
2422
+ inventoryBindings?: {
2423
+ measurement?: {
2424
+ id: string;
2425
+ name: string;
2426
+ abbrev: string;
2427
+ conversion: {
2428
+ amount: number;
2429
+ precision: number;
2430
+ };
2431
+ } | null | undefined;
2432
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2433
+ amount: {
2434
+ amount: number;
2435
+ precision: number;
2436
+ };
2437
+ id: string;
2438
+ }[] | null | undefined;
2439
+ } | null | undefined;
2440
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2441
+ defaultCost?: {
2442
+ measurement?: {
2443
+ id: string;
2444
+ name: string;
2445
+ abbrev: string;
2446
+ conversion: {
2447
+ amount: number;
2448
+ precision: number;
2449
+ };
2450
+ } | null | undefined;
2451
+ costPerUnit: {
2452
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2453
+ amount: number;
2454
+ precision: number;
2455
+ };
2456
+ } | null | undefined;
2457
+ operationalGroup?: string | null | undefined;
2458
+ thresholds?: {
2459
+ low: number;
2460
+ mid: number;
2461
+ } | null | undefined;
2462
+ unit: {
2463
+ _id: string;
2464
+ name: string;
2465
+ abbrev: string;
2466
+ precision: number;
2467
+ measurements: {
2468
+ id: string;
2469
+ name: string;
2470
+ abbrev: string;
2471
+ conversion: {
2472
+ amount: number;
2473
+ precision: number;
2474
+ };
2475
+ }[];
2476
+ };
2477
+ code: string;
2478
+ _id: string;
2479
+ name: string;
2480
+ }[]]>;
2348
2481
  init(): Promise<void>;
2349
2482
  readClosing(): Promise<void>;
2350
2483
  getAffectedMenu(id: string): Promise<BindedWithRecipeId[]>;
@@ -17,6 +17,7 @@ export declare function useLocationStore(): {
17
17
  acceptRequest: boolean;
18
18
  dbName: string;
19
19
  doc: {
20
+ customAttributes?: Record<string, any> | null | undefined;
20
21
  _id: string;
21
22
  businessId: string;
22
23
  profile: {
@@ -108,6 +109,7 @@ export declare function useLocationStore(): {
108
109
  acceptRequest: boolean;
109
110
  dbName: string;
110
111
  doc: {
112
+ customAttributes?: Record<string, any> | null | undefined;
111
113
  _id: string;
112
114
  businessId: string;
113
115
  profile: {
@@ -200,6 +202,7 @@ export declare function useLocationStore(): {
200
202
  acceptRequest: boolean;
201
203
  dbName: string;
202
204
  doc: {
205
+ customAttributes?: Record<string, any> | null | undefined;
203
206
  _id: string;
204
207
  businessId: string;
205
208
  profile: {
@@ -291,6 +294,7 @@ export declare function useLocationStore(): {
291
294
  acceptRequest: boolean;
292
295
  dbName: string;
293
296
  doc: {
297
+ customAttributes?: Record<string, any> | null | undefined;
294
298
  _id: string;
295
299
  businessId: string;
296
300
  profile: {
@@ -383,6 +387,7 @@ export declare function useLocationStore(): {
383
387
  acceptRequest: boolean;
384
388
  dbName: string;
385
389
  doc: {
390
+ customAttributes?: Record<string, any> | null | undefined;
386
391
  _id: string;
387
392
  businessId: string;
388
393
  profile: {
@@ -474,6 +479,7 @@ export declare function useLocationStore(): {
474
479
  acceptRequest: boolean;
475
480
  dbName: string;
476
481
  doc: {
482
+ customAttributes?: Record<string, any> | null | undefined;
477
483
  _id: string;
478
484
  businessId: string;
479
485
  profile: {
@@ -568,6 +574,7 @@ export declare function useLocationStore(): {
568
574
  acceptRequest: boolean;
569
575
  dbName: string;
570
576
  doc: {
577
+ customAttributes?: Record<string, any> | null | undefined;
571
578
  _id: string;
572
579
  businessId: string;
573
580
  profile: {
@@ -660,6 +667,7 @@ export declare function useLocationStore(): {
660
667
  acceptRequest: boolean;
661
668
  dbName: string;
662
669
  doc: {
670
+ customAttributes?: Record<string, any> | null | undefined;
663
671
  _id: string;
664
672
  businessId: string;
665
673
  profile: {
@@ -748,4 +756,5 @@ export declare function useLocationStore(): {
748
756
  setLocations(resp: InventoryLocation[]): void;
749
757
  selectLocation(location?: InventoryLocation, skipStorage?: boolean): void;
750
758
  init(): Promise<void>;
759
+ readonly locationCustomTags: string[];
751
760
  };