@feedmepos/mf-inventory-portal 1.2.12-dev.2 → 1.2.12
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-T4sL7Sy4.js → App-CP0Qx_82.js} +40 -44
- package/dist/{ApprovalView-CfmNwkYs.js → ApprovalView-D8_PzEpZ.js} +30 -30
- package/dist/{BindingsDialog-DDYAQsNs.js → BindingsDialog-BbpKhb0L.js} +2 -2
- package/dist/{BindingsPicker-CXZhlZ4b.js → BindingsPicker-DzDxisHj.js} +1 -1
- package/dist/{BindingsTable-LQ59h-NA.js → BindingsTable-DCXXSY8e.js} +1 -1
- package/dist/{ClosingDraftView-B1J4RCvY.js → ClosingDraftView-CkF-9An8.js} +129 -129
- package/dist/{ClosingTemplateView-6NoqcDMF.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
- package/dist/{DeliveryOrderPrintPreview--XMB1yg_.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXxGymbF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
- package/dist/{FmMultiselectDialog-DPPNjHO8.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CSgYZv-j.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-tUefDFh2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
- package/dist/{IngredientGroupView-BjtjeGay.js → IngredientGroupView-DUiKKpvF.js} +32 -31
- package/dist/IngredientsView-C3ozIXV8.js +2475 -0
- package/dist/{IntegrationView-D8HiAM5K.js → IntegrationView-CydpIwrf.js} +57 -57
- package/dist/{InventoryBindingForm-DCtBdWkM.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-RxoPehX0.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
- package/dist/{InventoryBindingSummary-DGLMoDKd.js → InventoryBindingSummary-Dthool-6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D0ElZcnn.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BNm3V8o4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
- package/dist/{PublishView-DQcrQkVJ.js → PublishView-BE_aIhZ6.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-1NMEozJD.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
- package/dist/{ReceiveRequestView-BFs8VYre.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
- package/dist/RecipeView-B9AGELV7.js +621 -0
- package/dist/{StockView-B80E0r1r.js → StockView-fpJrx4Bd.js} +166 -165
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CFFDw9Mj.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
- package/dist/{SupplierView-E_fX8cgQ.js → SupplierView-cfZTJqef.js} +492 -490
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
- package/dist/{TransferTemplateView-B-uBdQgp.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
- package/dist/UnitView-C3gJq1Mt.js +667 -0
- package/dist/{WarehouseView-DZSetx-S.js → WarehouseView-CWGQjwJm.js} +32 -32
- package/dist/api/inventory.d.ts +0 -306
- package/dist/api/purchase-order.d.ts +0 -1
- package/dist/{app-CLG8lnmY.js → app-D5PlbdVa.js} +8475 -8810
- package/dist/app.d.ts +0 -169
- package/dist/app.js +1 -1
- package/dist/array-Ca8T3f_G.js +44 -0
- package/dist/{closing-template-CHz79DOu.js → closing-template-C4FizLUw.js} +1 -1
- package/dist/{decimal-BNFgzHyV.js → decimal-Cv7FZ14q.js} +1 -1
- package/dist/{format-unit-display-DYY0F6KV.js → format-unit-display-B0NO6FLh.js} +25 -25
- package/dist/helper/number.d.ts +0 -1
- package/dist/{index-Bu7FmfHi.js → index-BCo2jtpG.js} +1 -1
- package/dist/{index-DiYSFnk1.js → index-DaJ92t7D.js} +1 -1
- package/dist/{purchase-order-template-DtfKTZLV.js → purchase-order-template-DLkR7Mva.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{stock-RE6RExO9.js → stock-AUSAF9Ij.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +199 -26
- package/dist/{supplier-DkLAGLl7.js → supplier-DBXoP2UX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Bg_kT9z-.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CpS4GfwM.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
- package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
- package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
- package/dist/views/unit/UnitView.vue.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ImportView-ClHIcxRw.js +0 -1195
- package/dist/IngredientsView-BA6Y-uhX.js +0 -2240
- package/dist/RecipeView-DgF_kShy.js +0 -636
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Bxl2Gege.js +0 -3221
- package/dist/UnitView-DOIy_8oz.js +0 -674
- package/dist/import-export.helper-uZNU9S1q.js +0 -243
- package/dist/views/import/ImportView.vue.d.ts +0 -3
- package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
- package/dist/views/import/helper/import-export.helper.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
- package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
- package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
package/dist/app.d.ts
CHANGED
|
@@ -347,13 +347,6 @@ export declare const i18nMessages: {
|
|
|
347
347
|
selectFile: string;
|
|
348
348
|
replaceFile: string;
|
|
349
349
|
summary: string;
|
|
350
|
-
multiUploadTemplateInstruction: string;
|
|
351
|
-
importInstructions: {
|
|
352
|
-
step1: string;
|
|
353
|
-
step2: string;
|
|
354
|
-
step3: string;
|
|
355
|
-
step4: string;
|
|
356
|
-
};
|
|
357
350
|
fileError: {
|
|
358
351
|
noSheet: string;
|
|
359
352
|
invalidExcel: string;
|
|
@@ -503,10 +496,6 @@ export declare const i18nMessages: {
|
|
|
503
496
|
message: string;
|
|
504
497
|
};
|
|
505
498
|
};
|
|
506
|
-
import: {
|
|
507
|
-
title: string;
|
|
508
|
-
uploadDescription: string;
|
|
509
|
-
};
|
|
510
499
|
};
|
|
511
500
|
unit: {
|
|
512
501
|
title: string;
|
|
@@ -546,50 +535,6 @@ export declare const i18nMessages: {
|
|
|
546
535
|
message: string;
|
|
547
536
|
};
|
|
548
537
|
};
|
|
549
|
-
export: {
|
|
550
|
-
success: string;
|
|
551
|
-
filename: string;
|
|
552
|
-
};
|
|
553
|
-
import: {
|
|
554
|
-
title: string;
|
|
555
|
-
description: string;
|
|
556
|
-
actions: {
|
|
557
|
-
downloadTemplate: string;
|
|
558
|
-
};
|
|
559
|
-
template: {
|
|
560
|
-
success: string;
|
|
561
|
-
filename: string;
|
|
562
|
-
};
|
|
563
|
-
dropzone: {
|
|
564
|
-
label: string;
|
|
565
|
-
helperText: string;
|
|
566
|
-
selectFile: string;
|
|
567
|
-
};
|
|
568
|
-
fileError: {
|
|
569
|
-
title: string;
|
|
570
|
-
noSheet: string;
|
|
571
|
-
invalidExcel: string;
|
|
572
|
-
parseError: string;
|
|
573
|
-
};
|
|
574
|
-
summary: {
|
|
575
|
-
title: string;
|
|
576
|
-
create: string;
|
|
577
|
-
update: string;
|
|
578
|
-
error: string;
|
|
579
|
-
};
|
|
580
|
-
success: {
|
|
581
|
-
title: string;
|
|
582
|
-
message: string;
|
|
583
|
-
};
|
|
584
|
-
error: {
|
|
585
|
-
noData: string;
|
|
586
|
-
invalidContent: string;
|
|
587
|
-
noImportData: string;
|
|
588
|
-
hasErrors: string;
|
|
589
|
-
failed: string;
|
|
590
|
-
systemMessage: string;
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
538
|
};
|
|
594
539
|
transfer: {
|
|
595
540
|
title: string;
|
|
@@ -1313,13 +1258,6 @@ export declare const i18nMessages: {
|
|
|
1313
1258
|
selectFile: string;
|
|
1314
1259
|
replaceFile: string;
|
|
1315
1260
|
summary: string;
|
|
1316
|
-
multiUploadTemplateInstruction: string;
|
|
1317
|
-
importInstructions: {
|
|
1318
|
-
step1: string;
|
|
1319
|
-
step2: string;
|
|
1320
|
-
step3: string;
|
|
1321
|
-
step4: string;
|
|
1322
|
-
};
|
|
1323
1261
|
fileError: {
|
|
1324
1262
|
noSheet: string;
|
|
1325
1263
|
invalidExcel: string;
|
|
@@ -1469,10 +1407,6 @@ export declare const i18nMessages: {
|
|
|
1469
1407
|
message: string;
|
|
1470
1408
|
};
|
|
1471
1409
|
};
|
|
1472
|
-
import: {
|
|
1473
|
-
title: string;
|
|
1474
|
-
uploadDescription: string;
|
|
1475
|
-
};
|
|
1476
1410
|
};
|
|
1477
1411
|
unit: {
|
|
1478
1412
|
title: string;
|
|
@@ -1512,50 +1446,6 @@ export declare const i18nMessages: {
|
|
|
1512
1446
|
message: string;
|
|
1513
1447
|
};
|
|
1514
1448
|
};
|
|
1515
|
-
export: {
|
|
1516
|
-
success: string;
|
|
1517
|
-
filename: string;
|
|
1518
|
-
};
|
|
1519
|
-
import: {
|
|
1520
|
-
title: string;
|
|
1521
|
-
description: string;
|
|
1522
|
-
actions: {
|
|
1523
|
-
downloadTemplate: string;
|
|
1524
|
-
};
|
|
1525
|
-
template: {
|
|
1526
|
-
success: string;
|
|
1527
|
-
filename: string;
|
|
1528
|
-
};
|
|
1529
|
-
dropzone: {
|
|
1530
|
-
label: string;
|
|
1531
|
-
helperText: string;
|
|
1532
|
-
selectFile: string;
|
|
1533
|
-
};
|
|
1534
|
-
fileError: {
|
|
1535
|
-
title: string;
|
|
1536
|
-
noSheet: string;
|
|
1537
|
-
invalidExcel: string;
|
|
1538
|
-
parseError: string;
|
|
1539
|
-
};
|
|
1540
|
-
summary: {
|
|
1541
|
-
title: string;
|
|
1542
|
-
create: string;
|
|
1543
|
-
update: string;
|
|
1544
|
-
error: string;
|
|
1545
|
-
};
|
|
1546
|
-
success: {
|
|
1547
|
-
title: string;
|
|
1548
|
-
message: string;
|
|
1549
|
-
};
|
|
1550
|
-
error: {
|
|
1551
|
-
noData: string;
|
|
1552
|
-
invalidContent: string;
|
|
1553
|
-
noImportData: string;
|
|
1554
|
-
hasErrors: string;
|
|
1555
|
-
failed: string;
|
|
1556
|
-
systemMessage: string;
|
|
1557
|
-
};
|
|
1558
|
-
};
|
|
1559
1449
|
};
|
|
1560
1450
|
transfer: {
|
|
1561
1451
|
title: string;
|
|
@@ -2482,10 +2372,6 @@ export declare const i18nMessages: {
|
|
|
2482
2372
|
message: string;
|
|
2483
2373
|
};
|
|
2484
2374
|
};
|
|
2485
|
-
import: {
|
|
2486
|
-
title: string;
|
|
2487
|
-
uploadDescription: string;
|
|
2488
|
-
};
|
|
2489
2375
|
};
|
|
2490
2376
|
unit: {
|
|
2491
2377
|
title: string;
|
|
@@ -2525,50 +2411,6 @@ export declare const i18nMessages: {
|
|
|
2525
2411
|
message: string;
|
|
2526
2412
|
};
|
|
2527
2413
|
};
|
|
2528
|
-
export: {
|
|
2529
|
-
success: string;
|
|
2530
|
-
filename: string;
|
|
2531
|
-
};
|
|
2532
|
-
import: {
|
|
2533
|
-
title: string;
|
|
2534
|
-
description: string;
|
|
2535
|
-
actions: {
|
|
2536
|
-
downloadTemplate: string;
|
|
2537
|
-
};
|
|
2538
|
-
template: {
|
|
2539
|
-
success: string;
|
|
2540
|
-
filename: string;
|
|
2541
|
-
};
|
|
2542
|
-
dropzone: {
|
|
2543
|
-
label: string;
|
|
2544
|
-
helperText: string;
|
|
2545
|
-
selectFile: string;
|
|
2546
|
-
};
|
|
2547
|
-
fileError: {
|
|
2548
|
-
title: string;
|
|
2549
|
-
noSheet: string;
|
|
2550
|
-
invalidExcel: string;
|
|
2551
|
-
parseError: string;
|
|
2552
|
-
};
|
|
2553
|
-
summary: {
|
|
2554
|
-
title: string;
|
|
2555
|
-
create: string;
|
|
2556
|
-
update: string;
|
|
2557
|
-
error: string;
|
|
2558
|
-
};
|
|
2559
|
-
success: {
|
|
2560
|
-
title: string;
|
|
2561
|
-
message: string;
|
|
2562
|
-
};
|
|
2563
|
-
error: {
|
|
2564
|
-
noData: string;
|
|
2565
|
-
invalidContent: string;
|
|
2566
|
-
noImportData: string;
|
|
2567
|
-
hasErrors: string;
|
|
2568
|
-
failed: string;
|
|
2569
|
-
systemMessage: string;
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
2414
|
};
|
|
2573
2415
|
transfer: {
|
|
2574
2416
|
title: string;
|
|
@@ -3063,13 +2905,6 @@ export declare const i18nMessages: {
|
|
|
3063
2905
|
selectFile: string;
|
|
3064
2906
|
replaceFile: string;
|
|
3065
2907
|
summary: string;
|
|
3066
|
-
multiUploadTemplateInstruction: string;
|
|
3067
|
-
importInstructions: {
|
|
3068
|
-
step1: string;
|
|
3069
|
-
step2: string;
|
|
3070
|
-
step3: string;
|
|
3071
|
-
step4: string;
|
|
3072
|
-
};
|
|
3073
2908
|
fileError: {
|
|
3074
2909
|
noSheet: string;
|
|
3075
2910
|
invalidExcel: string;
|
|
@@ -3204,10 +3039,6 @@ export declare const i18nMessages: {
|
|
|
3204
3039
|
message: string;
|
|
3205
3040
|
};
|
|
3206
3041
|
};
|
|
3207
|
-
import: {
|
|
3208
|
-
title: string;
|
|
3209
|
-
uploadDescription: string;
|
|
3210
|
-
};
|
|
3211
3042
|
};
|
|
3212
3043
|
unit: {
|
|
3213
3044
|
title: string;
|
package/dist/app.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
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,11 +1,11 @@
|
|
|
1
|
-
import { a as q,
|
|
1
|
+
import { a as q, a1 as Ie, ap as U, B as Ne, aq as ye, C as he, u as J, l as L, E as De, y as le, G as ve, b as te, t as G, x as Z, aS as Oe, aK as Fe, a6 as Pe, J as Me, K as Ue, ar as Le, e as ce, f as re, R as me, v as Be, an as Qe, D as j, j as N, i as He } from "./app-D5PlbdVa.js";
|
|
2
2
|
import { useCoreStore as ge, useI18n as ne } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Ve, useSnackbar as be, useDialog as qe, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as xe } from "pinia";
|
|
5
|
-
import { u as Se } from "./purchase-order-template-
|
|
6
|
-
import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import { u as ae } from "./supplier-
|
|
5
|
+
import { u as Se } from "./purchase-order-template-DLkR7Mva.js";
|
|
6
|
+
import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as k, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
|
|
7
|
+
import { useRouter as We } from "vue-router";
|
|
8
|
+
import { u as ae } from "./supplier-DBXoP2UX.js";
|
|
9
9
|
function Te(e) {
|
|
10
10
|
const t = q(), a = e.sku, u = t.skuById[a._id];
|
|
11
11
|
if (u.unit._id !== a.unit._id) return !0;
|
|
@@ -109,8 +109,8 @@ function Ge(e) {
|
|
|
109
109
|
)) == null ? void 0 : l.sheets, s = `${a == null ? void 0 : a.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, f = ye(i);
|
|
110
110
|
return he(f, s), s;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const e = ge(), t = ae(), a =
|
|
112
|
+
function Je() {
|
|
113
|
+
const e = ge(), t = ae(), a = J(), u = q(), i = e.currentBusiness.value, s = _e({
|
|
114
114
|
sku: {
|
|
115
115
|
unit: {
|
|
116
116
|
_id: "",
|
|
@@ -220,8 +220,8 @@ function Ze() {
|
|
|
220
220
|
}), b = `${i == null ? void 0 : i.name} transfer templates import.xlsx`;
|
|
221
221
|
return he(v, b), b;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s =
|
|
223
|
+
function Ze(e, t) {
|
|
224
|
+
const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = J().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
|
|
225
225
|
if (!c)
|
|
226
226
|
return a.push(`Transfer from location value of ${o} cannot be read.`), {
|
|
227
227
|
errors: a
|
|
@@ -265,7 +265,7 @@ function Je(e, t) {
|
|
|
265
265
|
function Xe(e) {
|
|
266
266
|
if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
|
|
267
267
|
return [];
|
|
268
|
-
const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u =
|
|
268
|
+
const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = J().locationByDbName;
|
|
269
269
|
return e.map((i) => {
|
|
270
270
|
const s = new Array(), f = i.trim(), l = t.exec(f);
|
|
271
271
|
if (!l)
|
|
@@ -397,18 +397,18 @@ function nt(e, t, a) {
|
|
|
397
397
|
}
|
|
398
398
|
const c = G(
|
|
399
399
|
e.quantityStep,
|
|
400
|
-
|
|
400
|
+
Z(l, o)
|
|
401
401
|
);
|
|
402
402
|
(Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
|
|
403
403
|
const h = Oe(c), d = rt(
|
|
404
404
|
e.minimumQuantity,
|
|
405
405
|
e.maximumQuantity,
|
|
406
|
-
|
|
406
|
+
Z(l, o)
|
|
407
407
|
), m = d.min, v = d.max;
|
|
408
408
|
d.compareError && f.push(d.compareError);
|
|
409
409
|
const b = Fe(+e.minimumQuantity, +e.maximumQuantity), r = G(
|
|
410
410
|
e.defaultQuantity,
|
|
411
|
-
|
|
411
|
+
Z(l, o)
|
|
412
412
|
), x = h(r);
|
|
413
413
|
typeof x == "string" && f.push(`Default amount: ${x}`);
|
|
414
414
|
const w = d.min && d.max ? b(`${e.defaultQuantity}`) : null;
|
|
@@ -437,7 +437,7 @@ function ot(e) {
|
|
|
437
437
|
return t.reduce(
|
|
438
438
|
(s, f) => {
|
|
439
439
|
var p;
|
|
440
|
-
const l = new Array(), o = e.Sheets[f], c = et(o), h =
|
|
440
|
+
const l = new Array(), o = e.Sheets[f], c = et(o), h = Ze(c.transferFrom, c.type);
|
|
441
441
|
l.push(...h.errors);
|
|
442
442
|
const d = h.from, m = Xe(c.locations), v = m.filter((n) => n.location).map((n) => n.location);
|
|
443
443
|
l.push(...m.flatMap((n) => n.errors));
|
|
@@ -575,7 +575,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
575
575
|
P(i, { "z-index": 50 }, {
|
|
576
576
|
content: ee(() => [
|
|
577
577
|
C("ol", null, [
|
|
578
|
-
(_(!0), E(B, null,
|
|
578
|
+
(_(!0), E(B, null, Y(t.errors, (o, c) => (_(), E("li", { key: c }, D(o), 1))), 128))
|
|
579
579
|
])
|
|
580
580
|
]),
|
|
581
581
|
default: ee(() => [
|
|
@@ -701,7 +701,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
701
701
|
onFileUpload: r[0] || (r[0] = (p) => t.value = p),
|
|
702
702
|
label: I(m)("inventory.ingredient.import.uploadTemplate"),
|
|
703
703
|
"button-label": I(m)("inventory.ingredient.import.selectFile")
|
|
704
|
-
},
|
|
704
|
+
}, Ye({ _: 2 }, [
|
|
705
705
|
t.value ? {
|
|
706
706
|
name: "default",
|
|
707
707
|
fn: ee(({ openFileDialog: p }) => [
|
|
@@ -747,7 +747,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
747
747
|
]))
|
|
748
748
|
], 2),
|
|
749
749
|
l.value.length ? (_(), E("div", vt, [
|
|
750
|
-
(_(!0), E(B, null,
|
|
750
|
+
(_(!0), E(B, null, Y(l.value, (n, y) => (_(), E("div", {
|
|
751
751
|
key: y,
|
|
752
752
|
class: "flex gap-8 items-center"
|
|
753
753
|
}, [
|
|
@@ -766,7 +766,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
766
766
|
]), 1032, ["class", "label", "button-label"]),
|
|
767
767
|
d.value ? (_(), E("div", bt, [
|
|
768
768
|
C("div", xt, D(I(m)("inventory.ingredient.import.summary")), 1),
|
|
769
|
-
(_(!0), E(B, null,
|
|
769
|
+
(_(!0), E(B, null, Y(o.value, (p, n) => (_(), K(pe, {
|
|
770
770
|
key: n,
|
|
771
771
|
name: p.template.name,
|
|
772
772
|
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
@@ -775,7 +775,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
775
775
|
errors: p.errors,
|
|
776
776
|
type: "create"
|
|
777
777
|
}, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
|
|
778
|
-
(_(!0), E(B, null,
|
|
778
|
+
(_(!0), E(B, null, Y(c.value, (p) => (_(), K(pe, {
|
|
779
779
|
key: p.template._id,
|
|
780
780
|
name: p.template.name,
|
|
781
781
|
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
@@ -802,7 +802,7 @@ function Tt(e) {
|
|
|
802
802
|
return u && u == i;
|
|
803
803
|
}
|
|
804
804
|
const _t = xe("transferTemplateActions", () => {
|
|
805
|
-
const e = qe(), t = be(), a =
|
|
805
|
+
const e = qe(), t = be(), a = J(), u = Ce(), i = Le(), s = Se(), f = te(), l = We(), { t: o } = ne(), c = k({});
|
|
806
806
|
function h() {
|
|
807
807
|
c.value = {
|
|
808
808
|
mode: ce.CREATE,
|
|
@@ -882,7 +882,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
882
882
|
props: ["modelValue"],
|
|
883
883
|
emits: ["update:modelValue"],
|
|
884
884
|
setup(R) {
|
|
885
|
-
return () =>
|
|
885
|
+
return () => W(X.FmTextField, {
|
|
886
886
|
modelValue: R.modelValue,
|
|
887
887
|
"onUpdate:modelValue": (g) => $ = g,
|
|
888
888
|
label: "New Template Name",
|
|
@@ -1033,7 +1033,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
1033
1033
|
return;
|
|
1034
1034
|
}
|
|
1035
1035
|
e.close(), S(n);
|
|
1036
|
-
}).onTertiary(
|
|
1036
|
+
}).onTertiary(Je);
|
|
1037
1037
|
}
|
|
1038
1038
|
async function S(n) {
|
|
1039
1039
|
try {
|
|
@@ -1175,8 +1175,8 @@ const Ce = xe(
|
|
|
1175
1175
|
},
|
|
1176
1176
|
cell(d) {
|
|
1177
1177
|
const m = Number(d.getValue()) || 0, v = d.row.original.purchaseOrder.items.some(Te);
|
|
1178
|
-
return m === 0 || v ?
|
|
1179
|
-
|
|
1178
|
+
return m === 0 || v ? W("div", { class: "flex justify-end gap-4 items-center" }, [
|
|
1179
|
+
W(
|
|
1180
1180
|
X.FmTooltip,
|
|
1181
1181
|
{},
|
|
1182
1182
|
{
|
|
@@ -1184,7 +1184,7 @@ const Ce = xe(
|
|
|
1184
1184
|
return v ? "The template is invalid due to invalid unit on some of the items. Please update this template." : "The template is invalid due to deleted ingredients. Please update this template.";
|
|
1185
1185
|
},
|
|
1186
1186
|
default() {
|
|
1187
|
-
return
|
|
1187
|
+
return W(X.FmIcon, {
|
|
1188
1188
|
name: "error",
|
|
1189
1189
|
color: "system-error-300",
|
|
1190
1190
|
size: "sm"
|
package/dist/helper/number.d.ts
CHANGED
|
@@ -36,4 +36,3 @@ export declare function countDivisibleByTrailingZero(n: number | BigInt): number
|
|
|
36
36
|
* Documentation at: https://www.notion.so/feedmepos/Precision-Handling-Logic-8e2211106b4a4a0f9fae8ee9c1e897da?pvs=4
|
|
37
37
|
*/
|
|
38
38
|
export declare function getAllowedPrecision(unit: FdoInventoryUnit, measurement?: FdoUnitMeasurement | null): number;
|
|
39
|
-
export declare const isNumeric: (value: any) => boolean | 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b5 as x, bd as V, be as q, bf as Ne, bg as cl, bh as sr, bi as Lt, bj as fl, bk as $l } from "./app-D5PlbdVa.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as u } from "vue";
|
|
2
|
-
import { u as d,
|
|
2
|
+
import { u as d, b6 as p, aY as v, c as m, b as h } from "./app-D5PlbdVa.js";
|
|
3
3
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
4
4
|
function I() {
|
|
5
5
|
return {
|
package/dist/router/name.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as m, u as k, a as l, az as B, a1 as p } from "./app-D5PlbdVa.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 b } from "vue";
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export interface FeatureState {
|
|
|
27
27
|
inventory_pos_transfer_require_fulfillment: boolean;
|
|
28
28
|
inventory_backdate_receive: boolean;
|
|
29
29
|
inventory_purchase_order_custom_cost: boolean;
|
|
30
|
-
inventory_bulk_import: boolean;
|
|
31
30
|
}
|
|
32
31
|
export declare const useFeatureStore: () => {
|
|
33
32
|
readonly businessDbName: string;
|
|
@@ -59,7 +58,6 @@ export declare const useFeatureStore: () => {
|
|
|
59
58
|
readonly enablePOSTransferRequireFulfillment: boolean;
|
|
60
59
|
readonly enableBackdateReceive: boolean;
|
|
61
60
|
readonly enablePurchaseOrderReceiveWithCustomCost: boolean;
|
|
62
|
-
readonly enableBulkImport: boolean;
|
|
63
61
|
init(): Promise<void>;
|
|
64
62
|
awaitFeatureLoaded(callback: () => boolean): Promise<boolean>;
|
|
65
63
|
};
|