@feedmepos/mf-inventory-portal 1.2.1 → 1.2.2-5.dev-1
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.
- package/dist/App-DMkUg806.js +297 -0
- package/dist/{ApprovalView-DwRrbVDo.js → ApprovalView-DWJh2K6W.js} +65 -64
- package/dist/{BindingsDialog-DUVKv10-.js → BindingsDialog-EmHCvqJI.js} +2 -2
- package/dist/{BindingsPicker-Daib_iq4.js → BindingsPicker-h_9jm1s0.js} +3 -3
- package/dist/{BindingsTable-Bv9UmcJP.js → BindingsTable-BAVWGUoa.js} +1 -1
- package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
- package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
- package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-DZPcRAja.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
- package/dist/{FmMultiselectDialog-CZmwOkrb.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
- package/dist/ImportView-lKlYeLay.js +1291 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGnoF1Zz.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
- package/dist/{IngredientGroupView-CAVYpEj3.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
- package/dist/IngredientsView-1bAsyz-b.js +2254 -0
- package/dist/{IntegrationView-DdLFyZ4H.js → IntegrationView-D16qeEc_.js} +1773 -1635
- package/dist/{InventoryBindingForm-C7BdEDtM.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7DND2dQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
- package/dist/{InventoryBindingSummary-IZ7F-Lti.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DeF32bHu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
- package/dist/{PublishView-DkgfYneI.js → PublishView-D0NnU22l.js} +73 -63
- package/dist/{PurchaseOrderPrintPreview-CltLC4o4.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
- package/dist/{ReceiveRequestView-Dj7ji0DY.js → ReceiveRequestView-j79m7TKk.js} +343 -333
- package/dist/RecipeView-D_fNQQ-C.js +636 -0
- package/dist/StockView-DX_xeFBT.js +2385 -0
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
- package/dist/{SupplierView-DE_M_9kd.js → SupplierView-DuFTqbOg.js} +1193 -1073
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
- package/dist/{TransferTemplateView-gWGBCF3u.js → TransferTemplateView-Ccsfcetz.js} +104 -103
- package/dist/UnitView-BklpNsFN.js +674 -0
- package/dist/WarehouseView-BrURbU67.js +1066 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/bill.d.ts +140 -2
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +405 -0
- package/dist/api/netsuite.d.ts +5 -1
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +3 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-CruHLH1e.js → app-a9r50k3U.js} +68551 -67573
- package/dist/app.d.ts +643 -15
- package/dist/app.js +6 -6
- package/dist/components/FmAdminBadge.vue.d.ts +1 -4
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/composable/useIframe.d.ts +2 -2
- package/dist/{decimal-izbvCC1j.js → decimal-AusUnA1W.js} +1 -1
- package/dist/{format-unit-display-4SAdfyZB.js → format-unit-display-BqkHL-ph.js} +397 -429
- package/dist/helper/array.d.ts +1 -0
- package/dist/helper/core/country/utils.d.ts +3 -4
- package/dist/helper/country.d.ts +6 -255
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-PIyNeHfa.js +238 -0
- package/dist/{index-B6GGthLw.js → index-CjxirPvn.js} +283 -268
- package/dist/{index-CnQloOEo.js → index-Dj9-pdT9.js} +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
- package/dist/purchase-order-template-CQikvY1p.js +41 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CDZ2uWSF.js +83 -0
- package/dist/stock-Dw908dIC.js +74 -0
- package/dist/stores/feature.d.ts +12 -0
- package/dist/stores/integration/netsuite.d.ts +42 -0
- package/dist/stores/inventory.d.ts +28 -199
- package/dist/stores/location.d.ts +331 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CTVE1lHO.js → supplier-BPPBUudN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CM80TfX0.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
- package/dist/{use-inventory-binding-dialog-D_omdhgn.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/App-BqaRC0Sb.js +0 -276
- package/dist/ClosingDraftView-sJ_zRPeo.js +0 -1687
- package/dist/ClosingTemplateView-cNgXHq1r.js +0 -1908
- package/dist/FmAdminBadge-oCnz8SW6.js +0 -34
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js +0 -224
- package/dist/IngredientsView-CHHeAJH_.js +0 -1858
- package/dist/RecipeView-BukmKdVG.js +0 -621
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
- package/dist/StockView-wxRCw_w-.js +0 -2087
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eqUOnJoM.js +0 -2336
- package/dist/UnitView-BgwDmGZo.js +0 -667
- package/dist/WarehouseView-BdccenhO.js +0 -1034
- package/dist/array-Ca8T3f_G.js +0 -44
- package/dist/helper/core/country/codes.d.ts +0 -255
- package/dist/stock-BJP5BB5b.js +0 -146
package/dist/array-Ca8T3f_G.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Array.prototype.computeFirst = function(e) {
|
|
2
|
-
const n = this.length;
|
|
3
|
-
for (let t = 0; t < n; t++) {
|
|
4
|
-
const o = this.at(t), s = e(o, t, this);
|
|
5
|
-
if (s != null)
|
|
6
|
-
return s;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
Array.prototype.computeLast = function(e) {
|
|
10
|
-
const n = this.length - 1;
|
|
11
|
-
for (let t = n; t >= 0; t--) {
|
|
12
|
-
const o = this.at(t), s = e(o, t, this);
|
|
13
|
-
if (s != null)
|
|
14
|
-
return s;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
Array.prototype.insert = function(e, n) {
|
|
18
|
-
if (n < this.length) {
|
|
19
|
-
const t = this.splice(n, this.length);
|
|
20
|
-
return this[n] = e, t.forEach((o) => this.push(o)), this;
|
|
21
|
-
}
|
|
22
|
-
return this[n] = e, this;
|
|
23
|
-
};
|
|
24
|
-
Array.prototype.chunk = function* (e) {
|
|
25
|
-
let n = [...this];
|
|
26
|
-
for (; n.length; ) {
|
|
27
|
-
const t = n.slice(0, e);
|
|
28
|
-
n = n.slice(e), yield t;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
Array.prototype.groupBy = function(e, n) {
|
|
32
|
-
n ?? (n = (i) => i);
|
|
33
|
-
const t = /* @__PURE__ */ new Map(), o = this.length, s = typeof e == "function" ? e : (i) => i[e];
|
|
34
|
-
for (let i = 0; i < o; i++) {
|
|
35
|
-
const c = this.at(i), r = s(c), h = n(c, i, this);
|
|
36
|
-
if (!t.has(r))
|
|
37
|
-
t.set(r, [h]);
|
|
38
|
-
else {
|
|
39
|
-
const l = t.get(r);
|
|
40
|
-
t.set(r, [...l, h]);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* imported from
|
|
3
|
-
* https://github.com/feedmepos/monorepo-merged/blob/14f25e795d03c455991fa606ba36542e4282e4ae/dart/packages/feedme_core/lib/src/entity/pos.enums.dart#L313-L812
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CountryCode {
|
|
6
|
-
AF = "AF",
|
|
7
|
-
AX = "AX",
|
|
8
|
-
AL = "AL",
|
|
9
|
-
DZ = "DZ",
|
|
10
|
-
AS = "AS",
|
|
11
|
-
AD = "AD",
|
|
12
|
-
AO = "AO",
|
|
13
|
-
AI = "AI",
|
|
14
|
-
AQ = "AQ",
|
|
15
|
-
AG = "AG",
|
|
16
|
-
AR = "AR",
|
|
17
|
-
AM = "AM",
|
|
18
|
-
AW = "AW",
|
|
19
|
-
AU = "AU",
|
|
20
|
-
AT = "AT",
|
|
21
|
-
AZ = "AZ",
|
|
22
|
-
BS = "BS",
|
|
23
|
-
BH = "BH",
|
|
24
|
-
BD = "BD",
|
|
25
|
-
BB = "BB",
|
|
26
|
-
BY = "BY",
|
|
27
|
-
BE = "BE",
|
|
28
|
-
BZ = "BZ",
|
|
29
|
-
BJ = "BJ",
|
|
30
|
-
BM = "BM",
|
|
31
|
-
BT = "BT",
|
|
32
|
-
BO = "BO",
|
|
33
|
-
BQ = "BQ",
|
|
34
|
-
BA = "BA",
|
|
35
|
-
BW = "BW",
|
|
36
|
-
BV = "BV",
|
|
37
|
-
BR = "BR",
|
|
38
|
-
IO = "IO",
|
|
39
|
-
BN = "BN",
|
|
40
|
-
BG = "BG",
|
|
41
|
-
BF = "BF",
|
|
42
|
-
BI = "BI",
|
|
43
|
-
KH = "KH",
|
|
44
|
-
CM = "CM",
|
|
45
|
-
CA = "CA",
|
|
46
|
-
CV = "CV",
|
|
47
|
-
KY = "KY",
|
|
48
|
-
CF = "CF",
|
|
49
|
-
TD = "TD",
|
|
50
|
-
CL = "CL",
|
|
51
|
-
CN = "CN",
|
|
52
|
-
CX = "CX",
|
|
53
|
-
CC = "CC",
|
|
54
|
-
CO = "CO",
|
|
55
|
-
KM = "KM",
|
|
56
|
-
CG = "CG",
|
|
57
|
-
CD = "CD",
|
|
58
|
-
CK = "CK",
|
|
59
|
-
CR = "CR",
|
|
60
|
-
CI = "CI",
|
|
61
|
-
HR = "HR",
|
|
62
|
-
CU = "CU",
|
|
63
|
-
CW = "CW",
|
|
64
|
-
CY = "CY",
|
|
65
|
-
CZ = "CZ",
|
|
66
|
-
DK = "DK",
|
|
67
|
-
DJ = "DJ",
|
|
68
|
-
DM = "DM",
|
|
69
|
-
DO = "DO",
|
|
70
|
-
EC = "EC",
|
|
71
|
-
EG = "EG",
|
|
72
|
-
SV = "SV",
|
|
73
|
-
GQ = "GQ",
|
|
74
|
-
ER = "ER",
|
|
75
|
-
EE = "EE",
|
|
76
|
-
ET = "ET",
|
|
77
|
-
FK = "FK",
|
|
78
|
-
FO = "FO",
|
|
79
|
-
FJ = "FJ",
|
|
80
|
-
FI = "FI",
|
|
81
|
-
FR = "FR",
|
|
82
|
-
GF = "GF",
|
|
83
|
-
PF = "PF",
|
|
84
|
-
TF = "TF",
|
|
85
|
-
GA = "GA",
|
|
86
|
-
GM = "GM",
|
|
87
|
-
GE = "GE",
|
|
88
|
-
DE = "DE",
|
|
89
|
-
GH = "GH",
|
|
90
|
-
GI = "GI",
|
|
91
|
-
GR = "GR",
|
|
92
|
-
GL = "GL",
|
|
93
|
-
GD = "GD",
|
|
94
|
-
GP = "GP",
|
|
95
|
-
GU = "GU",
|
|
96
|
-
GT = "GT",
|
|
97
|
-
GG = "GG",
|
|
98
|
-
GN = "GN",
|
|
99
|
-
GW = "GW",
|
|
100
|
-
GY = "GY",
|
|
101
|
-
HT = "HT",
|
|
102
|
-
HM = "HM",
|
|
103
|
-
VA = "VA",
|
|
104
|
-
HN = "HN",
|
|
105
|
-
HK = "HK",
|
|
106
|
-
HU = "HU",
|
|
107
|
-
IS = "IS",
|
|
108
|
-
IN = "IN",
|
|
109
|
-
ID = "ID",
|
|
110
|
-
IR = "IR",
|
|
111
|
-
IQ = "IQ",
|
|
112
|
-
IE = "IE",
|
|
113
|
-
IM = "IM",
|
|
114
|
-
IL = "IL",
|
|
115
|
-
IT = "IT",
|
|
116
|
-
JM = "JM",
|
|
117
|
-
JP = "JP",
|
|
118
|
-
JE = "JE",
|
|
119
|
-
JO = "JO",
|
|
120
|
-
KZ = "KZ",
|
|
121
|
-
KE = "KE",
|
|
122
|
-
KI = "KI",
|
|
123
|
-
KR = "KR",
|
|
124
|
-
KP = "KP",
|
|
125
|
-
KW = "KW",
|
|
126
|
-
KG = "KG",
|
|
127
|
-
LA = "LA",
|
|
128
|
-
LV = "LV",
|
|
129
|
-
LB = "LB",
|
|
130
|
-
LS = "LS",
|
|
131
|
-
LR = "LR",
|
|
132
|
-
LY = "LY",
|
|
133
|
-
LI = "LI",
|
|
134
|
-
LT = "LT",
|
|
135
|
-
LU = "LU",
|
|
136
|
-
MO = "MO",
|
|
137
|
-
MK = "MK",
|
|
138
|
-
MG = "MG",
|
|
139
|
-
MW = "MW",
|
|
140
|
-
MY = "MY",
|
|
141
|
-
MV = "MV",
|
|
142
|
-
ML = "ML",
|
|
143
|
-
MT = "MT",
|
|
144
|
-
MH = "MH",
|
|
145
|
-
MQ = "MQ",
|
|
146
|
-
MR = "MR",
|
|
147
|
-
MU = "MU",
|
|
148
|
-
YT = "YT",
|
|
149
|
-
MX = "MX",
|
|
150
|
-
FM = "FM",
|
|
151
|
-
MD = "MD",
|
|
152
|
-
MC = "MC",
|
|
153
|
-
MN = "MN",
|
|
154
|
-
ME = "ME",
|
|
155
|
-
MS = "MS",
|
|
156
|
-
MA = "MA",
|
|
157
|
-
MZ = "MZ",
|
|
158
|
-
MM = "MM",
|
|
159
|
-
NA = "NA",
|
|
160
|
-
NR = "NR",
|
|
161
|
-
NP = "NP",
|
|
162
|
-
NL = "NL",
|
|
163
|
-
NC = "NC",
|
|
164
|
-
NZ = "NZ",
|
|
165
|
-
NI = "NI",
|
|
166
|
-
NE = "NE",
|
|
167
|
-
NG = "NG",
|
|
168
|
-
NU = "NU",
|
|
169
|
-
NF = "NF",
|
|
170
|
-
MP = "MP",
|
|
171
|
-
NO = "NO",
|
|
172
|
-
OM = "OM",
|
|
173
|
-
PK = "PK",
|
|
174
|
-
PW = "PW",
|
|
175
|
-
PS = "PS",
|
|
176
|
-
PA = "PA",
|
|
177
|
-
PG = "PG",
|
|
178
|
-
PY = "PY",
|
|
179
|
-
PE = "PE",
|
|
180
|
-
PH = "PH",
|
|
181
|
-
PN = "PN",
|
|
182
|
-
PL = "PL",
|
|
183
|
-
PT = "PT",
|
|
184
|
-
PR = "PR",
|
|
185
|
-
QA = "QA",
|
|
186
|
-
RE = "RE",
|
|
187
|
-
RO = "RO",
|
|
188
|
-
RU = "RU",
|
|
189
|
-
RW = "RW",
|
|
190
|
-
BL = "BL",
|
|
191
|
-
SH = "SH",
|
|
192
|
-
KN = "KN",
|
|
193
|
-
LC = "LC",
|
|
194
|
-
MF = "MF",
|
|
195
|
-
PM = "PM",
|
|
196
|
-
VC = "VC",
|
|
197
|
-
WS = "WS",
|
|
198
|
-
SM = "SM",
|
|
199
|
-
ST = "ST",
|
|
200
|
-
SA = "SA",
|
|
201
|
-
SN = "SN",
|
|
202
|
-
RS = "RS",
|
|
203
|
-
SC = "SC",
|
|
204
|
-
SL = "SL",
|
|
205
|
-
SG = "SG",
|
|
206
|
-
SX = "SX",
|
|
207
|
-
SK = "SK",
|
|
208
|
-
SI = "SI",
|
|
209
|
-
SB = "SB",
|
|
210
|
-
SO = "SO",
|
|
211
|
-
ZA = "ZA",
|
|
212
|
-
GS = "GS",
|
|
213
|
-
SS = "SS",
|
|
214
|
-
ES = "ES",
|
|
215
|
-
LK = "LK",
|
|
216
|
-
SD = "SD",
|
|
217
|
-
SR = "SR",
|
|
218
|
-
SJ = "SJ",
|
|
219
|
-
SZ = "SZ",
|
|
220
|
-
SE = "SE",
|
|
221
|
-
CH = "CH",
|
|
222
|
-
SY = "SY",
|
|
223
|
-
TW = "TW",
|
|
224
|
-
TJ = "TJ",
|
|
225
|
-
TZ = "TZ",
|
|
226
|
-
TH = "TH",
|
|
227
|
-
TL = "TL",
|
|
228
|
-
TG = "TG",
|
|
229
|
-
TK = "TK",
|
|
230
|
-
TO = "TO",
|
|
231
|
-
TT = "TT",
|
|
232
|
-
TN = "TN",
|
|
233
|
-
TR = "TR",
|
|
234
|
-
TM = "TM",
|
|
235
|
-
TC = "TC",
|
|
236
|
-
TV = "TV",
|
|
237
|
-
UG = "UG",
|
|
238
|
-
UA = "UA",
|
|
239
|
-
AE = "AE",
|
|
240
|
-
GB = "GB",
|
|
241
|
-
US = "US",
|
|
242
|
-
UM = "UM",
|
|
243
|
-
UY = "UY",
|
|
244
|
-
UZ = "UZ",
|
|
245
|
-
VU = "VU",
|
|
246
|
-
VE = "VE",
|
|
247
|
-
VN = "VN",
|
|
248
|
-
VG = "VG",
|
|
249
|
-
VI = "VI",
|
|
250
|
-
WF = "WF",
|
|
251
|
-
EH = "EH",
|
|
252
|
-
YE = "YE",
|
|
253
|
-
ZM = "ZM",
|
|
254
|
-
ZW = "ZW"
|
|
255
|
-
}
|
package/dist/stock-BJP5BB5b.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { a3 as m, u as k, a as l, au as B, T as p } from "./app-CruHLH1e.js";
|
|
2
|
-
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import { ref as y, computed as b } from "vue";
|
|
5
|
-
const g = m((s, a) => {
|
|
6
|
-
const c = k(), o = v(), u = $();
|
|
7
|
-
return a.onError(async (t) => {
|
|
8
|
-
t.name === "SvcForbiddenError" && (u == null || u.open({
|
|
9
|
-
title: t.title,
|
|
10
|
-
message: t.message,
|
|
11
|
-
type: "error"
|
|
12
|
-
}));
|
|
13
|
-
}), {
|
|
14
|
-
async readStockBalance() {
|
|
15
|
-
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
|
-
return await a.get(e);
|
|
17
|
-
},
|
|
18
|
-
async readSkuBalance() {
|
|
19
|
-
var r;
|
|
20
|
-
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
|
-
return (((r = o.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await a.get(e) : await a.get(`${e}?useInventoryDoc=true`);
|
|
22
|
-
},
|
|
23
|
-
async readSingleAdjustment(t) {
|
|
24
|
-
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
|
-
return await a.get(`${n}?adjustmentId=${t}`);
|
|
26
|
-
},
|
|
27
|
-
async readStockAdjustment(t, e, n) {
|
|
28
|
-
const r = c.currentLocationDBName, i = `${s.inventoryBackendUrl}/${r}/sku`;
|
|
29
|
-
return await a.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
|
-
},
|
|
31
|
-
async readAdjustmentById(t) {
|
|
32
|
-
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/adjustment`;
|
|
33
|
-
return await a.get(`${n}?adjustmentId=${t}`);
|
|
34
|
-
},
|
|
35
|
-
async convertSku(t) {
|
|
36
|
-
var i;
|
|
37
|
-
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/convert`;
|
|
38
|
-
return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
|
|
39
|
-
},
|
|
40
|
-
async adjustSku(t) {
|
|
41
|
-
var i;
|
|
42
|
-
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
43
|
-
return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
|
|
44
|
-
},
|
|
45
|
-
async revertWastageAdjustment(t) {
|
|
46
|
-
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/revert-wastage-adjustment`;
|
|
47
|
-
return await a.post(n, t);
|
|
48
|
-
},
|
|
49
|
-
recalculation: {
|
|
50
|
-
getRecalculateAbility() {
|
|
51
|
-
var r;
|
|
52
|
-
const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${s.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
|
|
53
|
-
return a.get(n);
|
|
54
|
-
},
|
|
55
|
-
startRecalculateTask() {
|
|
56
|
-
var r;
|
|
57
|
-
const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${s.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
58
|
-
return a.post(n);
|
|
59
|
-
},
|
|
60
|
-
refreshCurrentBalances() {
|
|
61
|
-
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/stock/operations/recalculate/refresh-current-balances`;
|
|
62
|
-
return a.post(e);
|
|
63
|
-
},
|
|
64
|
-
calculateStockSnapshotAtDate(t, e) {
|
|
65
|
-
const n = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${n}/stock/operations/recalculate/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
|
|
66
|
-
return a.get(r);
|
|
67
|
-
},
|
|
68
|
-
scheduleCalculateStockSnapshotAtDate(t, e) {
|
|
69
|
-
const n = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
|
|
70
|
-
return a.get(r);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
function S() {
|
|
76
|
-
return {
|
|
77
|
-
stockBalance: {
|
|
78
|
-
_id: "",
|
|
79
|
-
items: []
|
|
80
|
-
},
|
|
81
|
-
productBalance: []
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const f = p(0), N = {
|
|
85
|
-
id: "",
|
|
86
|
-
balance: f,
|
|
87
|
-
closing: null,
|
|
88
|
-
costs: null
|
|
89
|
-
}, d = y(S()), A = () => {
|
|
90
|
-
const s = l(), a = b(() => {
|
|
91
|
-
var t;
|
|
92
|
-
const o = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
|
|
93
|
-
var n;
|
|
94
|
-
return ((n = o == null ? void 0 : o.get(e)) == null ? void 0 : n[0]) ?? { ...N, id: e };
|
|
95
|
-
};
|
|
96
|
-
return s.skus.map((e) => u(e._id));
|
|
97
|
-
}), c = g();
|
|
98
|
-
return {
|
|
99
|
-
// state
|
|
100
|
-
get stockBalance() {
|
|
101
|
-
return {
|
|
102
|
-
...d.value.stockBalance,
|
|
103
|
-
skus: a.value
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
set stockBalance(o) {
|
|
107
|
-
d.value.stockBalance = o;
|
|
108
|
-
},
|
|
109
|
-
get productBalance() {
|
|
110
|
-
return d.value.productBalance;
|
|
111
|
-
},
|
|
112
|
-
set productBalance(o) {
|
|
113
|
-
d.value.productBalance = o;
|
|
114
|
-
},
|
|
115
|
-
// actions
|
|
116
|
-
async readStockBalance() {
|
|
117
|
-
this.stockBalance = await c.readStockBalance();
|
|
118
|
-
},
|
|
119
|
-
async readProductBalance() {
|
|
120
|
-
this.productBalance = [];
|
|
121
|
-
const o = l(), u = B({
|
|
122
|
-
recipes: o.recipes,
|
|
123
|
-
skus: o.skus,
|
|
124
|
-
skuGroups: o.skuGroups,
|
|
125
|
-
inventoryBindingMapping: {},
|
|
126
|
-
stockBalance: this.stockBalance
|
|
127
|
-
// silent: true
|
|
128
|
-
});
|
|
129
|
-
function t(e, n) {
|
|
130
|
-
return Object.prototype.hasOwnProperty.call(e, n);
|
|
131
|
-
}
|
|
132
|
-
for (const e in u.convertCountdown)
|
|
133
|
-
if (t(u.convertCountdown, e)) {
|
|
134
|
-
const n = u.convertCountdown[e];
|
|
135
|
-
this.productBalance.push({
|
|
136
|
-
id: e,
|
|
137
|
-
count: n
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
export {
|
|
144
|
-
g as a,
|
|
145
|
-
A as u
|
|
146
|
-
};
|