@feedmepos/mf-inventory-portal 0.0.23-dev.31 → 0.0.23-dev.4
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-CEmWJ9lp.js → App-DReDvY0M.js} +73 -85
- package/dist/{ApprovalView-jDll4AVe.js → ApprovalView-BMZlYmRk.js} +27 -24
- package/dist/{BindingsDialog-BC_gRSif.js → BindingsDialog-Y2K4I7H7.js} +4 -4
- package/dist/{BindingsPicker-BJsGoBzM.js → BindingsPicker-DKBq9c37.js} +9 -8
- package/dist/{BindingsTable-DSdwNK_q.js → BindingsTable-45v4SDfp.js} +22 -18
- package/dist/{ClosingTemplateView-BzG16gl5.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
- package/dist/{IngredientGroupView-DL8eBhkk.js → IngredientGroupView-BuP-HGeg.js} +69 -63
- package/dist/IngredientsView-DMRN-odY.js +1613 -0
- package/dist/{IntegrationView-BeFT5S24.js → IntegrationView-kYCaKG0o.js} +95 -92
- package/dist/{InventoryBindingForm-DJ3uwq_X.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
- package/dist/{InventoryBindingSummary-CvB5j9xq.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
- package/dist/{PurchaseOrderPrintPreview-3_6nBajH.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
- package/dist/{ReceiveRequestView-B_0UldQ7.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
- package/dist/{RecipeView-D9p0Ou_I.js → RecipeView-DXO43tFi.js} +85 -79
- package/dist/{StockView-TIdUgG3O.js → StockView-D9no-mrA.js} +1446 -1338
- package/dist/{SupplierView-B1b9Otcr.js → SupplierView-DAx7E7sR.js} +787 -2325
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
- package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
- package/dist/{UnitView-BrpzJ7D3.js → UnitView-CQPGZ8-r.js} +44 -40
- package/dist/{WarehouseView-CjbdEy8o.js → WarehouseView-jy-RNCgy.js} +100 -94
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/closing.d.ts +0 -1
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-KnSMkJBV.js +33496 -0
- package/dist/app.d.ts +0 -56
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +0 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/date2-CIeUqUIc.js +117 -0
- package/dist/dayjs.min-Df5jSnDJ.js +282 -0
- package/dist/{decimal-DHYZglKx.js → decimal-BAc9M88Q.js} +1 -1
- package/dist/defineDeepModel-BfuQAIoM.js +13 -0
- package/dist/{feature-G-NnqKcY.js → feature-dwB4OxRQ.js} +6 -12
- package/dist/format-time-from-id-BbvzyIN6.js +15 -0
- package/dist/{format-unit-display-BWqJsV_R.js → format-unit-display-BBWblJEt.js} +171 -162
- package/dist/fuzzy-B9ryZ9VZ.js +41 -0
- package/dist/index-BN0CY3sZ.js +22277 -0
- package/dist/index-Bj1fJum-.js +45 -0
- package/dist/index-C4yL_7rR.js +10545 -0
- package/dist/netsuite-ByWOS6tI.js +194 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +0 -2
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/rules-C12nWDD1.js +198 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/integration/netsuite.d.ts +2 -70
- package/dist/stores/inventory.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DTUUR48O.js → supplier-DJC0UZWv.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DvC_i-Ih.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -9
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/xlsx-B4XHad7S.js +24004 -0
- package/dist/xlsx.util-BSO4SHJi.js +78 -0
- package/package.json +3 -3
- package/dist/ClosingDraftView-UfWdRXb-.js +0 -1190
- package/dist/IngredientsView-B_HC9fgq.js +0 -1657
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +0 -1275
- package/dist/TransferTemplateView-Dxk5b-2j.js +0 -1264
- package/dist/api/adjustment-template.d.ts +0 -23
- package/dist/api/closing-draft.d.ts +0 -6
- package/dist/app-AcMtTQ07.js +0 -84202
- package/dist/index-Bt8vaUdT.js +0 -12087
- package/dist/stock-VZXyPw2C.js +0 -125
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
- package/dist/views/adjustment-template/import/export.d.ts +0 -60
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
- package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
- package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +0 -12
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +0 -13
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +0 -12
package/dist/router/name.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ export declare enum RouteName {
|
|
|
5
5
|
UNIT = "UNIT",
|
|
6
6
|
STOCK = "STOCK",
|
|
7
7
|
CLOSING_TEMPLATE = "CLOSING_TEMPLATE",
|
|
8
|
-
CLOSING_DRAFT = "CLOSING_DRAFT",
|
|
9
|
-
WASTAGE_TEMPLATE = "WASTAGE_TEMPLATE",
|
|
10
8
|
WAREHOUSE = "WAREHOUSE",
|
|
11
9
|
RECEIVE_REQUEST = "RECEIVE_REQUEST",
|
|
12
10
|
TRANSFER_TEMPLATE = "TRANSFER_TEMPLATE",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ ((t) => (t.READ = "READ", t.UPDATE = "UPDATE", t.CREATE = "CREATE", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Add = "Add", t.Create = "Create", t.Print = "Print", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t))(r || {});
|
|
2
|
+
const a = {
|
|
3
|
+
Add: {
|
|
4
|
+
translationKey: "common.add",
|
|
5
|
+
color: "text-fm-color-typo-primary",
|
|
6
|
+
value: "Add"
|
|
7
|
+
/* Add */
|
|
8
|
+
},
|
|
9
|
+
Create: {
|
|
10
|
+
translationKey: "common.create",
|
|
11
|
+
color: "text-fm-color-typo-primary",
|
|
12
|
+
value: "Create"
|
|
13
|
+
/* Create */
|
|
14
|
+
},
|
|
15
|
+
Update: {
|
|
16
|
+
translationKey: "common.update",
|
|
17
|
+
color: "text-fm-color-typo-primary",
|
|
18
|
+
value: "Update"
|
|
19
|
+
/* Update */
|
|
20
|
+
},
|
|
21
|
+
Details: {
|
|
22
|
+
translationKey: "inventory.common.details",
|
|
23
|
+
color: "text-fm-color-typo-primary",
|
|
24
|
+
value: "Details"
|
|
25
|
+
/* Details */
|
|
26
|
+
},
|
|
27
|
+
Print: {
|
|
28
|
+
translationKey: "inventory.common.print",
|
|
29
|
+
color: "text-fm-color-typo-primary",
|
|
30
|
+
value: "Print"
|
|
31
|
+
/* Print */
|
|
32
|
+
},
|
|
33
|
+
Edit: {
|
|
34
|
+
translationKey: "common.edit",
|
|
35
|
+
color: "text-fm-color-typo-primary",
|
|
36
|
+
value: "Edit"
|
|
37
|
+
/* Edit */
|
|
38
|
+
},
|
|
39
|
+
Delete: {
|
|
40
|
+
translationKey: "common.delete",
|
|
41
|
+
color: "text-fm-color-typo-error",
|
|
42
|
+
value: "Delete"
|
|
43
|
+
/* Delete */
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
a as D,
|
|
48
|
+
e as F,
|
|
49
|
+
r as R
|
|
50
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { F as s } from "./index-BN0CY3sZ.js";
|
|
2
|
+
import { c as d, a as b } from "./date2-CIeUqUIc.js";
|
|
3
|
+
function P(t, n) {
|
|
4
|
+
return s.convertPrecision({
|
|
5
|
+
value: t,
|
|
6
|
+
precision: n
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function $(t, n) {
|
|
10
|
+
return s.add([t, n]);
|
|
11
|
+
}
|
|
12
|
+
function j(t, n) {
|
|
13
|
+
return s.multiply([t, n]);
|
|
14
|
+
}
|
|
15
|
+
function N(t, n) {
|
|
16
|
+
const r = Math.floor(t.amount * n.amount), i = r === 0 ? 0 : t.precision + n.precision, e = a(r), o = Math.min(i, e);
|
|
17
|
+
return {
|
|
18
|
+
amount: r / Math.pow(10, o),
|
|
19
|
+
precision: i - o
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function l(t, n) {
|
|
23
|
+
const r = +u(t), i = +u(n);
|
|
24
|
+
return r / i;
|
|
25
|
+
}
|
|
26
|
+
function D(t, n) {
|
|
27
|
+
const r = l(t, n);
|
|
28
|
+
return c(r);
|
|
29
|
+
}
|
|
30
|
+
function F(t, n) {
|
|
31
|
+
return t.precision >= n ? t : s.convertPrecision({ value: t, precision: n });
|
|
32
|
+
}
|
|
33
|
+
function h(t) {
|
|
34
|
+
const n = a(t.amount), r = t.precision - n;
|
|
35
|
+
return s.convertPrecision({ value: t, precision: Math.max(0, r) });
|
|
36
|
+
}
|
|
37
|
+
function u(t, n = !0) {
|
|
38
|
+
return n ? Number(t.amount / Math.pow(10, t.precision)).toFixed(t.precision) : Number(t.amount / Math.pow(10, t.precision)).toString();
|
|
39
|
+
}
|
|
40
|
+
function T(t, n) {
|
|
41
|
+
n = n ?? M(t);
|
|
42
|
+
const r = n, i = t.toFixed(r), e = i.includes(".") ? i.replace(/0+$/, "") : i;
|
|
43
|
+
return e.endsWith(".") ? e.slice(0, e.length - 1) : e;
|
|
44
|
+
}
|
|
45
|
+
function x(t, n = !1, r = 2) {
|
|
46
|
+
const i = Number(t.amount / Math.pow(10, t.precision)), e = i.toFixed(
|
|
47
|
+
Number.isInteger(i) ? 2 : Math.min(4, Math.max(2, r))
|
|
48
|
+
);
|
|
49
|
+
return n ? `${e} ${t.currency}` : t.currency === "MYR" ? `RM ${e}` : `${t.currency} ${e}`;
|
|
50
|
+
}
|
|
51
|
+
function w(t) {
|
|
52
|
+
return {
|
|
53
|
+
...t,
|
|
54
|
+
amount: Math.abs(t.amount)
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function M(t) {
|
|
58
|
+
if (!isFinite(t)) return 0;
|
|
59
|
+
let n = 1, r = 0;
|
|
60
|
+
for (; Math.round(t * n) / n !== t; )
|
|
61
|
+
n *= 10, r++;
|
|
62
|
+
return r;
|
|
63
|
+
}
|
|
64
|
+
function c(t) {
|
|
65
|
+
const n = M(t);
|
|
66
|
+
return {
|
|
67
|
+
precision: n,
|
|
68
|
+
amount: t * 10 ** n
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function O(t, n = 0, r = !1) {
|
|
72
|
+
let i = 0;
|
|
73
|
+
return Number.isNaN(Number(t)) || (r || Number(t) >= 0) && (i = Number(t)), {
|
|
74
|
+
amount: Number((i * 10 ** n).toFixed(0)),
|
|
75
|
+
precision: n
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function a(t) {
|
|
79
|
+
const n = `${t}`, r = n.replace(/0*$/g, "");
|
|
80
|
+
return n.length - r.length;
|
|
81
|
+
}
|
|
82
|
+
function y(t, n) {
|
|
83
|
+
if (!n)
|
|
84
|
+
return t.precision;
|
|
85
|
+
const r = a(n.conversion.amount);
|
|
86
|
+
return t.precision - n.conversion.precision + r;
|
|
87
|
+
}
|
|
88
|
+
function B() {
|
|
89
|
+
return function(n) {
|
|
90
|
+
return !!n || "Required";
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function m(t) {
|
|
94
|
+
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "amount") && Object.prototype.hasOwnProperty.call(t, "precision");
|
|
95
|
+
}
|
|
96
|
+
function R(t, n) {
|
|
97
|
+
const r = typeof t == "object" ? +u(t) : t;
|
|
98
|
+
function i(e) {
|
|
99
|
+
return Object.prototype.hasOwnProperty.call(e, "length");
|
|
100
|
+
}
|
|
101
|
+
return function(o) {
|
|
102
|
+
return m(o) && (o = +u(o)), Number.isFinite(+o) && (o = +o), i(o) ? o.length >= r ? !0 : typeof n == "function" ? n(o.length) : n ?? `Must be at least ${r}` : typeof o == "number" ? o >= r ? !0 : typeof n == "function" ? n(o) : n ?? `Must be at least ${r}` : `Cannot validate at least ${r}`;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function L(t) {
|
|
106
|
+
const n = typeof t == "object" ? +u(t) : t;
|
|
107
|
+
function r(i) {
|
|
108
|
+
return Object.prototype.hasOwnProperty.call(i, "length");
|
|
109
|
+
}
|
|
110
|
+
return function(e, o) {
|
|
111
|
+
return m(e) && (e = +u(e)), r(e) ? e.length > n ? !0 : typeof o == "function" ? o(e.length) : o ?? `Must be more than ${n}` : typeof e == "number" ? e > n ? !0 : typeof o == "function" ? o(e) : o ?? `Must be more than ${n}` : `Cannot validate more than ${n}`;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function q(t, n) {
|
|
115
|
+
return t instanceof Date && n instanceof Date ? function(i) {
|
|
116
|
+
const e = new Date(i);
|
|
117
|
+
return isNaN(e.getTime()) ? "Invalid date" : e.getTime() < t.getTime() ? `Date must be at least ${d(t)} ${b(t)}` : e.getTime() >= n.getTime() ? `Date must be less than ${d(n)} ${b(n)}` : !0;
|
|
118
|
+
} : typeof t == "number" && typeof n == "number" ? function(i) {
|
|
119
|
+
const e = +i;
|
|
120
|
+
return isNaN(e) ? "Invalid number" : e < t ? `Value must be at least ${t}` : e >= n ? `Value must be less than ${n}` : !0;
|
|
121
|
+
} : function() {
|
|
122
|
+
return "Progamming error: invalid range parameter.";
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function f() {
|
|
126
|
+
return function(t) {
|
|
127
|
+
if (t = String(t), t.length === 0)
|
|
128
|
+
return !0;
|
|
129
|
+
const n = +t;
|
|
130
|
+
return isFinite(n) || "Must be a number";
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function C(t, n) {
|
|
134
|
+
return typeof t == "number" ? function(i) {
|
|
135
|
+
const e = f()(i);
|
|
136
|
+
return typeof e == "string" ? e : c(+i).precision > t ? `Precision cannot be more than ${t} decimal point.` : !0;
|
|
137
|
+
} : function(i) {
|
|
138
|
+
const e = f()(i);
|
|
139
|
+
if (typeof e == "string")
|
|
140
|
+
return e;
|
|
141
|
+
const o = y(t, n);
|
|
142
|
+
return c(+i).precision > o ? `Precision cannot be more than ${o} decimal point.` : !0;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function V(t, n) {
|
|
146
|
+
return function(i) {
|
|
147
|
+
const e = f()(i);
|
|
148
|
+
if (typeof e == "string")
|
|
149
|
+
return e;
|
|
150
|
+
const o = c(+i);
|
|
151
|
+
return o.precision > t ? typeof n == "function" ? n(o.precision) : n ?? `Precision cannot be more than ${t}` : !0;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function Y(t, n, r) {
|
|
155
|
+
return function(e) {
|
|
156
|
+
if (e === n) return !0;
|
|
157
|
+
const o = t.find((p) => p.value === e);
|
|
158
|
+
return o ? r ? r(o) : `Already used in ${o.label}` : !0;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function Z(t) {
|
|
162
|
+
let n = typeof t == "number" ? c(t) : t;
|
|
163
|
+
n = h(n);
|
|
164
|
+
const r = u(n);
|
|
165
|
+
return function(e) {
|
|
166
|
+
if (!m(e)) {
|
|
167
|
+
if (e = +e, Number.isNaN(e)) return !0;
|
|
168
|
+
e = c(e);
|
|
169
|
+
}
|
|
170
|
+
return e = h(e), e.amount % n.amount === 0 && e.precision <= n.precision ? !0 : `${u(e)} must be a multiple of ${r}`;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
R as A,
|
|
175
|
+
q as B,
|
|
176
|
+
f as I,
|
|
177
|
+
C as M,
|
|
178
|
+
B as R,
|
|
179
|
+
Y as U,
|
|
180
|
+
u as a,
|
|
181
|
+
N as b,
|
|
182
|
+
c,
|
|
183
|
+
L as d,
|
|
184
|
+
M as e,
|
|
185
|
+
w as f,
|
|
186
|
+
y as g,
|
|
187
|
+
j as h,
|
|
188
|
+
$ as i,
|
|
189
|
+
x as j,
|
|
190
|
+
P as k,
|
|
191
|
+
h as l,
|
|
192
|
+
Z as m,
|
|
193
|
+
T as n,
|
|
194
|
+
V as o,
|
|
195
|
+
D as p,
|
|
196
|
+
O as t,
|
|
197
|
+
F as u
|
|
198
|
+
};
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare function useNetSuiteStore(): {
|
|
|
31
31
|
}[];
|
|
32
32
|
syncedAt?: string | null | undefined;
|
|
33
33
|
restlet?: {
|
|
34
|
-
type: "createItemReceipt"
|
|
34
|
+
type: "createItemReceipt";
|
|
35
35
|
scriptId: string;
|
|
36
36
|
deploymentId: string;
|
|
37
37
|
}[] | null | undefined;
|
|
@@ -76,73 +76,6 @@ export declare function useNetSuiteStore(): {
|
|
|
76
76
|
};
|
|
77
77
|
readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
|
|
78
78
|
readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
|
|
79
|
-
readonly netSuiteItemBySkuId: Map<unknown, [{
|
|
80
|
-
pktCode?: string | null | undefined;
|
|
81
|
-
pktName?: string | null | undefined;
|
|
82
|
-
externalId?: string | null | undefined;
|
|
83
|
-
id: string;
|
|
84
|
-
netSuiteId: string;
|
|
85
|
-
unitTypeId: string;
|
|
86
|
-
unitOfMeasureId: string;
|
|
87
|
-
subsidiaryIds: string[];
|
|
88
|
-
includeChildren: boolean;
|
|
89
|
-
}, ...{
|
|
90
|
-
pktCode?: string | null | undefined;
|
|
91
|
-
pktName?: string | null | undefined;
|
|
92
|
-
externalId?: string | null | undefined;
|
|
93
|
-
id: string;
|
|
94
|
-
netSuiteId: string;
|
|
95
|
-
unitTypeId: string;
|
|
96
|
-
unitOfMeasureId: string;
|
|
97
|
-
subsidiaryIds: string[];
|
|
98
|
-
includeChildren: boolean;
|
|
99
|
-
}[]]>;
|
|
100
|
-
readonly unitByNetsuiteId: Map<unknown, [{
|
|
101
|
-
_id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
abbrev: string;
|
|
104
|
-
precision: number;
|
|
105
|
-
measurements: {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
abbrev: string;
|
|
109
|
-
conversion: {
|
|
110
|
-
amount: number;
|
|
111
|
-
precision: number;
|
|
112
|
-
};
|
|
113
|
-
}[];
|
|
114
|
-
}, ...{
|
|
115
|
-
_id: string;
|
|
116
|
-
name: string;
|
|
117
|
-
abbrev: string;
|
|
118
|
-
precision: number;
|
|
119
|
-
measurements: {
|
|
120
|
-
id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
abbrev: string;
|
|
123
|
-
conversion: {
|
|
124
|
-
amount: number;
|
|
125
|
-
precision: number;
|
|
126
|
-
};
|
|
127
|
-
}[];
|
|
128
|
-
}[]]>;
|
|
129
|
-
readonly measurementByNetsuiteId: Map<unknown, [{
|
|
130
|
-
id: string;
|
|
131
|
-
name: string;
|
|
132
|
-
abbrev: string;
|
|
133
|
-
conversion: {
|
|
134
|
-
amount: number;
|
|
135
|
-
precision: number;
|
|
136
|
-
};
|
|
137
|
-
} | undefined, ...({
|
|
138
|
-
id: string;
|
|
139
|
-
name: string;
|
|
140
|
-
abbrev: string;
|
|
141
|
-
conversion: {
|
|
142
|
-
amount: number;
|
|
143
|
-
precision: number;
|
|
144
|
-
};
|
|
145
|
-
} | undefined)[]]>;
|
|
146
79
|
getNetSuiteVendor(supplierId: string): FdoNetSuiteVendor | undefined;
|
|
147
80
|
getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
|
|
148
81
|
getLocationSubsidiary(netSuiteLocationId?: string | null): {
|
|
@@ -168,8 +101,7 @@ export declare function useNetSuiteStore(): {
|
|
|
168
101
|
getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
|
|
169
102
|
readSetting(): Promise<void>;
|
|
170
103
|
getVendorSubsidiaryName(supplierId: string): string;
|
|
171
|
-
|
|
172
|
-
getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
|
|
104
|
+
syncPurchaseOrder(purchaseOrderId: string): Promise<void>;
|
|
173
105
|
};
|
|
174
106
|
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
175
107
|
fullName?: string;
|
|
@@ -1958,8 +1958,11 @@ export declare function useInventoryStore(): {
|
|
|
1958
1958
|
};
|
|
1959
1959
|
closing: {
|
|
1960
1960
|
closedBy?: {
|
|
1961
|
+
faceId?: unknown;
|
|
1961
1962
|
name: string;
|
|
1962
|
-
|
|
1963
|
+
role: string;
|
|
1964
|
+
_id: string;
|
|
1965
|
+
passcode: string;
|
|
1963
1966
|
} | null | undefined;
|
|
1964
1967
|
_id?: string | undefined;
|
|
1965
1968
|
skus?: {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fm-
|
|
1
|
+
.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-fa6c2f94],.fade-leave-active[data-v-fa6c2f94]{transition:opacity .25s ease}.fade-enter[data-v-fa6c2f94],.fade-leave-to[data-v-fa6c2f94]{opacity:0}.fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-0fe980e2],.v-leave-active[data-v-0fe980e2]{transition:opacity .1s ease}.v-enter-from[data-v-0fe980e2],.v-leave-to[data-v-0fe980e2]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as m, u, i as y, p as b, q as v } from "./app-KnSMkJBV.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as w } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const a = m((t, p) => {
|
|
6
|
+
function i() {
|
|
7
7
|
var o;
|
|
8
8
|
const s = c(), e = u(), r = e.businessLevel, n = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
9
|
return r ? n : S;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
async readSuppliers() {
|
|
13
|
-
const s =
|
|
13
|
+
const s = i(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
14
|
return await p.get(e);
|
|
15
15
|
},
|
|
16
16
|
async readLocationSuppliers() {
|
|
@@ -23,40 +23,40 @@ const i = m((t, p) => {
|
|
|
23
23
|
return await p.get(r);
|
|
24
24
|
},
|
|
25
25
|
async createSupplier(s) {
|
|
26
|
-
const e =
|
|
26
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
27
|
return await p.post(r, s);
|
|
28
28
|
},
|
|
29
29
|
async importSuppliers(s) {
|
|
30
|
-
const e =
|
|
30
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
31
|
return await p.post(r, s);
|
|
32
32
|
},
|
|
33
33
|
async updateSupplier(s) {
|
|
34
|
-
const e =
|
|
34
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
35
|
return await p.put(r, s);
|
|
36
36
|
},
|
|
37
37
|
async deleteSupplier(s) {
|
|
38
|
-
const e =
|
|
38
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
39
39
|
return await p.delete(r, s);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}), f = w("supplier", () => {
|
|
43
|
-
const t = l(new Array()), p = l(new Array()),
|
|
43
|
+
const t = l(new Array()), p = l(new Array()), i = d(() => [...t.value, ...p.value]), s = d(() => y(i.value, "_id"));
|
|
44
44
|
return {
|
|
45
45
|
async readSuppliers() {
|
|
46
|
-
const e =
|
|
46
|
+
const e = a();
|
|
47
47
|
t.value = await e.readLocationSuppliers(), p.value = await e.readBusinessSuppliers();
|
|
48
48
|
},
|
|
49
49
|
async createSupplier(e) {
|
|
50
|
-
await
|
|
50
|
+
await a().createSupplier(e);
|
|
51
51
|
},
|
|
52
52
|
async updateSupplier(e) {
|
|
53
|
-
await
|
|
53
|
+
await a().updateSupplier(e);
|
|
54
54
|
},
|
|
55
55
|
async deleteSupplier(e) {
|
|
56
|
-
await
|
|
56
|
+
await a().deleteSupplier(e);
|
|
57
57
|
},
|
|
58
58
|
async importSuppliers(e) {
|
|
59
|
-
await
|
|
59
|
+
await a().importSuppliers(e);
|
|
60
60
|
},
|
|
61
61
|
async init() {
|
|
62
62
|
const e = b();
|
|
@@ -66,7 +66,7 @@ const i = m((t, p) => {
|
|
|
66
66
|
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
suppliers:
|
|
69
|
+
suppliers: i,
|
|
70
70
|
locationSuppliers: t,
|
|
71
71
|
businessSuppliers: p,
|
|
72
72
|
supplierById: s
|