@feedmepos/mf-inventory-portal 1.0.4 → 1.0.5-dev

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 (67) hide show
  1. package/dist/{App-1l3YVXQB.js → App-HiQFjdJ-.js} +1 -1
  2. package/dist/{ApprovalView-DGHLT-48.js → ApprovalView-CynLDEVc.js} +2 -2
  3. package/dist/{BindingsDialog-BPoVhNF0.js → BindingsDialog-Bnp9wpfo.js} +2 -2
  4. package/dist/{BindingsPicker-BiPFMEqv.js → BindingsPicker-d0mYW8dg.js} +5 -5
  5. package/dist/{BindingsTable-DsVbwW3I.js → BindingsTable-DTqY2ksc.js} +5 -5
  6. package/dist/{ClosingDraftView-BpOrPZ35.js → ClosingDraftView-CWioP0pS.js} +2 -2
  7. package/dist/{ClosingTemplateView-BQP412ES.js → ClosingTemplateView-BQrAl5fV.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-BX-6SbuE.js → DeliveryOrderPrintPreview-BDF8lY7Y.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BRm8Wh2C.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BN_xp-N6.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BQk18dpp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BWUrzPyM.js} +1 -1
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DJ4Z9Bym.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XhFhN0MD.js} +1 -1
  12. package/dist/{IngredientGroupView-C-GPxZym.js → IngredientGroupView-CyjtkSE4.js} +1 -1
  13. package/dist/{IngredientsView-DBomCz4a.js → IngredientsView-DcTIYA5r.js} +3 -3
  14. package/dist/IntegrationView-Jeh9aw2u.js +2148 -0
  15. package/dist/{InventoryBindingForm-DGbZaj6f.js → InventoryBindingForm-dlNXDnnO.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Choaw1h_.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BeUd7kC6.js} +3 -3
  17. package/dist/{InventoryBindingSummary-CAYvXFNI.js → InventoryBindingSummary-BPvSql2a.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtYkG_H4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFofvMkD.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bkrxw-94.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaBtx2ad.js} +1 -1
  20. package/dist/{PublishView-Cmln8_Ro.js → PublishView-4Mh9EtfQ.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-BbeNjYHl.js → PurchaseOrderPrintPreview-DFNVxR7Q.js} +1 -1
  22. package/dist/{ReceiveRequestView-BOELncqa.js → ReceiveRequestView-DGfyfwbS.js} +8 -8
  23. package/dist/{RecipeView-Dlv6bHvL.js → RecipeView-D-M9rodW.js} +3 -3
  24. package/dist/{StockView-Cj3KSAEY.js → StockView-Dmy2nTn9.js} +6 -6
  25. package/dist/{SupplierView-CwfA8gqH.js → SupplierView-dwayUuSs.js} +3 -3
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-3ou6nxtE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtrWgdXq.js} +6 -6
  27. package/dist/{TransferTemplateView-BykJFCFM.js → TransferTemplateView-zl-E8FWk.js} +6 -6
  28. package/dist/{UnitView-DtFszNDg.js → UnitView-DlgkMRfA.js} +3 -3
  29. package/dist/{WarehouseView-D4rwBsnL.js → WarehouseView-Cwm2w_Li.js} +1 -1
  30. package/dist/api/closing.d.ts +7 -1
  31. package/dist/api/netsuite.d.ts +82 -0
  32. package/dist/api/stock.d.ts +12 -12
  33. package/dist/{app-TZPx6hBA.js → app-7jcARtWe.js} +2150 -2098
  34. package/dist/app.js +1 -1
  35. package/dist/{decimal-CBDsYF6p.js → decimal-Df15BvRp.js} +1 -1
  36. package/dist/{format-unit-display-DShK_zgf.js → format-unit-display-CEjqAYMQ.js} +2 -2
  37. package/dist/index-D1mi5w82.js +125 -0
  38. package/dist/{index-DaKwJRzd.js → index-D76OeHWL.js} +1 -1
  39. package/dist/{stock-DgeArP0g.js → stock-C2o7RYsv.js} +1 -1
  40. package/dist/stores/feature.d.ts +4 -1
  41. package/dist/stores/integration/index.d.ts +1 -0
  42. package/dist/stores/integration/netsuite.d.ts +11 -0
  43. package/dist/stores/integration/xilnex.d.ts +12 -0
  44. package/dist/stores/inventory.d.ts +12 -12
  45. package/dist/stores/stock.d.ts +12 -12
  46. package/dist/{supplier-Cdayezsg.js → supplier-DX4BGHJ3.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-DxNf7wpZ.js → use-ingredient-select-dialog-BQq-zLGA.js} +1 -1
  49. package/dist/{use-inventory-binding-dialog-COJedUJI.js → use-inventory-binding-dialog-NM2fZkBw.js} +1 -1
  50. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -40
  51. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +240 -240
  52. package/dist/views/integration/XilnexView.vue.d.ts +2 -0
  53. package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
  54. package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
  55. package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
  56. package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
  57. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
  58. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
  59. package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
  60. package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +32 -32
  62. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +66 -66
  63. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +66 -66
  64. package/dist/{vue-i18n-BQo9rAn5.js → vue-i18n-BRmzzMWS.js} +425 -425
  65. package/package.json +3 -2
  66. package/dist/IntegrationView--zHl_dGU.js +0 -1197
  67. package/dist/index-B662tmXm.js +0 -84
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { a_ as s, a$ as e, b0 as o, aZ as t, b1 as i, a as m } from "./app-TZPx6hBA.js";
2
+ import { a$ as s, b0 as e, b1 as o, a_ as t, b2 as i, a as m } from "./app-7jcARtWe.js";
3
3
  export {
4
4
  s as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-TZPx6hBA.js";
1
+ import "./app-7jcARtWe.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,10 +1,10 @@
1
- import { Y as Re, a as H, L as Ie, ab as P, s as Ae, ac as pe, v as fe, u as z, j as M, w as Ne, aD as oe, x as ye, b as J, t as j, Q as K, aC as De, av as Oe, W as Fe, y as Pe, z as Me, e as ae, f as Z, R as se, J as Ue, aa as Be, D as W, i as D, h as Le } from "./app-TZPx6hBA.js";
1
+ import { Y as Re, a as H, L as Ie, ab as P, s as Ae, ac as pe, v as fe, u as z, j as M, w as Ne, aD as oe, x as ye, b as J, t as j, Q as K, aC as De, av as Oe, W as Fe, y as Pe, z as Me, e as ae, f as Z, R as se, J as Ue, aa as Be, D as W, i as D, h as Le } from "./app-7jcARtWe.js";
2
2
  import { useCoreStore as X, useI18n as ee } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Qe, useSnackbar as he, useDialog as He, FmButtonVariant as ie, components as le } from "@feedmepos/ui-library";
