@feedmepos/mf-inventory-portal 1.2.7-dev.2 → 1.2.7-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-CBwWCCOM.js → App-C36fMhxq.js} +1 -1
- package/dist/{ApprovalView-BrRGheio.js → ApprovalView-BK-UXBwv.js} +26 -26
- package/dist/{BindingsDialog-BSPkkRis.js → BindingsDialog-C5ry8Cg7.js} +2 -2
- package/dist/{BindingsPicker-L3XnC3__.js → BindingsPicker-D1lrIB-Y.js} +1 -1
- package/dist/{BindingsTable-CgUm0Ity.js → BindingsTable-CoWyge2-.js} +1 -1
- package/dist/{ClosingDraftView-D_gq2fCk.js → ClosingDraftView-FFi85ylu.js} +203 -203
- package/dist/{ClosingTemplateView-Q16zr6EV.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
- package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
- package/dist/{FmAdminBadge-Cjy6QPoR.js → FmAdminBadge-DtBVrN_M.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnH2Qxnr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
- package/dist/{FmMultiselectDialog-BbYhJk_O.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CCuLSITo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
- package/dist/{IngredientGroupView-CJ9Rsfg-.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
- package/dist/IngredientsView-75ahXQeJ.js +2271 -0
- package/dist/{IntegrationView-B4giJ-Zl.js → IntegrationView-DEUOEn_W.js} +84 -84
- package/dist/{InventoryBindingForm-bNRoyTsA.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAaoOXUY.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
- package/dist/{InventoryBindingSummary-NfFve-nM.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP11tzty.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-yjjkBSqL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
- package/dist/{PublishView-w9GYA6kf.js → PublishView-DKkCs9F8.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-DmdDJmEq.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
- package/dist/{ReceiveRequestView-z4o7lZvK.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
- package/dist/{RecipeView-DiiQtfXn.js → RecipeView-CI_Tec4J.js} +49 -49
- package/dist/{StockView-DKR2nFdm.js → StockView-Bx3lqHZg.js} +327 -327
- package/dist/{SupplierView-BJcU4iQk.js → SupplierView-BT2aZGQE.js} +1103 -1016
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-UNVxzRmJ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +245 -245
- package/dist/{TransferTemplateView-rCbAWlh_.js → TransferTemplateView-DQtlCFze.js} +88 -87
- package/dist/{UnitView-BW9hbVHL.js → UnitView-h61yFjgP.js} +59 -59
- package/dist/{WarehouseView-BO0hf42-.js → WarehouseView-I8GqyD2C.js} +25 -25
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/{app-ChezCkd5.js → app-CxSrmhCK.js} +6888 -6786
- package/dist/app.d.ts +57 -0
- package/dist/app.js +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
- package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/{decimal-1sc-GcXN.js → decimal-DpfcXNky.js} +1 -1
- package/dist/{format-unit-display-BK2TkQOA.js → format-unit-display-xov4MvuI.js} +368 -400
- package/dist/{index-CWivxw9k.js → index-B4hWNXtZ.js} +1 -1
- package/dist/{index-cLW2Uxz3.js → index-CwzV_5fz.js} +1 -1
- package/dist/purchase-order-template-DkBl6qMP.js +41 -0
- package/dist/{stock-FEj_v-SS.js → stock-Nt176YY7.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +10 -0
- package/dist/{supplier-2r8VFThu.js → supplier-B7gAUwhb.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
- package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/package.json +1 -1
- package/dist/IngredientsView-BbKzQnQP.js +0 -1886
package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as y } from "pinia";
|
|
2
|
-
import { a as S,
|
|
2
|
+
import { a as S, s as b } from "./app-CxSrmhCK.js";
|
|
3
3
|
import { useDialog as A } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
5
5
|
const h = y(
|
|
6
6
|
"ingredientSelectDialog",
|
|
7
7
|
function() {
|
|
8
|
-
const { t: s } = I(), n = S(),
|
|
9
|
-
async function
|
|
8
|
+
const { t: s } = I(), n = S(), m = A();
|
|
9
|
+
async function a(l, u) {
|
|
10
10
|
const p = n.skus, g = u ?? ((t) => n.skuByCode[t]), d = p.map(
|
|
11
11
|
(t) => {
|
|
12
12
|
var e, o, i, c;
|
|
@@ -19,7 +19,7 @@ const h = y(
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
), f = l, { promise: v, resolve: r } = Promise.withResolvers();
|
|
22
|
-
return
|
|
22
|
+
return m.open({
|
|
23
23
|
title: s("inventory.transfer.form.items.selectItem"),
|
|
24
24
|
closeButton: !0,
|
|
25
25
|
contentComponent: b,
|
|
@@ -43,7 +43,7 @@ const h = y(
|
|
|
43
43
|
r(e);
|
|
44
44
|
}), v;
|
|
45
45
|
}
|
|
46
|
-
return { promptSelectIngredients:
|
|
46
|
+
return { promptSelectIngredients: a };
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
export {
|
package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as P,
|
|
1
|
+
import { a as P, s as g } from "./app-CxSrmhCK.js";
|
|
2
2
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
3
3
|
function B() {
|
|
4
4
|
const u = P(), _ = E();
|
|
@@ -7,7 +7,7 @@ function B() {
|
|
|
7
7
|
const y = e.filter((n) => n.type === "SKU"), l = e.filter((n) => n.type !== "SKU"), c = /* @__PURE__ */ new Set();
|
|
8
8
|
if (s)
|
|
9
9
|
for (const n of u.skus)
|
|
10
|
-
!f.some((
|
|
10
|
+
!f.some((a) => a === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((a) => a.id === s)) || c.add(n._id);
|
|
11
11
|
const t = u.skus.map((n) => ({
|
|
12
12
|
label: n.name,
|
|
13
13
|
sublabel: `${n.code}${c.has(n._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
|
|
@@ -36,10 +36,10 @@ function B() {
|
|
|
36
36
|
}).onPrimary((n) => {
|
|
37
37
|
const d = [
|
|
38
38
|
...l,
|
|
39
|
-
...e.filter((
|
|
40
|
-
...n.filter((
|
|
39
|
+
...e.filter((a) => n.find((r) => r._id === a.id)),
|
|
40
|
+
...n.filter((a) => !e.find((r) => r.id === a._id)).map((a) => ({
|
|
41
41
|
type: "SKU",
|
|
42
|
-
id:
|
|
42
|
+
id: a._id,
|
|
43
43
|
amount: {
|
|
44
44
|
amount: 1,
|
|
45
45
|
precision: 0
|
|
@@ -55,11 +55,11 @@ function B() {
|
|
|
55
55
|
if (s.length)
|
|
56
56
|
for (const i of u.recipes) {
|
|
57
57
|
const o = ((p = u.recipeBindingFlattenCache[i._id]) == null ? void 0 : p.inventoryBindings) ?? [], n = o.some(
|
|
58
|
-
(
|
|
58
|
+
(r) => r.bindingPaths.some((S) => s.some((h) => h === S.id))
|
|
59
59
|
), d = o.some(
|
|
60
|
-
(
|
|
60
|
+
(r) => "success" in r && s.includes(r.ingredient._id)
|
|
61
61
|
);
|
|
62
|
-
(s.some((
|
|
62
|
+
(s.some((r) => r === i._id) || n || d) && l.add(i._id);
|
|
63
63
|
}
|
|
64
64
|
const c = u.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
|
|
65
65
|
label: i.name,
|
|
@@ -76,6 +76,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
76
|
disabled: {
|
|
77
77
|
type: import("vue").PropType<boolean>;
|
|
78
78
|
};
|
|
79
|
+
purchaseOrderTemplateIds: {
|
|
80
|
+
type: import("vue").PropType<string[]>;
|
|
81
|
+
};
|
|
82
|
+
wastageTemplateIds: {
|
|
83
|
+
type: import("vue").PropType<string[]>;
|
|
84
|
+
};
|
|
79
85
|
}>, {
|
|
80
86
|
validateInputs: () => void;
|
|
81
87
|
resetInputsValidation: () => void;
|
|
@@ -147,6 +153,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
153
|
};
|
|
148
154
|
}) => void;
|
|
149
155
|
"click:submit": () => void;
|
|
156
|
+
"update:purchaseOrderTemplateIds": (templateIds: string[]) => void;
|
|
157
|
+
"update:wastageTemplateIds": (templateIds: string[]) => void;
|
|
150
158
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
151
159
|
search: import("vue").PropType<string>;
|
|
152
160
|
mode: {
|
|
@@ -224,6 +232,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
224
232
|
disabled: {
|
|
225
233
|
type: import("vue").PropType<boolean>;
|
|
226
234
|
};
|
|
235
|
+
purchaseOrderTemplateIds: {
|
|
236
|
+
type: import("vue").PropType<string[]>;
|
|
237
|
+
};
|
|
238
|
+
wastageTemplateIds: {
|
|
239
|
+
type: import("vue").PropType<string[]>;
|
|
240
|
+
};
|
|
227
241
|
}>> & Readonly<{
|
|
228
242
|
"onUpdate:modelValue"?: ((mv: {
|
|
229
243
|
isInactive?: boolean | null | undefined;
|
|
@@ -291,5 +305,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
291
305
|
};
|
|
292
306
|
}) => any) | undefined;
|
|
293
307
|
"onClick:submit"?: (() => any) | undefined;
|
|
308
|
+
"onUpdate:purchaseOrderTemplateIds"?: ((templateIds: string[]) => any) | undefined;
|
|
309
|
+
"onUpdate:wastageTemplateIds"?: ((templateIds: string[]) => any) | undefined;
|
|
294
310
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
295
311
|
export default _default;
|
|
@@ -3,8 +3,12 @@ export interface IngredientFormProps {
|
|
|
3
3
|
mode: FormMode;
|
|
4
4
|
modelValue: FdoInventorySku | null;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
purchaseOrderTemplateIds?: string[];
|
|
7
|
+
wastageTemplateIds?: string[];
|
|
6
8
|
}
|
|
7
9
|
export interface InventoryFormEvents {
|
|
8
10
|
(event: 'update:modelValue', mv: FdoInventorySku): void;
|
|
9
11
|
(event: 'click:submit'): void;
|
|
12
|
+
(event: 'update:purchaseOrderTemplateIds', templateIds: string[]): void;
|
|
13
|
+
(event: 'update:wastageTemplateIds', templateIds: string[]): void;
|
|
10
14
|
}
|
package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LocationConfigurationDialogProps } from './BusinessNetSuiteSideSheetProps';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LocationConfigurationDialogProps>, {}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
"update:setting": (setting: Omit<{
|
|
4
|
+
subsidiaryId?: string | null | undefined;
|
|
4
5
|
accessToken?: string | null | undefined;
|
|
5
6
|
syncedAt?: string | null | undefined;
|
|
6
7
|
restlet?: {
|
|
@@ -82,6 +83,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
83
|
onSubmit?: (() => any) | undefined;
|
|
83
84
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
84
85
|
"onUpdate:setting"?: ((setting: Omit<{
|
|
86
|
+
subsidiaryId?: string | null | undefined;
|
|
85
87
|
accessToken?: string | null | undefined;
|
|
86
88
|
syncedAt?: string | null | undefined;
|
|
87
89
|
restlet?: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface SupplierSupplyItemFieldProps {
|
|
2
2
|
modelValue: FdoSupplierSupplyItem[];
|
|
3
|
+
autoAppendToTemplates?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
6
|
modelValue: import("vue").PropType<{
|
|
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
22
|
};
|
|
22
23
|
skuId: string;
|
|
23
24
|
}[]>;
|
|
25
|
+
autoAppendToTemplates: import("vue").PropType<boolean>;
|
|
24
26
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
27
|
modelValue: import("vue").PropType<{
|
|
26
28
|
defaultCost: {
|
|
@@ -41,5 +43,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
43
|
};
|
|
42
44
|
skuId: string;
|
|
43
45
|
}[]>;
|
|
46
|
+
autoAppendToTemplates: import("vue").PropType<boolean>;
|
|
44
47
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
48
|
export default _default;
|