@feedmepos/mf-inventory-portal 1.5.7 → 1.5.9-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-DE6l-D4S.js → App-CRKhmCwm.js} +4 -4
- package/dist/{ApprovalView-rgqaceRG.js → ApprovalView-BdvNZ3Mi.js} +7 -7
- package/dist/{BindingsDialog-CaoCfpO5.js → BindingsDialog-UieCgCDS.js} +13 -13
- package/dist/{BindingsPicker-6ejmOZGg.js → BindingsPicker-Bo7xvsut.js} +2 -2
- package/dist/{BindingsTable-BYv0445O.js → BindingsTable-CUaQzSBn.js} +3 -3
- package/dist/ClosingDraftView-QgRaat2h.js +3335 -0
- package/dist/{ClosingHistoryView-FKmF3_d4.js → ClosingHistoryView-C_qw6v7h.js} +469 -459
- package/dist/{ClosingTemplateView-DZOFAxSC.js → ClosingTemplateView-BAsHjB3H.js} +14 -14
- package/dist/{DefaultView-Bmw-cwMP.js → DefaultView-CaWfkTXn.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BAnulm_W.js → DeliveryOrderPrintPreview-Dv2fXveZ.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnRZ48Us.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BFzPTyKA.js} +22 -22
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-pg3ieo_g.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y_AhN6qb.js} +2 -2
- package/dist/{FmMultiselectDialog-BFhyKzpc.js → FmMultiselectDialog-DT28lMdK.js} +1 -1
- package/dist/{FmMultiselectDialog-BinKfvTl.js → FmMultiselectDialog-e4dbq-bB.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BgA6574c.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CO2Uom0f.js} +111 -110
- package/dist/{ImportView-CAM68Sd4.js → ImportView-Brvxm1EN.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnO7Q7GW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DSqbdU3A.js} +1 -1
- package/dist/{IngredientGroupView-DoJ7F14c.js → IngredientGroupView-CqqD1_5X.js} +5 -5
- package/dist/{IngredientsView-DAsMEwld.js → IngredientsView-BmOSo8oo.js} +17 -17
- package/dist/{IntegrationExplorerView-DclCC5r6.js → IntegrationExplorerView-CZH3568k.js} +5 -5
- package/dist/{IntegrationView-BXiSzB-N.js → IntegrationView-CJv9Ps4v.js} +13 -13
- package/dist/{InventoryBindingForm-CC76n6uE.js → InventoryBindingForm-BZVAC4x1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-gP24UWKI.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPl9weMj.js} +5 -5
- package/dist/{InventoryBindingSummary-BoYnVpYe.js → InventoryBindingSummary-C7Xl5Fd7.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5mzh-X5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CyjRq3A-.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CefSaFhj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIoYx-x4.js} +1 -1
- package/dist/{PublishView-BIPlQPqV.js → PublishView-DHK3MPsP.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-ChahKz9N.js → PurchaseOrderPrintPreview-DLg01buw.js} +2 -2
- package/dist/{ReceiveRequestView-BRPknQ4J.js → ReceiveRequestView-B1n42VJ5.js} +569 -570
- package/dist/{RecipeView-ifmP3yur.js → RecipeView-BOEfiTuN.js} +19 -19
- package/dist/{SettingsView-CHhME9fm.js → SettingsView-Bqx3woVD.js} +4 -4
- package/dist/{StockView-BYW7kSMB.js → StockView-UjWpz_eL.js} +775 -765
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-PX2cEVZi.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BxyFAK_X.js} +1 -1
- package/dist/{SupplierView-ChRNEURO.js → SupplierView-_zK2xohX.js} +12 -12
- package/dist/{SurchargeView-pRvo-1Pc.js → SurchargeView-BtUebfil.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D1LOA32J.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF3seGmT.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgzLsKyB.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bpo1u5g2.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-pRcSERam.js → TransferDetails.vue_vue_type_script_setup_true_lang-B_kdNBCT.js} +20 -20
- package/dist/{TransferTemplateView-CeJn9pkT.js → TransferTemplateView-OlHTVdCG.js} +18 -18
- package/dist/{UnitCostHistoryView-GBZ7kLM2.js → UnitCostHistoryView-BIvYaMio.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CBRziJ6W.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DqTis1lE.js} +4 -4
- package/dist/{UnitView-D7qhcFMT.js → UnitView-DAtDiu3f.js} +9 -9
- package/dist/{WarehouseView-D1peFY-b.js → WarehouseView-B3mXQpoO.js} +70 -69
- package/dist/{WastageTemplateView-Cp6j79--.js → WastageTemplateView-BOoybeCb.js} +14 -14
- package/dist/api/error.d.ts +6 -3
- package/dist/{app-BYsl6Q0k.js → app-cwueji6m.js} +9477 -9400
- package/dist/app.d.ts +8 -0
- package/dist/app.js +4 -4
- package/dist/{closing-template-BqDEseEH.js → closing-template-CobmAqhD.js} +1 -1
- package/dist/{date2-ClEr4Hh1.js → date2-D_-j6u1x.js} +1 -1
- package/dist/{dayjs.min-D7rJ5XFt.js → dayjs.min-iDeAwg0n.js} +1 -1
- package/dist/{decimal-C-BtLmxu.js → decimal-DcHr_uvI.js} +2 -2
- package/dist/{defineDeepModel-CAsKxO2x.js → defineDeepModel-BhC1n6G-.js} +1 -1
- package/dist/{duplicate-template-BaLtrzTE.js → duplicate-template-Y9iggS9l.js} +1 -1
- package/dist/{export-CK6V100y.js → export-CAHG4EbP.js} +2 -2
- package/dist/{feature-C1s_dkeb.js → feature-BhK4XmmS.js} +86 -86
- package/dist/{format-time-from-id-BE25JynL.js → format-time-from-id-2IFiQNTX.js} +1 -1
- package/dist/{format-unit-display-6rk6Cvop.js → format-unit-display-CTYZvXcZ.js} +11 -11
- package/dist/helper/uom-rules.d.ts +12 -0
- package/dist/{import-export.helper-Vg3CSgTk.js → import-export.helper-DtWH9atw.js} +6 -6
- package/dist/{index-DkhSxroI.js → index-Ckhb0CMq.js} +1 -1
- package/dist/{index-Bw4sH5QZ.js → index-dfAAA8HA.js} +3 -3
- package/dist/{index-Ck1QT6n3.js → index-iGt85nBk.js} +1 -1
- package/dist/{inventory-core-dart.default-B2h72dXO.js → inventory-core-dart.default-R1tOn2RS.js} +372 -237
- package/dist/{lz-string-DL1izNj1.js → lz-string-DUT6tVSg.js} +1 -1
- package/dist/{menu-usage-module-BiCPifRX.js → menu-usage-module-D7cxkbEk.js} +11 -12
- package/dist/netsuite-BiF6Fo7G.js +9381 -0
- package/dist/{number-CG4iJNxT.js → number-Cqsx9s88.js} +3 -3
- package/dist/{predefined-templates-CBK89oKb.js → predefined-templates-CHExzSjx.js} +1 -1
- package/dist/{purchase-order-template-C2U5EzAN.js → purchase-order-template-_FfLY2u1.js} +1 -1
- package/dist/{recalculationUtils-C6ZDHlwr.js → recalculationUtils-KdVSBljW.js} +1 -1
- package/dist/{rules-BPgfm-C7.js → rules-DB26S6qs.js} +2 -2
- package/dist/{stock-uaUmLATC.js → stock-n6h8HkNk.js} +1 -1
- package/dist/{supplier-CAYiOj5U.js → supplier-6K9Cbfcf.js} +2 -2
- package/dist/{surcharge-BbOjhav8.js → surcharge-BV03ItuR.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/uom-rules-CzTxRiqL.js +21 -0
- package/dist/{use-ingredient-select-dialog-CqobC3-_.js → use-ingredient-select-dialog-Bs_4jjVy.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BrAubA9c.js → use-inventory-binding-dialog-CgtoqJ2D.js} +2 -2
- package/dist/{use-template-enabled-locations-DtLAf3Ok.js → use-template-enabled-locations-C6fQtFF0.js} +2 -2
- package/dist/use-transfer-locations-DI48leYd.js +115 -0
- package/dist/{useHrmPermission-BjKDMF1Q.js → useHrmPermission-Co1Jgyvq.js} +1 -1
- package/dist/{useNavigationMenu-B_i92K8y.js → useNavigationMenu-JenXwvSv.js} +2 -2
- package/dist/{useSseClient-CPZj8tzu.js → useSseClient-gIA58rTS.js} +3 -3
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +11 -2
- package/dist/{vue-i18n-DFNpQ_4n.js → vue-i18n-C3I0upD3.js} +331 -331
- package/dist/{xlsx-DuvGVByu.js → xlsx-4BYDayT5.js} +184 -184
- package/dist/{xlsx.util-NVQktAdj.js → xlsx.util-CD_xD6ZX.js} +3 -3
- package/package.json +3 -3
- package/dist/ClosingDraftView-BNjmxJNt.js +0 -3202
- package/dist/lodash-PCSvaIXr.js +0 -3678
- package/dist/netsuite-DC8EHD9N.js +0 -5708
- package/dist/use-transfer-locations-DK3Cx3XD.js +0 -116
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { u as w, r as l, Q as R, W as g } from "./app-BYsl6Q0k.js";
|
|
2
|
-
import { u as E } from "./supplier-CAYiOj5U.js";
|
|
3
|
-
import { computed as u } from "vue";
|
|
4
|
-
function d(o) {
|
|
5
|
-
const c = g.safeParse(o);
|
|
6
|
-
if (c.success) return c.data;
|
|
7
|
-
throw new Error("Invalid supplier data");
|
|
8
|
-
}
|
|
9
|
-
function _(o) {
|
|
10
|
-
return {
|
|
11
|
-
_id: o.doc._id,
|
|
12
|
-
internal: o.type,
|
|
13
|
-
contactName: o.doc.profile.name,
|
|
14
|
-
name: o.doc.profile.name ?? "",
|
|
15
|
-
email: o.doc.profile.email,
|
|
16
|
-
phoneNumber: o.doc.profile.phoneNo,
|
|
17
|
-
registrationNumber: o.doc.profile.regNo,
|
|
18
|
-
address: o.doc.profile.address ?? {
|
|
19
|
-
line1: "",
|
|
20
|
-
state: "",
|
|
21
|
-
city: "",
|
|
22
|
-
postcode: "",
|
|
23
|
-
country: ""
|
|
24
|
-
},
|
|
25
|
-
preparationTime: o.preparationTime
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function F(o, c, v = !1, f = !1) {
|
|
29
|
-
const p = E(), r = w();
|
|
30
|
-
r.watchLocation(async () => {
|
|
31
|
-
var a;
|
|
32
|
-
await p.readSuppliers();
|
|
33
|
-
const e = o();
|
|
34
|
-
if ((a = e.supplier) != null && a._id) return;
|
|
35
|
-
const s = f ? p.suppliers[0] : p.businessSuppliers[0], n = (v ? r.locations.filter((i) => i.doc._id !== r.currentLocation.doc._id) : r.locations)[0];
|
|
36
|
-
c({
|
|
37
|
-
...e,
|
|
38
|
-
supplier: s ? d(s) : n ? _(n) : e.supplier
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
const y = u(
|
|
42
|
-
() => {
|
|
43
|
-
var e, s;
|
|
44
|
-
return typeof ((s = (e = o()) == null ? void 0 : e.supplier) == null ? void 0 : s.internal) == "string" ? l.enum.transfer : l.enum.purchase;
|
|
45
|
-
}
|
|
46
|
-
), h = u({
|
|
47
|
-
get() {
|
|
48
|
-
var e, s;
|
|
49
|
-
return (s = (e = o()) == null ? void 0 : e.supplier) == null ? void 0 : s._id;
|
|
50
|
-
},
|
|
51
|
-
set(e) {
|
|
52
|
-
const s = o() ?? {};
|
|
53
|
-
if (y.value === l.enum.purchase) {
|
|
54
|
-
const m = (f ? p.suppliers : p.businessSuppliers).find((N) => N._id === e);
|
|
55
|
-
c({
|
|
56
|
-
...s,
|
|
57
|
-
supplier: m ? d(m) : s.supplier
|
|
58
|
-
});
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const a = (v ? r.allLocations.filter(
|
|
62
|
-
(i) => i.doc._id !== r.currentLocation.doc._id
|
|
63
|
-
) : r.allLocations).find((i) => i.doc._id === e);
|
|
64
|
-
c({
|
|
65
|
-
...s,
|
|
66
|
-
supplier: a ? _(a) : s.supplier
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}), L = u(() => p.locationSuppliers.map(d)), T = u(() => p.businessSuppliers.map(d)), S = u(() => {
|
|
70
|
-
const e = [...L.value], s = [...T.value];
|
|
71
|
-
return f ? [...s, ...e] : s;
|
|
72
|
-
}), b = u(() => {
|
|
73
|
-
var t;
|
|
74
|
-
const e = ((t = r._currentLocation) == null ? void 0 : t.type) === R.warehouse;
|
|
75
|
-
return (v ? r.allLocations.filter(
|
|
76
|
-
(n) => n.doc._id !== r.currentLocation.doc._id
|
|
77
|
-
) : r.allLocations).filter((n) => e || n.acceptRequest).map(_);
|
|
78
|
-
}), O = u(() => {
|
|
79
|
-
if (y.value === l.enum.purchase) {
|
|
80
|
-
const s = L.value.map((n) => ({
|
|
81
|
-
label: n.name,
|
|
82
|
-
value: n._id
|
|
83
|
-
})), t = T.value.map((n) => ({
|
|
84
|
-
label: n.name,
|
|
85
|
-
sublabel: "Business supplier",
|
|
86
|
-
value: n._id
|
|
87
|
-
}));
|
|
88
|
-
return f ? [...s, ...t] : t;
|
|
89
|
-
}
|
|
90
|
-
return b.value.map((s) => ({
|
|
91
|
-
label: s.name,
|
|
92
|
-
sublabel: s.internal ? `${s.internal}` : void 0,
|
|
93
|
-
value: s._id
|
|
94
|
-
}));
|
|
95
|
-
}), P = u(() => {
|
|
96
|
-
var n, a;
|
|
97
|
-
const e = (a = (n = o()) == null ? void 0 : n.supplier) == null ? void 0 : a._id;
|
|
98
|
-
if (y.value === l.enum.purchase) {
|
|
99
|
-
const i = p.suppliers.find((m) => m._id === e);
|
|
100
|
-
return i ? d(i) : null;
|
|
101
|
-
}
|
|
102
|
-
const t = r.allLocations.find((i) => i.doc._id);
|
|
103
|
-
return t ? _(t) : null;
|
|
104
|
-
});
|
|
105
|
-
return {
|
|
106
|
-
transferLocationModel: h,
|
|
107
|
-
transferLocationOptions: O,
|
|
108
|
-
locationOptionsTypePurchase: S,
|
|
109
|
-
locationOptionsTypePurchaseLocationLevel: L,
|
|
110
|
-
locationOptionsTypeTransfer: b,
|
|
111
|
-
selectedLocation: P
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export {
|
|
115
|
-
F as u
|
|
116
|
-
};
|