@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.30
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-BREfwtck.js → App-Brc7GX7l.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-CMRd7pcC.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-DoakDtFI.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BC3rjqKw.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-xKRvhEV5.js} +18 -22
- package/dist/ClosingDraftView-DlaVbAHy.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-DFxLuV8k.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-C4bL0O5L.js} +63 -69
- package/dist/IngredientsView-CfS8FgxA.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-aSAeFNtp.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-C7rIUyV1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-Ix92wSE6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js} +13 -14
- package/dist/ReceiveRequestView-BUyShiP2.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-c0XB2_P8.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-DNPNymCW.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-Cz0hgito.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +1227 -0
- package/dist/TransferTemplateView-B7kzPdfT.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BKWbaZfc.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-BgE3teyT.js} +94 -100
- package/dist/api/adjustment-template.d.ts +23 -0
- 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 +1 -1
- package/dist/app-Bkg0JUKr.js +84182 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-rPKr5T-H.js → decimal-CZ3lFF__.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-By_PNrnn.js} +23 -9
- package/dist/format-unit-display-ZlJT10zr.js +1207 -0
- package/dist/index-B4nO9Djl.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-DNajb8lV.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +69 -1
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-eaFF1izE.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- 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 +621 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3621 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -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 +25 -193
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- 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 +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- 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/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- 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/package.json +3 -3
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.js}
RENAMED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as g } from "./app-CwUHqg7h.js";
|
|
1
|
+
import { a as g, H as y } from "./app-Bkg0JUKr.js";
|
|
3
2
|
import { useDialog as C } from "@feedmepos/ui-library";
|
|
4
|
-
function
|
|
3
|
+
function P() {
|
|
5
4
|
const c = g(), u = C();
|
|
6
|
-
async function v(e, d,
|
|
7
|
-
const m = e.filter((t) => t.type === "SKU"), a = e.filter((t) => t.type === "RECIPE"), i = (
|
|
5
|
+
async function v(e, d, r, p = []) {
|
|
6
|
+
const m = e.filter((t) => t.type === "SKU"), a = e.filter((t) => t.type === "RECIPE"), i = (r ? c.skus.filter(
|
|
8
7
|
(t) => {
|
|
9
8
|
var n, o;
|
|
10
|
-
return !p.some((
|
|
9
|
+
return !p.some((s) => s === t._id) && t._id !== r && !((o = (n = t.convert) == null ? void 0 : n.inventoryBindings) != null && o.some((s) => s.id === r));
|
|
11
10
|
}
|
|
12
11
|
) : c.skus).map((t) => ({
|
|
13
12
|
label: t.name,
|
|
@@ -34,8 +33,8 @@ function E() {
|
|
|
34
33
|
}).onPrimary((t) => {
|
|
35
34
|
const n = [
|
|
36
35
|
...a,
|
|
37
|
-
...e.filter((o) => t.find((
|
|
38
|
-
...t.filter((o) => !e.find((
|
|
36
|
+
...e.filter((o) => t.find((s) => s._id === o.id)),
|
|
37
|
+
...t.filter((o) => !e.find((s) => s.id === o._id)).map((o) => ({
|
|
39
38
|
type: "SKU",
|
|
40
39
|
id: o._id,
|
|
41
40
|
amount: {
|
|
@@ -47,8 +46,8 @@ function E() {
|
|
|
47
46
|
d(n);
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
|
-
async function b(e, d,
|
|
51
|
-
const p = e.filter((i) => i.type === "SKU"), m = e.filter((i) => i.type === "RECIPE"), a = c.recipes.filter((i) => !
|
|
49
|
+
async function b(e, d, r = []) {
|
|
50
|
+
const p = e.filter((i) => i.type === "SKU"), m = e.filter((i) => i.type === "RECIPE"), a = c.recipes.filter((i) => !r.includes(i._id)).map((i) => ({
|
|
52
51
|
label: i.name,
|
|
53
52
|
value: i
|
|
54
53
|
})), f = a.filter((i) => m.find((l) => l.id === i.value._id)).map((i) => i.value);
|
|
@@ -91,5 +90,5 @@ function E() {
|
|
|
91
90
|
};
|
|
92
91
|
}
|
|
93
92
|
export {
|
|
94
|
-
|
|
93
|
+
P as u
|
|
95
94
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AdjustmentTemplateImportItemProps {
|
|
2
|
+
type: 'create' | 'update';
|
|
3
|
+
name: string;
|
|
4
|
+
locations?: FdoInventoryLocation[] | null | undefined;
|
|
5
|
+
items?: FdoAdjustmentTemplateItem[] | null | undefined;
|
|
6
|
+
errors: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { WorkBook, WorkSheet } from 'xlsx';
|
|
2
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
3
|
+
import type { FdoMenuV4 } from '@feedmepos/menu/entity';
|
|
4
|
+
export declare enum ReservedSheetNames {
|
|
5
|
+
Ingredients = "Ingredients"
|
|
6
|
+
}
|
|
7
|
+
export interface AdjustmentItemRow {
|
|
8
|
+
type?: string;
|
|
9
|
+
code?: string | null;
|
|
10
|
+
name?: string;
|
|
11
|
+
/** abbrev for base unit or measurement unit */
|
|
12
|
+
unit?: string;
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TemplateInfo {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
reference: string;
|
|
19
|
+
locations: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface ImportCreateResult {
|
|
22
|
+
type: 'create';
|
|
23
|
+
template: Omit<FdoAdjustmentTemplate, '_id'>;
|
|
24
|
+
excelSheetName: string;
|
|
25
|
+
errors: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface ImportUpdateResult {
|
|
28
|
+
type: 'update';
|
|
29
|
+
original: FdoAdjustmentTemplate;
|
|
30
|
+
template: FdoAdjustmentTemplate & RevisionIdMeta;
|
|
31
|
+
excelSheetName: string;
|
|
32
|
+
errors: string[];
|
|
33
|
+
}
|
|
34
|
+
export type ImportResult = {
|
|
35
|
+
invalidExcel: boolean;
|
|
36
|
+
invalidExcelMessage?: string;
|
|
37
|
+
importCreateResult: ImportCreateResult[];
|
|
38
|
+
importUpdateResult: ImportUpdateResult[];
|
|
39
|
+
};
|
|
40
|
+
export type ObjectWithIndex<T> = {
|
|
41
|
+
index: number;
|
|
42
|
+
data: T;
|
|
43
|
+
};
|
|
44
|
+
export declare const FakeUnit: FdoInventoryUnit;
|
|
45
|
+
export declare function templateItemToExcelRow(item: FdoAdjustmentTemplateItem, inventory: FdoInventory, menu?: FdoMenuV4 | null): AdjustmentItemRow[];
|
|
46
|
+
export type ColIdHeader<T> = {
|
|
47
|
+
id: keyof T;
|
|
48
|
+
name: string;
|
|
49
|
+
};
|
|
50
|
+
export declare function getExcelHeaders(): ColIdHeader<AdjustmentItemRow>[];
|
|
51
|
+
export declare function exportTemplates(templates: FdoAdjustmentTemplate[]): string;
|
|
52
|
+
export declare function exportImportTemplate(): string;
|
|
53
|
+
/** @returns empty array if for all locations */
|
|
54
|
+
export declare function extractLocations(locationRow: string[]): {
|
|
55
|
+
location?: FdoInventoryLocation;
|
|
56
|
+
errors: string[];
|
|
57
|
+
}[];
|
|
58
|
+
export declare function worksheetToTemplateMeta(sheet: WorkSheet): TemplateInfo;
|
|
59
|
+
export declare function worksheetToItemRow(sheet: WorkSheet): ObjectWithIndex<AdjustmentItemRow>[];
|
|
60
|
+
export declare function getItemToCreateUpdate(workbook: WorkBook): ImportResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WastageTemplateDialogProps } from './props';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<WastageTemplateDialogProps>>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:show": (show: boolean) => void;
|
|
8
|
+
submitted: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<WastageTemplateDialogProps>>> & Readonly<{
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: () => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|