@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.41
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/{ApprovalView-xF73Z1jN.js → ApprovalView-DKqwRFlF.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-CtMSqEuE.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-DCLNF1PL.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-6ndQuHeA.js} +1 -1
- package/dist/ClosingTemplateView-BPrDQ_8-.js +1688 -0
- package/dist/FmDroppableField-DQFPEiJn.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js +359 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js +51 -0
- package/dist/IngredientsView-B1jGkWYN.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-Bu0waSjB.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-DTQViYuX.js} +7 -7
- package/dist/ReceiveRequestView-CNRixgQu.js +4069 -0
- package/dist/RecipeView-HStPC5pE.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-JO3NtkX9.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-gtaS4K3U.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js +1146 -0
- package/dist/TransferTemplateView-C0pjLfbz.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-dbInWUk4.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-BlTBvLF0.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/{app-w8TOQVZc.js → app-TB3IWuaU.js} +24520 -23671
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/{decimal-C4q7UMfr.js → decimal-BRAYgPnN.js} +1 -1
- package/dist/defineDeepModel-DrEk5Fhq.js +13 -0
- package/dist/format-time-from-id-kpVYfVQb.js +15 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-ZMNa__2l.js +348 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +85 -0
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/netsuite.d.ts +69 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/style.css +1 -1
- package/dist/supplier-CJcqHpaM.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-DyD24laW.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BggStaH1.js → xlsx-Dd5ckm6-.js} +1525 -1525
- package/dist/xlsx.util-qlqvEcJz.js +78 -0
- package/package.json +7 -5
- package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
- package/dist/IngredientsView-DnwwQJTN.js +0 -1758
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
- package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
- package/dist/RecipeView-BHkTgm5H.js +0 -581
- package/dist/StockView-iczCFYxn.js +0 -1892
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
- package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
- package/dist/defineDeepModel-BOApqV24.js +0 -13
- package/dist/format-time-from-id-Cafjo8fn.js +0 -15
- package/dist/id-to-date-CtSHSVJF.js +0 -30
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
- package/dist/supplier-CM-vZ4bQ.js +0 -69
- package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
- package/dist/xlsx.util-CqlYZLKW.js +0 -109
- /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { WorkBook, WorkSheet } from 'xlsx';
|
|
2
|
+
import { PurchaseOrderTransactionType } from '@/views/receive-request/constants/purchase-order-transaction-type';
|
|
3
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
4
|
+
export declare enum ReservedSheetNames {
|
|
5
|
+
Source = "Source",
|
|
6
|
+
Destination = "Destination",
|
|
7
|
+
Ingredient = "Ingredient"
|
|
8
|
+
}
|
|
9
|
+
export interface TemplateItemRow {
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
/** abbrev for base unit or measurement unit */
|
|
13
|
+
unit: string;
|
|
14
|
+
defaultQuantity: number;
|
|
15
|
+
minimumQuantity: number;
|
|
16
|
+
maximumQuantity: number;
|
|
17
|
+
quantityStep: number;
|
|
18
|
+
}
|
|
19
|
+
export interface TemplateInfo {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
type: PurchaseOrderTransactionType;
|
|
23
|
+
transferFrom: string;
|
|
24
|
+
reference: string;
|
|
25
|
+
remark: string;
|
|
26
|
+
locations: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface ImportCreateResult {
|
|
29
|
+
type: 'create';
|
|
30
|
+
template: Omit<FdoPurchaseOrderTemplate, '_id'>;
|
|
31
|
+
excelSheetName: string;
|
|
32
|
+
errors: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface ImportUpdateResult {
|
|
35
|
+
type: 'update';
|
|
36
|
+
original: FdoPurchaseOrderTemplate;
|
|
37
|
+
template: FdoPurchaseOrderTemplate & RevisionIdMeta;
|
|
38
|
+
excelSheetName: string;
|
|
39
|
+
errors: string[];
|
|
40
|
+
}
|
|
41
|
+
export type ImportResult = {
|
|
42
|
+
invalidExcel: boolean;
|
|
43
|
+
invalidExcelMessage?: string;
|
|
44
|
+
importCreateResult: ImportCreateResult[];
|
|
45
|
+
importUpdateResult: ImportUpdateResult[];
|
|
46
|
+
};
|
|
47
|
+
export type ObjectWithIndex<T> = {
|
|
48
|
+
index: number;
|
|
49
|
+
data: T;
|
|
50
|
+
};
|
|
51
|
+
export declare const FakeUnit: FdoInventoryUnit;
|
|
52
|
+
export declare function templateItemToExcelRow(item: FdoPurchaseOrderTemplateItem): TemplateItemRow;
|
|
53
|
+
export type ColIdHeader<T> = {
|
|
54
|
+
id: keyof T;
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function getExcelHeaders(): ColIdHeader<TemplateItemRow>[];
|
|
58
|
+
export declare function exportTemplates(templates: FdoPurchaseOrderTemplate[]): string;
|
|
59
|
+
export declare function exportImportTemplate(): string;
|
|
60
|
+
export declare function extractTransferFrom(transferFrom: string, transferType: PurchaseOrderTransactionType): {
|
|
61
|
+
from?: FdoPurchaseOrderSupplier;
|
|
62
|
+
errors: string[];
|
|
63
|
+
};
|
|
64
|
+
/** @returns empty array if for all locations */
|
|
65
|
+
export declare function extractLocations(locationRow: string[]): {
|
|
66
|
+
location?: FdoInventoryLocation;
|
|
67
|
+
errors: string[];
|
|
68
|
+
}[];
|
|
69
|
+
export declare function worksheetToTemplateMeta(sheet: WorkSheet): TemplateInfo;
|
|
70
|
+
export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<TemplateItemRow>[];
|
|
71
|
+
export declare function excelTemplateItemToTemplateItem(row: TemplateItemRow, index: number, parsedContent: ObjectWithIndex<TemplateItemRow>[]): {
|
|
72
|
+
index: number;
|
|
73
|
+
errors: string[];
|
|
74
|
+
templateItem?: FdoPurchaseOrderTemplateItem;
|
|
75
|
+
};
|
|
76
|
+
export declare function getSkuToCreateUpdate(workbook: WorkBook): ImportResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeDeletedSkus<T extends FdoPurchaseOrderTemplate>(template: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function templateItemError(item: FdoPurchaseOrderTemplateItem): boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UnitDialogProps } from '../components/unit-dialog/UnitDialogProps';
|
|
2
|
-
export declare const useUnitForm: import("pinia").StoreDefinition<"unitForm", Pick<{
|
|
2
|
+
export declare const useUnitForm: import("pinia").StoreDefinition<"unitForm", import("pinia")._UnwrapAll<Pick<{
|
|
3
3
|
createUnit: () => void;
|
|
4
4
|
updateUnit: (unitToUpdate: FdoInventoryUnit) => Promise<void>;
|
|
5
5
|
deleteUnit: (unit: FdoInventoryUnit) => void;
|
|
6
6
|
unitDialogProps: import("vue").Ref<UnitDialogProps | undefined, UnitDialogProps | undefined>;
|
|
7
7
|
unitViewLoading: import("vue").Ref<boolean, boolean>;
|
|
8
|
-
}, "unitDialogProps" | "unitViewLoading"
|
|
8
|
+
}, "unitDialogProps" | "unitViewLoading">>, Pick<{
|
|
9
9
|
createUnit: () => void;
|
|
10
10
|
updateUnit: (unitToUpdate: FdoInventoryUnit) => Promise<void>;
|
|
11
11
|
deleteUnit: (unit: FdoInventoryUnit) => void;
|