@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
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-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.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 +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- 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/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -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/router/name.d.ts +1 -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/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -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/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- 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 +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- 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/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- 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-form/composables/use-transfer-template-items.d.ts +1 -1
- 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 +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- 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 -247
- 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-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -1,9 +1,10 @@
|
|
|
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>;
|
|
6
6
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
7
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
7
8
|
init(): Promise<void>;
|
|
8
9
|
suppliers: import("vue").ComputedRef<{
|
|
9
10
|
phoneNumber?: string | null | undefined;
|
|
@@ -260,11 +261,51 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
260
261
|
};
|
|
261
262
|
registrationNumber: string;
|
|
262
263
|
}[]>;
|
|
263
|
-
|
|
264
|
+
supplierById: import("vue").ComputedRef<{
|
|
265
|
+
[key: string]: {
|
|
266
|
+
phoneNumber?: string | null | undefined;
|
|
267
|
+
email?: string | null | undefined;
|
|
268
|
+
_rev?: string | null | undefined;
|
|
269
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
270
|
+
contactName?: string | null | undefined;
|
|
271
|
+
supplyItems?: {
|
|
272
|
+
defaultCost: {
|
|
273
|
+
measurement?: {
|
|
274
|
+
id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
abbrev: string;
|
|
277
|
+
conversion: {
|
|
278
|
+
amount: number;
|
|
279
|
+
precision: number;
|
|
280
|
+
};
|
|
281
|
+
} | null | undefined;
|
|
282
|
+
costPerUnit: {
|
|
283
|
+
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";
|
|
284
|
+
amount: number;
|
|
285
|
+
precision: number;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
skuId: string;
|
|
289
|
+
}[] | null | undefined;
|
|
290
|
+
_id: string;
|
|
291
|
+
name: string;
|
|
292
|
+
address: {
|
|
293
|
+
line2?: string | null | undefined;
|
|
294
|
+
line1: string;
|
|
295
|
+
state: string;
|
|
296
|
+
city: string;
|
|
297
|
+
postcode: string;
|
|
298
|
+
country: string;
|
|
299
|
+
};
|
|
300
|
+
registrationNumber: string;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
}, "locationSuppliers" | "businessSuppliers">>, Pick<{
|
|
264
304
|
readSuppliers(): Promise<void>;
|
|
265
305
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
266
306
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
267
307
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
308
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
268
309
|
init(): Promise<void>;
|
|
269
310
|
suppliers: import("vue").ComputedRef<{
|
|
270
311
|
phoneNumber?: string | null | undefined;
|
|
@@ -521,11 +562,51 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
521
562
|
};
|
|
522
563
|
registrationNumber: string;
|
|
523
564
|
}[]>;
|
|
524
|
-
|
|
565
|
+
supplierById: import("vue").ComputedRef<{
|
|
566
|
+
[key: string]: {
|
|
567
|
+
phoneNumber?: string | null | undefined;
|
|
568
|
+
email?: string | null | undefined;
|
|
569
|
+
_rev?: string | null | undefined;
|
|
570
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
571
|
+
contactName?: string | null | undefined;
|
|
572
|
+
supplyItems?: {
|
|
573
|
+
defaultCost: {
|
|
574
|
+
measurement?: {
|
|
575
|
+
id: string;
|
|
576
|
+
name: string;
|
|
577
|
+
abbrev: string;
|
|
578
|
+
conversion: {
|
|
579
|
+
amount: number;
|
|
580
|
+
precision: number;
|
|
581
|
+
};
|
|
582
|
+
} | null | undefined;
|
|
583
|
+
costPerUnit: {
|
|
584
|
+
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";
|
|
585
|
+
amount: number;
|
|
586
|
+
precision: number;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
skuId: string;
|
|
590
|
+
}[] | null | undefined;
|
|
591
|
+
_id: string;
|
|
592
|
+
name: string;
|
|
593
|
+
address: {
|
|
594
|
+
line2?: string | null | undefined;
|
|
595
|
+
line1: string;
|
|
596
|
+
state: string;
|
|
597
|
+
city: string;
|
|
598
|
+
postcode: string;
|
|
599
|
+
country: string;
|
|
600
|
+
};
|
|
601
|
+
registrationNumber: string;
|
|
602
|
+
};
|
|
603
|
+
}>;
|
|
604
|
+
}, "suppliers" | "supplierById">, Pick<{
|
|
525
605
|
readSuppliers(): Promise<void>;
|
|
526
606
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
527
607
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
528
608
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
609
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
529
610
|
init(): Promise<void>;
|
|
530
611
|
suppliers: import("vue").ComputedRef<{
|
|
531
612
|
phoneNumber?: string | null | undefined;
|
|
@@ -782,4 +863,43 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
782
863
|
};
|
|
783
864
|
registrationNumber: string;
|
|
784
865
|
}[]>;
|
|
785
|
-
|
|
866
|
+
supplierById: import("vue").ComputedRef<{
|
|
867
|
+
[key: string]: {
|
|
868
|
+
phoneNumber?: string | null | undefined;
|
|
869
|
+
email?: string | null | undefined;
|
|
870
|
+
_rev?: string | null | undefined;
|
|
871
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
872
|
+
contactName?: string | null | undefined;
|
|
873
|
+
supplyItems?: {
|
|
874
|
+
defaultCost: {
|
|
875
|
+
measurement?: {
|
|
876
|
+
id: string;
|
|
877
|
+
name: string;
|
|
878
|
+
abbrev: string;
|
|
879
|
+
conversion: {
|
|
880
|
+
amount: number;
|
|
881
|
+
precision: number;
|
|
882
|
+
};
|
|
883
|
+
} | null | undefined;
|
|
884
|
+
costPerUnit: {
|
|
885
|
+
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";
|
|
886
|
+
amount: number;
|
|
887
|
+
precision: number;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
skuId: string;
|
|
891
|
+
}[] | null | undefined;
|
|
892
|
+
_id: string;
|
|
893
|
+
name: string;
|
|
894
|
+
address: {
|
|
895
|
+
line2?: string | null | undefined;
|
|
896
|
+
line1: string;
|
|
897
|
+
state: string;
|
|
898
|
+
city: string;
|
|
899
|
+
postcode: string;
|
|
900
|
+
country: string;
|
|
901
|
+
};
|
|
902
|
+
registrationNumber: string;
|
|
903
|
+
};
|
|
904
|
+
}>;
|
|
905
|
+
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "importSuppliers" | "init">>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-enter-active[data-v-
|
|
1
|
+
.v-enter-active[data-v-0fe980e2],.v-leave-active[data-v-0fe980e2]{transition:opacity .1s ease}.v-enter-from[data-v-0fe980e2],.v-leave-to[data-v-0fe980e2]{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-1605e495],.fade-leave-active[data-v-1605e495]{transition:opacity .25s ease}.fade-enter[data-v-1605e495],.fade-leave-to[data-v-1605e495]{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-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{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-e121b2c1]{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-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]: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,77 @@
|
|
|
1
|
+
import { o as m, i as u, h as y, Z as b, $ as v } from "./app-B4pi48sM.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 a = m((t, p) => {
|
|
6
|
+
function i() {
|
|
7
|
+
var o;
|
|
8
|
+
const s = c(), e = u(), r = e.businessLevel, n = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
|
+
return r ? n : S;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
async readSuppliers() {
|
|
13
|
+
const s = i(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
|
+
return await p.get(e);
|
|
15
|
+
},
|
|
16
|
+
async readLocationSuppliers() {
|
|
17
|
+
const e = u().currentLocation.dbName, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
18
|
+
return await p.get(r);
|
|
19
|
+
},
|
|
20
|
+
async readBusinessSuppliers() {
|
|
21
|
+
var n;
|
|
22
|
+
const e = `business_${((n = c().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
23
|
+
return await p.get(r);
|
|
24
|
+
},
|
|
25
|
+
async createSupplier(s) {
|
|
26
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
|
+
return await p.post(r, s);
|
|
28
|
+
},
|
|
29
|
+
async importSuppliers(s) {
|
|
30
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
|
+
return await p.post(r, s);
|
|
32
|
+
},
|
|
33
|
+
async updateSupplier(s) {
|
|
34
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
|
+
return await p.put(r, s);
|
|
36
|
+
},
|
|
37
|
+
async deleteSupplier(s) {
|
|
38
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
39
|
+
return await p.delete(r, s);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}), f = w("supplier", () => {
|
|
43
|
+
const t = l(new Array()), p = l(new Array()), i = d(() => [...t.value, ...p.value]), s = d(() => y(i.value, "_id"));
|
|
44
|
+
return {
|
|
45
|
+
async readSuppliers() {
|
|
46
|
+
const e = a();
|
|
47
|
+
t.value = await e.readLocationSuppliers(), p.value = await e.readBusinessSuppliers();
|
|
48
|
+
},
|
|
49
|
+
async createSupplier(e) {
|
|
50
|
+
await a().createSupplier(e);
|
|
51
|
+
},
|
|
52
|
+
async updateSupplier(e) {
|
|
53
|
+
await a().updateSupplier(e);
|
|
54
|
+
},
|
|
55
|
+
async deleteSupplier(e) {
|
|
56
|
+
await a().deleteSupplier(e);
|
|
57
|
+
},
|
|
58
|
+
async importSuppliers(e) {
|
|
59
|
+
await a().importSuppliers(e);
|
|
60
|
+
},
|
|
61
|
+
async init() {
|
|
62
|
+
const e = b();
|
|
63
|
+
try {
|
|
64
|
+
await this.readSuppliers();
|
|
65
|
+
} catch (r) {
|
|
66
|
+
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
suppliers: i,
|
|
70
|
+
locationSuppliers: t,
|
|
71
|
+
businessSuppliers: p,
|
|
72
|
+
supplierById: s
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
f as u
|
|
77
|
+
};
|