@feedmepos/mf-inventory-portal 0.0.23-dev.1 → 0.0.23-dev.10
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-Y3Ez8Rjf.js → App-DDxwfi6I.js} +36 -31
- package/dist/{ApprovalView-BUU1G4Q2.js → ApprovalView-7rpIigm0.js} +4 -4
- package/dist/{BindingsDialog-8wc4Q0JQ.js → BindingsDialog-DbyzX6mw.js} +2 -2
- package/dist/{BindingsPicker-DGWN1LQc.js → BindingsPicker-FZfhZr5O.js} +2 -2
- package/dist/{BindingsTable-7NJP2jT6.js → BindingsTable-Bk2770OV.js} +6 -6
- package/dist/ClosingDraftView-D9CnCwak.js +772 -0
- package/dist/{ClosingTemplateView-9s7vmwaT.js → ClosingTemplateView-DkpHmTtx.js} +32 -31
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjBiov5r.js +283 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CBC214tP.js} +2 -2
- package/dist/{FmMultiselectDialog-7hok9sJP.js → FmMultiselectDialog-CK6xwOeG.js} +128 -124
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-IFTMUhET.js +329 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D0otwOX8.js} +1 -1
- package/dist/{IngredientGroupView-C3maHTCg.js → IngredientGroupView-D5XtVfIQ.js} +12 -11
- package/dist/IngredientsView-c7WnQiTv.js +1666 -0
- package/dist/{IntegrationView-gO4h89Wj.js → IntegrationView-CHkhMxVM.js} +50 -50
- package/dist/{InventoryBindingForm-dh3GeyG-.js → InventoryBindingForm-BUZ9MS5V.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YIRre_Km.js} +13 -13
- package/dist/{InventoryBindingSummary-BPoPcEoe.js → InventoryBindingSummary-BUi0mjeC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CpYtHPFH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D8IH1X1o.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-Dix_fIoo.js → PurchaseOrderPrintPreview-BLuoVz5N.js} +1 -1
- package/dist/ReceiveRequestView-BNM5JdQO.js +4165 -0
- package/dist/{RecipeView-C4-a4IEW.js → RecipeView-DxRumcLY.js} +11 -10
- package/dist/{StockView-Du2txrIP.js → StockView-CZyeg3sX.js} +1356 -1457
- package/dist/{SupplierView-D_09FbQh.js → SupplierView-C2XLbf27.js} +2352 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BQG6UzUU.js +1229 -0
- package/dist/{TransferTemplateView-j3CRy6Lc.js → TransferTemplateView-BCxZCU0i.js} +307 -307
- package/dist/{UnitView-BXw2Vwq1.js → UnitView-uGpE4txg.js} +81 -80
- package/dist/{WarehouseView-CKamiETC.js → WarehouseView-DvQVmixr.js} +25 -24
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +70 -0
- package/dist/{app-GUbzqEtW.js → app-BaOENyRY.js} +3425 -3343
- package/dist/app.d.ts +3 -0
- package/dist/app.js +1 -1
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/{date2-CLE9fB2R.js → date2-CfGU3sHq.js} +1 -1
- package/dist/{dayjs.min-CY1d38w7.js → dayjs.min-BMk-E1IO.js} +17 -17
- package/dist/{decimal-SIjO6Mjw.js → decimal-BkLhxOFS.js} +1 -1
- package/dist/{defineDeepModel-l40rX7kr.js → defineDeepModel-Cy-_HBnw.js} +1 -1
- package/dist/{feature-BXruKUhX.js → feature-GoxrdjJJ.js} +23 -9
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/{format-time-from-id-CcFsBXmk.js → format-time-from-id-96hwVl9P.js} +1 -1
- package/dist/format-unit-display-Cp0DBbM8.js +1217 -0
- package/dist/{fuzzy-CVOV9zJc.js → fuzzy-CBGiL1wK.js} +1 -1
- package/dist/index-0HEhOwKT.js +12087 -0
- package/dist/{index-BX5KZXhI.js → index-CoL8wxbn.js} +126 -122
- package/dist/{index-m9e9nYfl.js → index-S7yfliEo.js} +1 -1
- package/dist/netsuite-D3VPLW8O.js +225 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
- package/dist/{rules-DlnN8IP3.js → rules-DxLLla7a.js} +40 -35
- package/dist/stock-BbFKtx1y.js +111 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-B21WlSAM.js → supplier-gGovyyjr.js} +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D3x6xj2O.js → use-inventory-binding-dialog-DIBMf_9-.js} +2 -2
- package/dist/{use-template-enabled-locations-2-z-b-UXef.js → use-template-enabled-locations-2-Bof9JMYI.js} +2 -2
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -40
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -63
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -63
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-6mM1eNiL.js → xlsx-DOnDmayp.js} +1 -1
- package/dist/{xlsx.util-BLftcF4q.js → xlsx.util-BqsQd9YP.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +0 -267
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +0 -326
- package/dist/IngredientsView-DCR3IBkR.js +0 -1613
- package/dist/ReceiveRequestView-DdPiYb2P.js +0 -4082
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +0 -1144
- package/dist/format-unit-display-DEKg8cJm.js +0 -1198
- package/dist/index-CVsyOEb1.js +0 -10545
- package/dist/netsuite-DAKRv7zr.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
package/dist/app.d.ts
CHANGED
package/dist/app.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { FmMinMaxInputModel } from './FmMinMaxInputProps';
|
|
2
2
|
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
3
|
-
export declare function FmMinMaxRequired(
|
|
3
|
+
export declare function FmMinMaxRequired({ min, max }?: {
|
|
4
|
+
min?: boolean;
|
|
5
|
+
max?: boolean;
|
|
6
|
+
}): (model?: FmMinMaxInputModel) => true | "Required";
|
|
4
7
|
/** Both `min` and `max` are inclusive */
|
|
5
8
|
export declare function FmMinMaxBoundary(min: number, max: number): (model?: FmMinMaxInputModel) => string | true;
|
|
6
9
|
export declare function FmMinMaxMultipleOf(decimal: FdoDecimal): (model?: FmMinMaxInputModel) => string | true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as Q,
|
|
1
|
+
import { o as Q, L as K } from "./app-BaOENyRY.js";
|
|
2
2
|
var E = { exports: {} };
|
|
3
3
|
(function(V, X) {
|
|
4
4
|
(function(W, k) {
|
|
5
5
|
V.exports = k();
|
|
6
6
|
})(Q, function() {
|
|
7
|
-
var W = 1e3, k = 6e4,
|
|
7
|
+
var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", v = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
8
8
|
var n = ["th", "st", "nd", "rd"], t = s % 100;
|
|
9
9
|
return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
10
10
|
} }, I = function(s, n, t) {
|
|
@@ -20,13 +20,13 @@ var E = { exports: {} };
|
|
|
20
20
|
}, a: function(s) {
|
|
21
21
|
return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
|
|
22
22
|
}, p: function(s) {
|
|
23
|
-
return { M: m, y: v, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q:
|
|
23
|
+
return { M: m, y: v, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
|
|
24
24
|
}, u: function(s) {
|
|
25
25
|
return s === void 0;
|
|
26
26
|
} }, x = "en", D = {};
|
|
27
27
|
D[x] = G;
|
|
28
28
|
var Z = "$isDayjsObject", F = function(s) {
|
|
29
|
-
return s instanceof
|
|
29
|
+
return s instanceof L || !(!s || !s[Z]);
|
|
30
30
|
}, j = function s(n, t, r) {
|
|
31
31
|
var e;
|
|
32
32
|
if (!n) return x;
|
|
@@ -43,12 +43,12 @@ var E = { exports: {} };
|
|
|
43
43
|
}, f = function(s, n) {
|
|
44
44
|
if (F(s)) return s.clone();
|
|
45
45
|
var t = typeof n == "object" ? n : {};
|
|
46
|
-
return t.date = s, t.args = arguments, new
|
|
46
|
+
return t.date = s, t.args = arguments, new L(t);
|
|
47
47
|
}, a = P;
|
|
48
48
|
a.l = j, a.i = F, a.w = function(s, n) {
|
|
49
49
|
return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
50
50
|
};
|
|
51
|
-
var
|
|
51
|
+
var L = function() {
|
|
52
52
|
function s(t) {
|
|
53
53
|
this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
|
|
54
54
|
}
|
|
@@ -74,7 +74,7 @@ var E = { exports: {} };
|
|
|
74
74
|
}, n.$utils = function() {
|
|
75
75
|
return a;
|
|
76
76
|
}, n.isValid = function() {
|
|
77
|
-
return this.$d.toString() !==
|
|
77
|
+
return this.$d.toString() !== J;
|
|
78
78
|
}, n.isSame = function(t, r) {
|
|
79
79
|
var e = f(t);
|
|
80
80
|
return this.startOf(r) <= e && e <= this.endOf(r);
|
|
@@ -139,20 +139,20 @@ var E = { exports: {} };
|
|
|
139
139
|
if (u === v) return this.set(v, this.$y + t);
|
|
140
140
|
if (u === M) return o(1);
|
|
141
141
|
if (u === T) return o(7);
|
|
142
|
-
var c = (e = {}, e[w] = k, e[O] =
|
|
142
|
+
var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
|
|
143
143
|
return a.w(h, this);
|
|
144
144
|
}, n.subtract = function(t, r) {
|
|
145
145
|
return this.add(-1 * t, r);
|
|
146
146
|
}, n.format = function(t) {
|
|
147
147
|
var r = this, e = this.$locale();
|
|
148
|
-
if (!this.isValid()) return e.invalidDate ||
|
|
149
|
-
var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, y, H,
|
|
150
|
-
return $ && ($[y] || $(r, i)) || H[y].slice(0,
|
|
148
|
+
if (!this.isValid()) return e.invalidDate || J;
|
|
149
|
+
var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, y, H, C) {
|
|
150
|
+
return $ && ($[y] || $(r, i)) || H[y].slice(0, C);
|
|
151
151
|
}, Y = function($) {
|
|
152
152
|
return a.s(o % 12 || 12, $, "0");
|
|
153
153
|
}, p = b || function($, y, H) {
|
|
154
|
-
var
|
|
155
|
-
return H ?
|
|
154
|
+
var C = $ < 12 ? "AM" : "PM";
|
|
155
|
+
return H ? C.toLowerCase() : C;
|
|
156
156
|
};
|
|
157
157
|
return i.replace(B, function($, y) {
|
|
158
158
|
return y || function(H) {
|
|
@@ -222,7 +222,7 @@ var E = { exports: {} };
|
|
|
222
222
|
case m:
|
|
223
223
|
i = l();
|
|
224
224
|
break;
|
|
225
|
-
case
|
|
225
|
+
case U:
|
|
226
226
|
i = l() / 3;
|
|
227
227
|
break;
|
|
228
228
|
case T:
|
|
@@ -232,7 +232,7 @@ var E = { exports: {} };
|
|
|
232
232
|
i = (d - h) / 864e5;
|
|
233
233
|
break;
|
|
234
234
|
case O:
|
|
235
|
-
i = d /
|
|
235
|
+
i = d / N;
|
|
236
236
|
break;
|
|
237
237
|
case w:
|
|
238
238
|
i = d / k;
|
|
@@ -263,13 +263,13 @@ var E = { exports: {} };
|
|
|
263
263
|
}, n.toString = function() {
|
|
264
264
|
return this.$d.toUTCString();
|
|
265
265
|
}, s;
|
|
266
|
-
}(), z =
|
|
266
|
+
}(), z = L.prototype;
|
|
267
267
|
return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", v], ["$D", _]].forEach(function(s) {
|
|
268
268
|
z[s[1]] = function(n) {
|
|
269
269
|
return this.$g(n, s[0], s[1]);
|
|
270
270
|
};
|
|
271
271
|
}), f.extend = function(s, n) {
|
|
272
|
-
return s.$i || (s(n,
|
|
272
|
+
return s.$i || (s(n, L, f), s.$i = !0), f;
|
|
273
273
|
}, f.locale = j, f.isDayjs = F, f.unix = function(s) {
|
|
274
274
|
return f(1e3 * s);
|
|
275
275
|
}, f.en = D[x], f.Ls = D, f.p = {}, f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCoreStore as t } from "@feedmepos/mf-common";
|
|
2
|
-
import { u as o, I as
|
|
3
|
-
const
|
|
2
|
+
import { u as o, I as a, a as i } from "./app-BaOENyRY.js";
|
|
3
|
+
const c = /* @__PURE__ */ new Set([
|
|
4
4
|
// vivo pizza prod
|
|
5
5
|
"business_6687e91fa7240b001ba3f4c2",
|
|
6
6
|
// vivo dev
|
|
@@ -19,22 +19,30 @@ const i = /* @__PURE__ */ new Set([
|
|
|
19
19
|
"business_655b25254fe3be001b123f0b",
|
|
20
20
|
// zus dev
|
|
21
21
|
"business_671005de24a7f4001c87e25e"
|
|
22
|
-
]),
|
|
22
|
+
]), m = /* @__PURE__ */ new Set([
|
|
23
|
+
// kfc dev
|
|
24
|
+
"business_655b25254fe3be001b123f0b",
|
|
25
|
+
// zus dev
|
|
26
|
+
"business_671005de24a7f4001c87e25e"
|
|
27
|
+
]), S = /* @__PURE__ */ new Set([
|
|
28
|
+
// zus dev
|
|
29
|
+
"business_671005de24a7f4001c87e25e"
|
|
30
|
+
]), h = () => ({
|
|
23
31
|
get businessDbName() {
|
|
24
32
|
var n;
|
|
25
33
|
return `business_${((n = t().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`;
|
|
26
34
|
},
|
|
27
35
|
get isWarehouse() {
|
|
28
36
|
var e;
|
|
29
|
-
return ((e = o()._currentLocation) == null ? void 0 : e.type) ===
|
|
37
|
+
return ((e = o()._currentLocation) == null ? void 0 : e.type) === a.warehouse;
|
|
30
38
|
},
|
|
31
39
|
get restaurantPosVersion() {
|
|
32
40
|
var n;
|
|
33
41
|
const s = o();
|
|
34
42
|
return (n = t().restaurants.value.find(
|
|
35
|
-
(
|
|
43
|
+
(u) => {
|
|
36
44
|
var r;
|
|
37
|
-
return
|
|
45
|
+
return u._id === ((r = s._currentLocation) == null ? void 0 : r.doc._id);
|
|
38
46
|
}
|
|
39
47
|
)) == null ? void 0 : n.posVersion;
|
|
40
48
|
},
|
|
@@ -43,7 +51,7 @@ const i = /* @__PURE__ */ new Set([
|
|
|
43
51
|
return ((e = t().currentBusiness.value) == null ? void 0 : e.menuVersion) === "v4";
|
|
44
52
|
},
|
|
45
53
|
get enableBackdatePo() {
|
|
46
|
-
const s =
|
|
54
|
+
const s = i();
|
|
47
55
|
return b.has(this.businessDbName) && (this.isWarehouse || s.state.closing !== null);
|
|
48
56
|
},
|
|
49
57
|
get autoReceiveWarehouse() {
|
|
@@ -55,7 +63,7 @@ const i = /* @__PURE__ */ new Set([
|
|
|
55
63
|
// if menu v4, must manual receive && must use outlet app
|
|
56
64
|
((e = t().currentBusiness.value) == null ? void 0 : e.menuVersion) === "v4" && // more guard for businesses using menu v4, only those listed for manual receive will be included
|
|
57
65
|
// TODO: may be removed to use menu version only
|
|
58
|
-
|
|
66
|
+
c.has(this.businessDbName)
|
|
59
67
|
);
|
|
60
68
|
},
|
|
61
69
|
get enablePoTemplate() {
|
|
@@ -71,8 +79,14 @@ const i = /* @__PURE__ */ new Set([
|
|
|
71
79
|
get mustUsePoTemplate() {
|
|
72
80
|
const s = t();
|
|
73
81
|
return l.has(this.businessDbName) && s.namespace.value === "dev";
|
|
82
|
+
},
|
|
83
|
+
get mustUseDefaultCost() {
|
|
84
|
+
return m.has(this.businessDbName);
|
|
85
|
+
},
|
|
86
|
+
get businessSupplierOnly() {
|
|
87
|
+
return S.has(this.businessDbName);
|
|
74
88
|
}
|
|
75
89
|
});
|
|
76
90
|
export {
|
|
77
|
-
|
|
91
|
+
h as u
|
|
78
92
|
};
|