@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.40
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-JOsQBu1z.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-DG2ZolH1.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-B7h_iST8.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-BToh6gcG.js} +1 -1
- package/dist/ClosingTemplateView-BwMJAxuz.js +1688 -0
- package/dist/FmDroppableField-CJNAT3h2.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-4NHQdjz7.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cc_P0kss.js +364 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMOalXUS.js +51 -0
- package/dist/IngredientsView-ChnCqdWi.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-NWkc9PLW.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQW6HYyD.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BQqcpZIJ.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-BvED8ZbQ.js} +7 -7
- package/dist/ReceiveRequestView-DdxBaqmU.js +4069 -0
- package/dist/RecipeView-YdSRy_yP.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-WF5z4dTF.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-H2Vi5lSs.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D48gSqHW.js +1137 -0
- package/dist/TransferTemplateView-DeT32cat.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-qD9JSdHT.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-C19Dd53y.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-DKE_n9Mo.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-veoPLYim.js} +1 -1
- package/dist/defineDeepModel-u6t3hXU9.js +13 -0
- package/dist/format-time-from-id-8gjg5B98.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-CIDEpjJB.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-DLcmVScz.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-CdJVJikY.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-CrKrCGZz.js} +1525 -1525
- package/dist/xlsx.util-Bcpkvw1Z.js +78 -0
- package/package.json +5 -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,69 @@
|
|
|
1
|
+
export interface NetSuiteState {
|
|
2
|
+
setting: Omit<FdoNetSuiteSetting, 'realm' | 'accessToken'>;
|
|
3
|
+
}
|
|
4
|
+
export declare function useNetSuiteStore(): {
|
|
5
|
+
readonly isEnabled: boolean;
|
|
6
|
+
readonly state: {
|
|
7
|
+
setting: {
|
|
8
|
+
_id: string;
|
|
9
|
+
enable: boolean;
|
|
10
|
+
items: {
|
|
11
|
+
id: string;
|
|
12
|
+
netSuiteId: string;
|
|
13
|
+
unitTypeId: string;
|
|
14
|
+
unitOfMeasureId: string;
|
|
15
|
+
subsidiaryIds: string[];
|
|
16
|
+
}[];
|
|
17
|
+
syncedAt?: string | null | undefined;
|
|
18
|
+
locations: {
|
|
19
|
+
type: "restaurant" | "warehouse";
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
netSuiteId: string;
|
|
23
|
+
subsidiaryId: string;
|
|
24
|
+
}[];
|
|
25
|
+
units: {
|
|
26
|
+
id: string;
|
|
27
|
+
measurements: {
|
|
28
|
+
id: string;
|
|
29
|
+
netSuiteId: string;
|
|
30
|
+
}[];
|
|
31
|
+
netSuiteId: string;
|
|
32
|
+
}[];
|
|
33
|
+
subsidiaries: {
|
|
34
|
+
parentId?: string | undefined;
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
country: string;
|
|
38
|
+
currency: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
|
|
43
|
+
getLocationSubsidiary(netSuiteLocationId?: string | null): {
|
|
44
|
+
id: string | undefined;
|
|
45
|
+
name: string;
|
|
46
|
+
fullName: string;
|
|
47
|
+
};
|
|
48
|
+
currentLocationSubsidiary(): {
|
|
49
|
+
id?: string;
|
|
50
|
+
name: string;
|
|
51
|
+
fullName: string;
|
|
52
|
+
};
|
|
53
|
+
readonly subsidiaryOptions: {
|
|
54
|
+
label: string;
|
|
55
|
+
value: FdoPurchaseOrderSubsidiaryNetSuiteSetting;
|
|
56
|
+
}[];
|
|
57
|
+
getAvailableItems(subsidiaryId?: string | null): string[];
|
|
58
|
+
readSetting(): Promise<void>;
|
|
59
|
+
};
|
|
60
|
+
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
61
|
+
fullName?: string;
|
|
62
|
+
depth: number;
|
|
63
|
+
children: FdoNetSuiteSubsidiaryWithChildren[];
|
|
64
|
+
};
|
|
65
|
+
export declare function buildSubsidiaryTree(data: FdoNetSuiteSubsidiary[], subsidiaryId?: string | null): {
|
|
66
|
+
tree: FdoNetSuiteSubsidiaryWithChildren[];
|
|
67
|
+
available: string[];
|
|
68
|
+
flat: FdoNetSuiteSubsidiaryWithChildren[];
|
|
69
|
+
};
|
package/dist/stores/route.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
export interface RouteStore {
|
|
2
|
-
activeRoute: string;
|
|
3
|
-
activeRouteName: string;
|
|
4
2
|
loadingHookInstalled: boolean;
|
|
5
3
|
isLoading: boolean;
|
|
6
4
|
}
|
|
7
5
|
export declare function useRouteStore(): {
|
|
8
|
-
activeRoute: string;
|
|
9
|
-
activeRouteName: string;
|
|
10
6
|
readonly isLoading: boolean;
|
|
11
|
-
init(): void;
|
|
12
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreateType } from '@/api/type';
|
|
2
|
-
export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier", Pick<{
|
|
2
|
+
export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier", import("pinia")._UnwrapAll<Pick<{
|
|
3
3
|
readSuppliers(): Promise<void>;
|
|
4
4
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
5
5
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
@@ -260,7 +260,46 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
260
260
|
};
|
|
261
261
|
registrationNumber: string;
|
|
262
262
|
}[]>;
|
|
263
|
-
|
|
263
|
+
supplierById: import("vue").ComputedRef<{
|
|
264
|
+
[key: string]: {
|
|
265
|
+
phoneNumber?: string | null | undefined;
|
|
266
|
+
email?: string | null | undefined;
|
|
267
|
+
_rev?: string | null | undefined;
|
|
268
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
269
|
+
contactName?: string | null | undefined;
|
|
270
|
+
supplyItems?: {
|
|
271
|
+
defaultCost: {
|
|
272
|
+
measurement?: {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
abbrev: string;
|
|
276
|
+
conversion: {
|
|
277
|
+
amount: number;
|
|
278
|
+
precision: number;
|
|
279
|
+
};
|
|
280
|
+
} | null | undefined;
|
|
281
|
+
costPerUnit: {
|
|
282
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
283
|
+
amount: number;
|
|
284
|
+
precision: number;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
skuId: string;
|
|
288
|
+
}[] | null | undefined;
|
|
289
|
+
_id: string;
|
|
290
|
+
name: string;
|
|
291
|
+
address: {
|
|
292
|
+
line2?: string | null | undefined;
|
|
293
|
+
line1: string;
|
|
294
|
+
state: string;
|
|
295
|
+
city: string;
|
|
296
|
+
postcode: string;
|
|
297
|
+
country: string;
|
|
298
|
+
};
|
|
299
|
+
registrationNumber: string;
|
|
300
|
+
};
|
|
301
|
+
}>;
|
|
302
|
+
}, "locationSuppliers" | "businessSuppliers">>, Pick<{
|
|
264
303
|
readSuppliers(): Promise<void>;
|
|
265
304
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
266
305
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
@@ -521,7 +560,46 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
521
560
|
};
|
|
522
561
|
registrationNumber: string;
|
|
523
562
|
}[]>;
|
|
524
|
-
|
|
563
|
+
supplierById: import("vue").ComputedRef<{
|
|
564
|
+
[key: string]: {
|
|
565
|
+
phoneNumber?: string | null | undefined;
|
|
566
|
+
email?: string | null | undefined;
|
|
567
|
+
_rev?: string | null | undefined;
|
|
568
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
569
|
+
contactName?: string | null | undefined;
|
|
570
|
+
supplyItems?: {
|
|
571
|
+
defaultCost: {
|
|
572
|
+
measurement?: {
|
|
573
|
+
id: string;
|
|
574
|
+
name: string;
|
|
575
|
+
abbrev: string;
|
|
576
|
+
conversion: {
|
|
577
|
+
amount: number;
|
|
578
|
+
precision: number;
|
|
579
|
+
};
|
|
580
|
+
} | null | undefined;
|
|
581
|
+
costPerUnit: {
|
|
582
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
583
|
+
amount: number;
|
|
584
|
+
precision: number;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
skuId: string;
|
|
588
|
+
}[] | null | undefined;
|
|
589
|
+
_id: string;
|
|
590
|
+
name: string;
|
|
591
|
+
address: {
|
|
592
|
+
line2?: string | null | undefined;
|
|
593
|
+
line1: string;
|
|
594
|
+
state: string;
|
|
595
|
+
city: string;
|
|
596
|
+
postcode: string;
|
|
597
|
+
country: string;
|
|
598
|
+
};
|
|
599
|
+
registrationNumber: string;
|
|
600
|
+
};
|
|
601
|
+
}>;
|
|
602
|
+
}, "suppliers" | "supplierById">, Pick<{
|
|
525
603
|
readSuppliers(): Promise<void>;
|
|
526
604
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
527
605
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
@@ -782,4 +860,43 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
782
860
|
};
|
|
783
861
|
registrationNumber: string;
|
|
784
862
|
}[]>;
|
|
863
|
+
supplierById: import("vue").ComputedRef<{
|
|
864
|
+
[key: string]: {
|
|
865
|
+
phoneNumber?: string | null | undefined;
|
|
866
|
+
email?: string | null | undefined;
|
|
867
|
+
_rev?: string | null | undefined;
|
|
868
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
869
|
+
contactName?: string | null | undefined;
|
|
870
|
+
supplyItems?: {
|
|
871
|
+
defaultCost: {
|
|
872
|
+
measurement?: {
|
|
873
|
+
id: string;
|
|
874
|
+
name: string;
|
|
875
|
+
abbrev: string;
|
|
876
|
+
conversion: {
|
|
877
|
+
amount: number;
|
|
878
|
+
precision: number;
|
|
879
|
+
};
|
|
880
|
+
} | null | undefined;
|
|
881
|
+
costPerUnit: {
|
|
882
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
883
|
+
amount: number;
|
|
884
|
+
precision: number;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
skuId: string;
|
|
888
|
+
}[] | null | undefined;
|
|
889
|
+
_id: string;
|
|
890
|
+
name: string;
|
|
891
|
+
address: {
|
|
892
|
+
line2?: string | null | undefined;
|
|
893
|
+
line1: string;
|
|
894
|
+
state: string;
|
|
895
|
+
city: string;
|
|
896
|
+
postcode: string;
|
|
897
|
+
country: string;
|
|
898
|
+
};
|
|
899
|
+
registrationNumber: string;
|
|
900
|
+
};
|
|
901
|
+
}>;
|
|
785
902
|
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "init">>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-enter-active[data-v-
|
|
1
|
+
.v-enter-active[data-v-903bd130],.v-leave-active[data-v-903bd130]{transition:opacity .1s ease}.v-enter-from[data-v-903bd130],.v-leave-to[data-v-903bd130]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-8b1d7609],.fade-leave-active[data-v-8b1d7609]{transition:opacity .25s ease}.fade-enter[data-v-8b1d7609],.fade-leave-to[data-v-8b1d7609]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-311b22a0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-311b22a0]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-311b22a0]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-311b22a0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-311b22a0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-311b22a0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-311b22a0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-311b22a0]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { n as y, i as u, h as m, Z as b, $ as v } from "./app-DKE_n9Mo.js";
|
|
2
|
+
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
+
import { defineStore as w } from "pinia";
|
|
4
|
+
import { ref as l, computed as d } from "vue";
|
|
5
|
+
const p = y((t, a) => {
|
|
6
|
+
function n() {
|
|
7
|
+
var o;
|
|
8
|
+
const s = c(), e = u(), r = e.businessLevel, i = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
|
+
return r ? i : S;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
async readSuppliers() {
|
|
13
|
+
const s = n(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
|
+
return await a.get(e);
|
|
15
|
+
},
|
|
16
|
+
async readLocationSuppliers() {
|
|
17
|
+
const e = u().currentLocation.dbName, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
18
|
+
return await a.get(r);
|
|
19
|
+
},
|
|
20
|
+
async readBusinessSuppliers() {
|
|
21
|
+
var i;
|
|
22
|
+
const e = `business_${((i = c().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
23
|
+
return await a.get(r);
|
|
24
|
+
},
|
|
25
|
+
async createSupplier(s) {
|
|
26
|
+
const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
|
+
return await a.post(r, s);
|
|
28
|
+
},
|
|
29
|
+
async updateSupplier(s) {
|
|
30
|
+
const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
31
|
+
return await a.put(r, s);
|
|
32
|
+
},
|
|
33
|
+
async deleteSupplier(s) {
|
|
34
|
+
const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
|
+
return await a.delete(r, s);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}), f = w("supplier", () => {
|
|
39
|
+
const t = l(new Array()), a = l(new Array()), n = d(() => [...t.value, ...a.value]), s = d(() => m(n.value, "_id"));
|
|
40
|
+
return {
|
|
41
|
+
async readSuppliers() {
|
|
42
|
+
const e = p();
|
|
43
|
+
t.value = await e.readLocationSuppliers(), a.value = await e.readBusinessSuppliers();
|
|
44
|
+
},
|
|
45
|
+
async createSupplier(e) {
|
|
46
|
+
await p().createSupplier(e);
|
|
47
|
+
},
|
|
48
|
+
async updateSupplier(e) {
|
|
49
|
+
await p().updateSupplier(e);
|
|
50
|
+
},
|
|
51
|
+
async deleteSupplier(e) {
|
|
52
|
+
await p().deleteSupplier(e);
|
|
53
|
+
},
|
|
54
|
+
async init() {
|
|
55
|
+
const e = b();
|
|
56
|
+
try {
|
|
57
|
+
await this.readSuppliers();
|
|
58
|
+
} catch (r) {
|
|
59
|
+
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
suppliers: n,
|
|
63
|
+
locationSuppliers: t,
|
|
64
|
+
businessSuppliers: a,
|
|
65
|
+
supplierById: s
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
f as u
|
|
70
|
+
};
|