@feedmepos/mf-inventory-portal 1.2.59 → 1.2.60-dev.2
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-Nwc0Ha2r.js → App-B_yr-6yL.js} +82 -78
- package/dist/{ApprovalView-Y5f915s3.js → ApprovalView-DoYBBuSD.js} +5 -5
- package/dist/{BindingsDialog-5N7R_u4c.js → BindingsDialog-DG7HOy6J.js} +5 -5
- package/dist/{BindingsPicker-BJwvLu2s.js → BindingsPicker-DVCYpyrR.js} +3 -3
- package/dist/{BindingsTable-B8sq-qXH.js → BindingsTable-CCel2b_W.js} +5 -5
- package/dist/{ClosingDraftView-BsyYOZsz.js → ClosingDraftView-CfM7gNBX.js} +891 -893
- package/dist/{ClosingHistoryView-BNpsMNy1.js → ClosingHistoryView-DWH4bFgg.js} +36 -36
- package/dist/{ClosingTemplateView-BBqbq07d.js → ClosingTemplateView-JYnnvm7L.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CmOO7wuE.js → DeliveryOrderPrintPreview-BihBTJGj.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXlY-Gu1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CAMkZRFI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js} +2 -2
- package/dist/{FmMultiselectDialog-CwJUv9tG.js → FmMultiselectDialog-CxDviJZM.js} +16 -16
- package/dist/{FmMultiselectDialog-LagHyTQP.js → FmMultiselectDialog-D51nW6yj.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BmHFIkt1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js} +16 -15
- package/dist/{ImportView-wQ_bNesb.js → ImportView-C52rZFib.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtMrJIVs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CjZmd-Sa.js} +1 -1
- package/dist/{IngredientGroupView-DsGMhdwu.js → IngredientGroupView-DTHpZP2L.js} +5 -5
- package/dist/{IngredientsView-JdjcLdOx.js → IngredientsView-CrCW6heJ.js} +25 -24
- package/dist/{IntegrationView-CMmSIRUk.js → IntegrationView--DZANrHj.js} +18 -17
- package/dist/{InventoryBindingForm-UL-UKtYW.js → InventoryBindingForm-DLTpv-zQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-r875PDKP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-hkIg4Rbp.js} +17 -16
- package/dist/{InventoryBindingSummary-BDAuT62b.js → InventoryBindingSummary-D9ptV8Cw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5zOYiqR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdPxhkg0.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B2zppgqk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ci3esisT.js} +2 -2
- package/dist/{PublishView-CSoZCSHT.js → PublishView-DxzL_D61.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-D5Qw44xo.js → PurchaseOrderPrintPreview-D0tg-2TC.js} +11 -11
- package/dist/{ReceiveRequestView-Chntp08E.js → ReceiveRequestView-2U534J1_.js} +251 -250
- package/dist/RecipeView-VZRyX3Mm.js +1558 -0
- package/dist/{StockView-CuCK7tD2.js → StockView-CvWbnYGz.js} +653 -651
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxjceLuZ.js +183 -0
- package/dist/{SupplierView-CA17Tz02.js → SupplierView-DMIunLvv.js} +20 -19
- package/dist/{SurchargeView-EIftjMCa.js → SurchargeView-jteWYvQz.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CqA6RmPy.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYXsAP0i.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BbbAEIcW.js → TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js} +77 -78
- package/dist/{TransferTemplateView-CYfbm9aS.js → TransferTemplateView-DMQ1WIij.js} +22 -21
- package/dist/UnitCostHistoryView-DQ3sXVAQ.js +651 -0
- package/dist/{UnitView-6s5CsGEQ.js → UnitView-p6eZ8G2C.js} +9 -9
- package/dist/{WarehouseView-BXDQOyFZ.js → WarehouseView-BIShkEPs.js} +5 -5
- package/dist/{WastageTemplateView-Cq92TiRs.js → WastageTemplateView-DCbczB_0.js} +14 -14
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock-estimate.d.ts +2 -0
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-DJuq_faF.js → app-BAVBNKKH.js} +7461 -6448
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-D_zbp5V1.js → closing-template-DqxA750a.js} +1 -1
- package/dist/components/StockForecastProps.d.ts +6 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-4vrHarNG.js → date2-CgwRU403.js} +1 -1
- package/dist/{dayjs.min-Dwp8614O.js → dayjs.min-CjWVK_Fe.js} +16 -16
- package/dist/{defineDeepModel-DVt2Wz9r.js → defineDeepModel-B1j_kSRA.js} +1 -1
- package/dist/{duplicate-template-CkYWeFtL.js → duplicate-template-iHtqE_uw.js} +1 -1
- package/dist/{feature-Beh-qc03.js → feature-DEryk-Cv.js} +94 -89
- package/dist/{format-time-from-id-84iLSxVu.js → format-time-from-id-C-mbWMLS.js} +1 -1
- package/dist/{format-unit-display-DfeNpWk4.js → format-unit-display-C8Hzskg0.js} +16 -15
- package/dist/helper/number.d.ts +2 -0
- package/dist/helper/type.d.ts +5 -0
- package/dist/{import-export.helper-fAVzQM2q.js → import-export.helper-DGg16RXI.js} +17 -16
- package/dist/{index-CoEqhZLm.js → index-BAkoTUB0.js} +1 -1
- package/dist/{index-B2_16R5E.js → index-BLowSL6G.js} +1471 -1412
- package/dist/{index-Chogzhcq.js → index-CLr4DPan.js} +3 -3
- package/dist/{lodash-Cx8BU1GH.js → lodash-D1_0uR01.js} +1 -1
- package/dist/{netsuite-C1bml-v1.js → netsuite-Bbxz8tiD.js} +60 -60
- package/dist/number-Cof88Fjz.js +232 -0
- package/dist/{purchase-order-template-BqFnJ-6B.js → purchase-order-template-B-sXEbRE.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CzPUVxD_.js +98 -0
- package/dist/{stock-KxT4JbNf.js → stock-BYPFH5a_.js} +1 -1
- package/dist/stock-D9E1uFb1.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +119 -30
- package/dist/{supplier-C7wUB1zT.js → supplier-wQYh275s.js} +2 -2
- package/dist/{surcharge-CjB_Qtbv.js → surcharge-Bi21qFa0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-D5KSqA4Z.js → use-ingredient-select-dialog-DH-mXl8H.js} +2 -2
- package/dist/{use-inventory-binding-dialog-eGOvztV3.js → use-inventory-binding-dialog-i8E2CNuV.js} +2 -2
- package/dist/{use-template-enabled-locations-2-3kcVWPQm.js → use-template-enabled-locations-2-DRk9TskI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/type.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-C6XNfngV.js → vue-i18n-Cf9iDkfk.js} +398 -398
- package/dist/{xlsx-BwNUbN_O.js → xlsx-lp5RXzSw.js} +398 -398
- package/dist/{xlsx.util-B_DE3inS.js → xlsx.util-BxpZNkEZ.js} +1 -1
- package/package.json +2 -2
- package/dist/RecipeView-Ck3Pa4fg.js +0 -646
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-fMji2qKG.js +0 -172
- package/dist/decimal-Bf6AG_d3.js +0 -99
- package/dist/rules-y2OYGOro.js +0 -201
- package/dist/stock-BWUzlDTa.js +0 -75
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { defineComponent as C, computed as h, openBlock as l, createElementBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createVNode as E, createCommentVNode as G, withCtx as S, renderList as P } from "vue";
|
|
2
|
+
import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as O } from "./netsuite-Bbxz8tiD.js";
|
|
4
|
+
function re(e, t = !1) {
|
|
5
|
+
var c;
|
|
6
|
+
return e ? [
|
|
7
|
+
{
|
|
8
|
+
label: t ? e.abbrev : `1 ${e.name} (${e.abbrev})`,
|
|
9
|
+
abbrev: e.abbrev,
|
|
10
|
+
value: null
|
|
11
|
+
},
|
|
12
|
+
...((c = e.measurements) == null ? void 0 : c.map((o) => ({
|
|
13
|
+
label: t ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
|
|
14
|
+
abbrev: o.abbrev,
|
|
15
|
+
value: o.id
|
|
16
|
+
}))) ?? []
|
|
17
|
+
] : [];
|
|
18
|
+
}
|
|
19
|
+
var y = /* @__PURE__ */ ((e) => (e.noInfo = "no-info", e.low = "low", e.mid = "mid", e.high = "high", e))(y || {}), g = /* @__PURE__ */ ((e) => (e.GreaterThan = "GreaterThan", e.GreaterThanOrEqual = "GreaterThanOrEqual", e.Equal = "Equal", e))(g || {});
|
|
20
|
+
const A = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "flex"
|
|
23
|
+
}, U = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "flex"
|
|
26
|
+
}, H = { class: "flex px-8 py-4 bg-fm-color-neutral-gray-100 fm-corner-radius-md gap-8" }, z = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, se = /* @__PURE__ */ C({
|
|
27
|
+
__name: "StockForecast",
|
|
28
|
+
props: {
|
|
29
|
+
days: {},
|
|
30
|
+
level: {},
|
|
31
|
+
operator: {}
|
|
32
|
+
},
|
|
33
|
+
setup(e) {
|
|
34
|
+
const t = e, { t: u } = D(), c = h(() => t.level ? t.level : typeof t.days != "number" ? y.noInfo : t.days > 14 ? y.high : t.days >= 7 && t.days <= 14 ? y.mid : y.low), o = h(() => {
|
|
35
|
+
switch (t.operator) {
|
|
36
|
+
case g.GreaterThan:
|
|
37
|
+
return "inventory.stock.prediction.greaterThanDays";
|
|
38
|
+
case g.GreaterThanOrEqual:
|
|
39
|
+
return "inventory.stock.prediction.greaterThanOrEqualDays";
|
|
40
|
+
case g.Equal:
|
|
41
|
+
default:
|
|
42
|
+
return "inventory.stock.prediction.days";
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return (_, b) => typeof t.days == "number" ? (l(), d("div", A, [
|
|
46
|
+
r("div", {
|
|
47
|
+
class: v([
|
|
48
|
+
`fm-forecast-notification-${c.value}`,
|
|
49
|
+
"flex items-center gap-8 p-4 fm-corner-radius-md fm-typo-en-body-md-600"
|
|
50
|
+
])
|
|
51
|
+
}, [
|
|
52
|
+
r("div", {
|
|
53
|
+
class: v([
|
|
54
|
+
"fm-forecast-notification-indicator",
|
|
55
|
+
`fm-forecast-notification-indicator-${c.value}`
|
|
56
|
+
])
|
|
57
|
+
}, null, 2),
|
|
58
|
+
r("div", null, m(p(u)(o.value, [t.days])), 1)
|
|
59
|
+
], 2)
|
|
60
|
+
])) : (l(), d("div", U, [
|
|
61
|
+
r("div", H, [
|
|
62
|
+
r("p", z, m(p(u)("inventory.stock.prediction.noData")), 1)
|
|
63
|
+
])
|
|
64
|
+
]));
|
|
65
|
+
}
|
|
66
|
+
}), R = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "flex items-center gap-8"
|
|
69
|
+
}, Y = { class: "flex flex-col" }, j = { class: "fm-typo-en-heading-lg-600" }, J = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, K = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
|
|
72
|
+
}, M = {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
75
|
+
}, Q = { class: "flex flex-col" }, W = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, X = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, ne = /* @__PURE__ */ C({
|
|
76
|
+
__name: "SubsidiaryTreeDialog",
|
|
77
|
+
setup(e) {
|
|
78
|
+
const t = V(!1), { t: u } = D(), c = N(), o = O(), _ = h(() => {
|
|
79
|
+
var a;
|
|
80
|
+
return ((a = c.sessionUser.value) == null ? void 0 : a.role.isAdmin) ?? !1;
|
|
81
|
+
});
|
|
82
|
+
function b(a, s = [], i = []) {
|
|
83
|
+
const f = [];
|
|
84
|
+
return a.forEach((n, q) => {
|
|
85
|
+
const B = q === a.length - 1, F = [...s, B];
|
|
86
|
+
let x = "";
|
|
87
|
+
for (let T = 0; T < s.length; T++)
|
|
88
|
+
x += s[T] ? " " : "│ ";
|
|
89
|
+
x += B ? "└── " : "├── ", f.push({
|
|
90
|
+
id: n.id,
|
|
91
|
+
name: n.name,
|
|
92
|
+
prefix: s.length === 0 ? "" : x,
|
|
93
|
+
isCurrentBusiness: n.id === o.businessSubsidiaryId,
|
|
94
|
+
isRoot: s.length === 0,
|
|
95
|
+
isInPath: i.includes(n.id)
|
|
96
|
+
}), n.children && n.children.length > 0 && f.push(...b(n.children, F, i));
|
|
97
|
+
}), f;
|
|
98
|
+
}
|
|
99
|
+
function w(a, s) {
|
|
100
|
+
return a.map((i) => s.includes(i.id) ? {
|
|
101
|
+
...i,
|
|
102
|
+
// Recursively filter children
|
|
103
|
+
children: i.children ? w(i.children, s) : []
|
|
104
|
+
} : null).filter(Boolean);
|
|
105
|
+
}
|
|
106
|
+
const I = h(() => {
|
|
107
|
+
if (!o.businessSubsidiaryId)
|
|
108
|
+
return [];
|
|
109
|
+
const a = o.getBusinessSubsidiaryTree(), s = o.getBusinessSubsidiaryPath();
|
|
110
|
+
if (_.value)
|
|
111
|
+
return b(a, [], s);
|
|
112
|
+
const i = w(a, s);
|
|
113
|
+
return b(i, [], s);
|
|
114
|
+
});
|
|
115
|
+
return (a, s) => {
|
|
116
|
+
const i = $("FmButton"), f = $("FmDialog");
|
|
117
|
+
return l(), d(k, null, [
|
|
118
|
+
p(o).isEnabled ? (l(), d("div", R, [
|
|
119
|
+
E(i, {
|
|
120
|
+
"prepend-icon": "info",
|
|
121
|
+
variant: "tertiary",
|
|
122
|
+
onClick: s[0] || (s[0] = (n) => t.value = !0)
|
|
123
|
+
})
|
|
124
|
+
])) : G("", !0),
|
|
125
|
+
E(f, {
|
|
126
|
+
modelValue: t.value,
|
|
127
|
+
"onUpdate:modelValue": s[1] || (s[1] = (n) => t.value = n),
|
|
128
|
+
"close-button": "",
|
|
129
|
+
dismissAway: ""
|
|
130
|
+
}, {
|
|
131
|
+
"dialog-header": S(() => [
|
|
132
|
+
r("div", Y, [
|
|
133
|
+
r("div", j, m(p(u)("inventory.integration.netsuite.subsidiaryHierarchy.title")), 1),
|
|
134
|
+
r("p", J, m(p(u)("inventory.integration.netsuite.subsidiaryHierarchy.description")), 1),
|
|
135
|
+
_.value ? (l(), d("p", K, " All subsidiaries are shown since you are an admin. ")) : (l(), d("p", M, " Only showing subsidiaries in your business path. ")),
|
|
136
|
+
s[2] || (s[2] = r("div", { class: "flex flex-wrap gap-2 mt-4" }, [
|
|
137
|
+
r("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-brand-secondary rounded-md" }, [
|
|
138
|
+
r("span", { class: "w-3 h-3 rounded-sm bg-green-400" }),
|
|
139
|
+
r("span", { class: "fm-typo-en-body-sm-400" }, "Your Business")
|
|
140
|
+
]),
|
|
141
|
+
r("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-primary rounded-md border border-fm-color-border-secondary" }, [
|
|
142
|
+
r("span", { class: "w-3 h-3 rounded-sm bg-gray-200 border-2 border-gray-400" }),
|
|
143
|
+
r("span", { class: "fm-typo-en-body-sm-400" }, "Parent Subsidiary")
|
|
144
|
+
])
|
|
145
|
+
], -1))
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
default: S(() => [
|
|
149
|
+
r("div", Q, [
|
|
150
|
+
r("div", W, [
|
|
151
|
+
(l(!0), d(k, null, P(I.value, (n) => (l(), d("div", {
|
|
152
|
+
key: n.id,
|
|
153
|
+
class: "flex items-stretch"
|
|
154
|
+
}, [
|
|
155
|
+
r("span", X, m(n.prefix), 1),
|
|
156
|
+
r("div", {
|
|
157
|
+
class: v([
|
|
158
|
+
"px-2 py-1 rounded-md flex-1",
|
|
159
|
+
n.isCurrentBusiness ? "border-2 bg-green-200 border-green-400" : n.isInPath ? "border-2 bg-gray-200 border-gray-400" : "bg-fm-color-bg-primary border border-fm-color-border-secondary"
|
|
160
|
+
])
|
|
161
|
+
}, [
|
|
162
|
+
r("span", {
|
|
163
|
+
class: v([
|
|
164
|
+
n.isCurrentBusiness || n.isInPath ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
165
|
+
])
|
|
166
|
+
}, m(n.name), 3)
|
|
167
|
+
], 2)
|
|
168
|
+
]))), 128))
|
|
169
|
+
])
|
|
170
|
+
])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["modelValue"])
|
|
174
|
+
], 64);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
export {
|
|
179
|
+
y as S,
|
|
180
|
+
se as _,
|
|
181
|
+
ne as a,
|
|
182
|
+
re as g
|
|
183
|
+
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as ce } from "./supplier-
|
|
2
|
+
import { u as ce } from "./supplier-wQYh275s.js";
|
|
3
3
|
import { D as td, R as ye } from "./row-action.enum-BcW_L_nE.js";
|
|
4
4
|
import { c as Yd } from "./component-DpCUABT3.js";
|
|
5
|
-
import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-
|
|
5
|
+
import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-BAVBNKKH.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Ve } from "./netsuite-
|
|
7
|
+
import { u as Ve } from "./netsuite-Bbxz8tiD.js";
|
|
8
8
|
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as Zd, useBreakpoints as qd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
10
10
|
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as Z
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as xe } from "./feature-
|
|
16
|
-
import { u as
|
|
11
|
+
import { R as Z } from "./rules-CzPUVxD_.js";
|
|
12
|
+
import { a as Qd } from "./FmMultiselectDialog-CxDviJZM.js";
|
|
13
|
+
import { _ as et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
+
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js";
|
|
15
|
+
import { u as xe } from "./feature-DEryk-Cv.js";
|
|
16
|
+
import { u as tt } from "./purchase-order-template-B-sXEbRE.js";
|
|
17
|
+
import { g as rt } from "./number-Cof88Fjz.js";
|
|
17
18
|
import { _ as nt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
18
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
19
20
|
import { defineStore as at } from "pinia";
|
|
20
|
-
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-
|
|
21
|
-
import { f as lt } from "./date2-
|
|
21
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-BxpZNkEZ.js";
|
|
22
|
+
import { f as lt } from "./date2-CgwRU403.js";
|
|
22
23
|
import { F as st } from "./FmDroppableField-J0xUsOTV.js";
|
|
23
24
|
function ut(e, d) {
|
|
24
25
|
const { t } = ee(), r = Ve();
|
|
@@ -113,7 +114,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
113
114
|
n.open({
|
|
114
115
|
title: i("inventory.supplier.supplyItems.selectItem"),
|
|
115
116
|
closeButton: !0,
|
|
116
|
-
contentComponent:
|
|
117
|
+
contentComponent: Qd,
|
|
117
118
|
contentComponentProps: {
|
|
118
119
|
modelValue: y,
|
|
119
120
|
items: c
|
|
@@ -184,7 +185,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
184
185
|
h("div", pt, [
|
|
185
186
|
h("div", ft, [
|
|
186
187
|
h("div", mt, [
|
|
187
|
-
C(
|
|
188
|
+
C(et, { "z-index": 50 }, {
|
|
188
189
|
default: U(() => [
|
|
189
190
|
h("div", yt, A(p(i)("inventory.supplier.supplyItems.title")), 1)
|
|
190
191
|
]),
|
|
@@ -217,7 +218,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
217
218
|
]),
|
|
218
219
|
h("div", Ct, [
|
|
219
220
|
h("div", Nt, [
|
|
220
|
-
C(
|
|
221
|
+
C(dt, {
|
|
221
222
|
"model-value": v(N),
|
|
222
223
|
unit: u(N),
|
|
223
224
|
"onUpdate:modelValue": (T) => m(N, T),
|
|
@@ -555,7 +556,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
555
556
|
},
|
|
556
557
|
emits: ["update:show", "submitted"],
|
|
557
558
|
setup(e, { expose: d, emit: t }) {
|
|
558
|
-
const r = Ve(), n = e, i = t, o = k(!1), l = Se(), s = Ne(), { t: u } = ee(), v = ce(), m =
|
|
559
|
+
const r = Ve(), n = e, i = t, o = k(!1), l = Se(), s = Ne(), { t: u } = ee(), v = ce(), m = tt(), c = ke(), y = k(!1), g = E(() => {
|
|
559
560
|
switch (n.mode) {
|
|
560
561
|
case B.READ:
|
|
561
562
|
return "";
|
|
@@ -711,7 +712,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
711
712
|
var $e;
|
|
712
713
|
const re = {
|
|
713
714
|
amount: 1,
|
|
714
|
-
precision:
|
|
715
|
+
precision: rt(K.unit)
|
|
715
716
|
};
|
|
716
717
|
return {
|
|
717
718
|
sku: K,
|
|
@@ -2943,7 +2944,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2943
2944
|
}), b1 = { class: "flex flex-col py-8" }, _1 = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, P1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, C1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, N1 = {
|
|
2944
2945
|
key: 0,
|
|
2945
2946
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2946
|
-
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.",
|
|
2947
|
+
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Z1 = /* @__PURE__ */ ie({
|
|
2947
2948
|
__name: "SupplierView",
|
|
2948
2949
|
setup(e) {
|
|
2949
2950
|
const { importSuppliers: d, exportSuppliers: t } = h1(), r = ce(), n = Pe(), i = xe(), o = Ve(), l = k(!1), s = Ne(), u = Se(), { t: v } = ee();
|
|
@@ -3150,5 +3151,5 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3150
3151
|
}
|
|
3151
3152
|
});
|
|
3152
3153
|
export {
|
|
3153
|
-
|
|
3154
|
+
Z1 as default
|
|
3154
3155
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as pe, ref as v, computed as c, watch as R, onMounted as fe, resolveComponent as p, openBlock as j, createElementBlock as ye, Fragment as ge, createVNode as n, unref as s, withCtx as f, createElementVNode as u, normalizeClass as G, normalizeStyle as he, toDisplayString as E, withDirectives as be, vModelText as _e, createBlock as Se, withModifiers as xe, createCommentVNode as Fe } from "vue";
|
|
2
2
|
import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
-
import { a as Ie, u as Ce, s as V, j as Le,
|
|
4
|
-
import { u as Ae } from "./surcharge-
|
|
3
|
+
import { a as Ie, u as Ce, s as V, j as Le, y as Ve } from "./app-BAVBNKKH.js";
|
|
4
|
+
import { u as Ae } from "./surcharge-Bi21qFa0.js";
|
|
5
5
|
import { useSnackbar as De, useDialog as Me, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as Te } from "./FmMultiselectDialog-
|
|
6
|
+
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
7
|
+
import { a as Te } from "./FmMultiselectDialog-CxDviJZM.js";
|
|
8
8
|
import { useI18n as Be } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as ze } from "./supplier-
|
|
10
|
-
import { u as Ee } from "./feature-
|
|
9
|
+
import { u as ze } from "./supplier-wQYh275s.js";
|
|
10
|
+
import { u as Ee } from "./feature-DEryk-Cv.js";
|
|
11
11
|
import { D as Ne, P as $e, L as Ue } from "./app-DiX-EfV6.js";
|
|
12
12
|
import { D as H, R as A } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as qe } from "./component-DpCUABT3.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, ref as m, resolveComponent as p, openBlock as i, createBlock as O, withCtx as u, createVNode as y, createElementBlock as v, toDisplayString as g, createElementVNode as T, h as B } from "vue";
|
|
2
2
|
import { F as L } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
-
import { o as U, u as _ } from "./app-
|
|
3
|
+
import { o as U, u as _ } from "./app-BAVBNKKH.js";
|
|
4
4
|
import { useCoreStore as A } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as C, components as V } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as F, a as j } from "./closing-template-
|
|
6
|
+
import { u as F, a as j } from "./closing-template-DqxA750a.js";
|
|
7
7
|
const q = U((o, t) => {
|
|
8
8
|
const c = _(), l = A();
|
|
9
9
|
return {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as j, ref as h, computed as r, watch as q, h as i, reso
|
|
|
2
2
|
import { useCoreStore as Q, useI18n as W } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as x } from "@feedmepos/ui-library";
|
|
4
4
|
import { K as X, D as Y } from "./app-DiX-EfV6.js";
|
|
5
|
-
import { u as Z } from "./app-
|
|
5
|
+
import { u as Z } from "./app-BAVBNKKH.js";
|
|
6
6
|
import { F as ee } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
const le = { class: "flex flex-col gap-24" }, te = { class: "flex items-center" }, ae = { class: "fm-typo-en-body-lg-600 flex-1" }, oe = { class: "flex gap-8" }, ne = { class: "flex flex-col gap-4 w-full" }, se = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ j({
|
|
8
8
|
__name: "TemplatePublishDialog",
|