4
4
  import { defineStore as ve } from "pinia";
5
5
  import { defineComponent as ge, resolveComponent as B, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as L, createTextVNode as qe, toDisplayString as I, unref as R, createCommentVNode as Q, createVNode as O, withCtx as G, Fragment as U, renderList as V, ref as C, onMounted as Ve, computed as ce, watch as je, createSlots as ze, createBlock as q, h as Y } from "vue";
6
6
  import { useRouter as Ke } from "vue-router";
7
- import { u as te } from "./supplier-Cdayezsg.js";
7
+ import { u as te } from "./supplier-DX4BGHJ3.js";
8
8
  const be = Re((e, t) => {
9
9
  function s() {
10
10
  var n;
@@ -0,0 +1,125 @@
1
+ import { ref as f, computed as l } from "vue";
2
+ import { u as g, aP as b, aJ as v, c as d, b as S } from "./app-7jcARtWe.js";
3
+ import { useSnackbar as p } from "@feedmepos/ui-library";
4
+ import "@feedmepos/mf-common";
5
+ function h() {
6
+ return {
7
+ setting: {
8
+ _id: "",
9
+ enable: !1,
10
+ bindings: [],
11
+ uniqueCode: "",
12
+ branchCode: "",
13
+ server: {
14
+ password: "",
15
+ host: "",
16
+ username: "",
17
+ port: "",
18
+ directory: ""
19
+ },
20
+ histories: [],
21
+ modifiers: [],
22
+ exportAsJson: !1
23
+ },
24
+ menu: [],
25
+ group: [],
26
+ variants: [],
27
+ categories: []
28
+ };
29
+ }
30
+ const s = f(h());
31
+ function E() {
32
+ return {
33
+ // state
34
+ get isEnabled() {
35
+ return s.value.setting.enable;
36
+ },
37
+ get isBusinessLocation() {
38
+ return g().businessLevel;
39
+ },
40
+ get state() {
41
+ return s.value;
42
+ },
43
+ async init() {
44
+ var a, e, t, i;
45
+ const n = b();
46
+ try {
47
+ const o = await n.readMenu();
48
+ s.value.menu = ((a = o.modules) == null ? void 0 : a.item) ?? [], s.value.group = ((e = o.modules) == null ? void 0 : e.group) ?? [], s.value.variants = ((t = o.modules) == null ? void 0 : t.variant) ?? [];
49
+ const r = (((i = o.modules) == null ? void 0 : i.category) ?? []).map((c) => ({
50
+ ...c,
51
+ _id: c._id === void 0 ? null : c._id
52
+ }));
53
+ s.value.categories = r, s.value.setting = await n.readSetting();
54
+ } catch (o) {
55
+ p().open({
56
+ title: "Something went wrong",
57
+ message: "Cannot fetch integration info. Please try again.",
58
+ type: "error"
59
+ }), console.error("Error at fetching integration info", o);
60
+ }
61
+ }
62
+ };
63
+ }
64
+ function m() {
65
+ return {
66
+ locationId: ""
67
+ };
68
+ }
69
+ const u = f(m());
70
+ function x() {
71
+ const n = g(), a = v();
72
+ return n.watchLocation(async (e) => {
73
+ if (d().enabledXilnexOpeningMigration) {
74
+ if (!e) {
75
+ u.value = m();
76
+ return;
77
+ }
78
+ u.value.locationId = e.dbName;
79
+ const i = await a.readLastClosing(e.dbName);
80
+ i ? u.value.closingDocumentId = i._id : u.value.closingDocumentId = "";
81
+ }
82
+ }), {
83
+ get isEnabled() {
84
+ const e = d();
85
+ return l(() => e.enabledXilnexOpeningMigration).value;
86
+ },
87
+ get state() {
88
+ return u.value;
89
+ },
90
+ async fetchClosingDocumentId() {
91
+ const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
92
+ t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
93
+ }
94
+ };
95
+ }
96
+ function F() {
97
+ const n = S(), a = E(), e = x(), t = l(() => n.isEnabled), i = l(() => a.isEnabled), o = l(() => e.isEnabled);
98
+ return {
99
+ get enabledIntegrations() {
100
+ return [t.value, i.value, o.value].filter((r) => r).length;
101
+ },
102
+ get isNetSuiteEnabled() {
103
+ return t.value;
104
+ },
105
+ async fetchFoodMarketHubSetting() {
106
+ try {
107
+ await a.init();
108
+ } catch (r) {
109
+ console.error("Error fetching FoodMarketHub setting:", r);
110
+ }
111
+ },
112
+ async fetchNetSuiteSetting() {
113
+ try {
114
+ await n.readSetting();
115
+ } catch (r) {
116
+ console.error("Error fetching NetSuite setting:", r);
117
+ }
118
+ }
119
+ };
120
+ }
121
+ export {
122
+ E as a,
123
+ x as b,
124
+ F as u
125
+ };
@@ -1,4 +1,4 @@
1
- import { aO as L, aT as U, aU as q, aV as Fe, aW as tl, aX as ar, aY as Nt } from "./app-TZPx6hBA.js";
1
+ import { aO as L, aU as U, aV as q, aW as Fe, aX as tl, aY as ar, aZ as Nt } from "./app-7jcARtWe.js";
2
2
  function rl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { Y as m, u as B, a as l, ak as k, L as p } from "./app-TZPx6hBA.js";
1
+ import { Y as m, u as B, a as l, ak as k, L as p } from "./app-7jcARtWe.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as S } from "vue";
@@ -15,7 +15,8 @@ export declare enum InventoryFeature {
15
15
  inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note",
16
16
  inventory_portal_custom_attribute = "inventory_portal_custom_attribute",
17
17
  inventory_portal_purchase_order_v2 = "inventory_portal_purchase_order_v2",
18
- inventory_portal_accept_require_fulfillment = "inventory_portal_accept_require_fulfillment"
18
+ inventory_portal_accept_require_fulfillment = "inventory_portal_accept_require_fulfillment",
19
+ inventory_xilnex_opening_migration = "inventory_xilnex_opening_migration"
19
20
  }
20
21
  export interface FeatureState {
21
22
  enableTotalCost: boolean;
@@ -36,6 +37,7 @@ export interface FeatureState {
36
37
  enableCustomAttribute: boolean;
37
38
  usePurchaseOrderV2: boolean;
38
39
  acceptRequireFulfillment?: boolean;
40
+ inventory_xilnex_opening_migration: boolean;
39
41
  }
40
42
  export declare const useFeatureStore: () => {
41
43
  readonly businessDbName: string;
@@ -55,6 +57,7 @@ export declare const useFeatureStore: () => {
55
57
  readonly enableSupplierMasterList: boolean;
56
58
  readonly businessSupplierOnly: boolean;
57
59
  readonly enableXilnexTransferNote: boolean;
60
+ readonly enabledXilnexOpeningMigration: boolean;
58
61
  readonly enableCustomAttribute: boolean;
59
62
  readonly usePurchaseOrderV2: boolean;
60
63
  readonly acceptRequireFulfillment: boolean | undefined;
@@ -6,4 +6,5 @@ export declare function useIntegrationStore(): {
6
6
  readonly enabledIntegrations: number;
7
7
  readonly isNetSuiteEnabled: boolean;
8
8
  fetchFoodMarketHubSetting(): Promise<void>;
9
+ fetchNetSuiteSetting(): Promise<void>;
9
10
  };
@@ -159,6 +159,7 @@ export declare function useNetSuiteStore(): {
159
159
  precision: number;
160
160
  };
161
161
  } | undefined)[]]>;
162
+ readonly isCurrentLocationBindedToNetSuite: boolean;
162
163
  getNetSuiteVendor(supplierId: string): FdoNetSuiteVendor | undefined;
163
164
  getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
164
165
  getSubsidiaryFullName(subsidiaryId?: string | null): {
@@ -188,10 +189,20 @@ export declare function useNetSuiteStore(): {
188
189
  getAvailableItems(subsidiaryId?: string | null): string[];
189
190
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
190
191
  readSetting(): Promise<void>;
192
+ updateLocationConfigs(payload: Record<string, {
193
+ netsuiteId: string;
194
+ name: string;
195
+ }>): Promise<any>;
191
196
  getNetSuiteLocations(): Promise<any>;
192
197
  getVendorSubsidiaryName(supplierId: string): string;
193
198
  syncPurchaseOrder(poId: string): Promise<void>;
194
199
  getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
200
+ getNetSuiteLocationOptions(): Promise<{
201
+ netsuiteId: string;
202
+ name: string;
203
+ subsidiaryName: string;
204
+ }[]>;
205
+ getItemAverageCosts(): Promise<Record<string, number>>;
195
206
  };
196
207
  export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
197
208
  fullName?: string;
@@ -0,0 +1,12 @@
1
+ export interface NetSuiteState {
2
+ locationId: string;
3
+ closingDocumentId?: string;
4
+ }
5
+ export declare function useXilnexStore(): {
6
+ readonly isEnabled: boolean;
7
+ readonly state: {
8
+ locationId: string;
9
+ closingDocumentId?: string | undefined;
10
+ };
11
+ fetchClosingDocumentId(): Promise<void>;
12
+ };
@@ -1970,18 +1970,6 @@ export declare function useInventoryStore(): {
1970
1970
  } | null | undefined;
1971
1971
  _id?: string | undefined;
1972
1972
  skus?: {
1973
- costs?: {
1974
- adjustmentId?: string | null | undefined;
1975
- amount: {
1976
- amount: number;
1977
- precision: number;
1978
- };
1979
- cost: {
1980
- 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";
1981
- amount: number;
1982
- precision: number;
1983
- };
1984
- }[] | null | undefined;
1985
1973
  closing?: {
1986
1974
  costBalances?: {
1987
1975
  adjustmentId?: string | null | undefined;
@@ -2002,6 +1990,18 @@ export declare function useInventoryStore(): {
2002
1990
  id: string;
2003
1991
  createdAt: string;
2004
1992
  } | null | undefined;
1993
+ costs?: {
1994
+ adjustmentId?: string | null | undefined;
1995
+ amount: {
1996
+ amount: number;
1997
+ precision: number;
1998
+ };
1999
+ cost: {
2000
+ 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";
2001
+ amount: number;
2002
+ precision: number;
2003
+ };
2004
+ }[] | null | undefined;
2005
2005
  weightedAverage?: {
2006
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
2007
  amount: number;
@@ -5,18 +5,6 @@ export interface StockStore {
5
5
  export declare const useStockStore: () => {
6
6
  stockBalance: {
7
7
  skus?: {
8
- costs?: {
9
- adjustmentId?: string | null | undefined;
10
- amount: {
11
- amount: number;
12
- precision: number;
13
- };
14
- cost: {
15
- 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";
16
- amount: number;
17
- precision: number;
18
- };
19
- }[] | null | undefined;
20
8
  closing?: {
21
9
  costBalances?: {
22
10
  adjustmentId?: string | null | undefined;
@@ -37,6 +25,18 @@ export declare const useStockStore: () => {
37
25
  id: string;
38
26
  createdAt: string;
39
27
  } | null | undefined;
28
+ costs?: {
29
+ adjustmentId?: string | null | undefined;
30
+ amount: {
31
+ amount: number;
32
+ precision: number;
33
+ };
34
+ cost: {
35
+ 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";
36
+ amount: number;
37
+ precision: number;
38
+ };
39
+ }[] | null | undefined;
40
40
  weightedAverage?: {
41
41
  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";
42
42
  amount: number;
@@ -1,4 +1,4 @@
1
- import { Y as m, u, w as y, al as b, am as w } from "./app-TZPx6hBA.js";
1
+ import { Y as m, u, w as y, al as b, am as w } from "./app-7jcARtWe.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as v } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";