@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1
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-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- 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/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -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/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -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 +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -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 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- 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 +1913 -53
- 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 +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- 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 +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.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.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- 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 +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- 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 -251
- 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/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.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">>;
|
|
@@ -9,10 +9,13 @@ export declare function useWarehouseStore(): {
|
|
|
9
9
|
url?: string | null | undefined;
|
|
10
10
|
expiredAt?: string | null | undefined;
|
|
11
11
|
agentId?: string | null | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
restaurantTagGroups?: {
|
|
13
|
+
name: string;
|
|
14
|
+
id: string;
|
|
15
|
+
tags: {
|
|
16
|
+
name: string;
|
|
17
|
+
id: string;
|
|
18
|
+
}[];
|
|
16
19
|
}[] | null | undefined;
|
|
17
20
|
pf_agent?: {
|
|
18
21
|
clickupId?: string | null | undefined;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.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)}.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-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}.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)}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { j as m, u, i as y, p as b, q as v } from "./app-GUbzqEtW.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
|
+
};
|