@feedmepos/mf-inventory-portal 1.2.11-dev.2 → 1.2.12-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.
Files changed (70) hide show
  1. package/dist/{App-7THD1njR.js → App-DAWBJNxz.js} +44 -40
  2. package/dist/{ApprovalView-DMEJRr68.js → ApprovalView-B2WUwSN4.js} +30 -30
  3. package/dist/{BindingsDialog-BNzLPDnk.js → BindingsDialog-C3OOcB8g.js} +2 -2
  4. package/dist/{BindingsPicker-b6IVAFK_.js → BindingsPicker-R3Zz0fWB.js} +1 -1
  5. package/dist/{BindingsTable-C-4XGO_N.js → BindingsTable-B46C8p7M.js} +1 -1
  6. package/dist/{ClosingDraftView-DVTloUym.js → ClosingDraftView-a_QhmaM4.js} +180 -180
  7. package/dist/{ClosingTemplateView-C-eHKV0N.js → ClosingTemplateView-CEVmIsVw.js} +3 -3
  8. package/dist/{DeliveryOrderPrintPreview-ChIV_Wxd.js → DeliveryOrderPrintPreview-BeQFF6sn.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DPkGmSYU.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DIG9NwPj.js} +3 -3
  10. package/dist/{FmMultiselectDialog-aRqxOX4h.js → FmMultiselectDialog-BunyF2O-.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-_MPI8AAx.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bx0dzfHO.js} +39 -39
  12. package/dist/ImportView-CwBeBbXz.js +1220 -0
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BiHvGyAN.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CfwprwJN.js} +1 -1
  14. package/dist/{IngredientGroupView-DtExVKaV.js → IngredientGroupView-CIPTj0hf.js} +16 -17
  15. package/dist/IngredientsView-BwBaeLtw.js +2240 -0
  16. package/dist/{IntegrationView-LnHPQMs8.js → IntegrationView-CvRD-5O6.js} +57 -57
  17. package/dist/{InventoryBindingForm-Cm9TOWWe.js → InventoryBindingForm-DLQTH1di.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DwGz8gLR.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-XvIklIYw.js} +31 -31
  19. package/dist/{InventoryBindingSummary-BQ6ysLf9.js → InventoryBindingSummary-BGFSPQIw.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B_ASTDtr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B3J0i5IU.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DdFHN7A8.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CyMRTB5L.js} +1 -1
  22. package/dist/{PublishView-Dg_U3hW1.js → PublishView-7g0bx6KO.js} +16 -16
  23. package/dist/{PurchaseOrderPrintPreview-DnwHiTGF.js → PurchaseOrderPrintPreview-LEfLcjkd.js} +1 -1
  24. package/dist/{ReceiveRequestView-CIzZf6q8.js → ReceiveRequestView-DUNfHRGf.js} +193 -194
  25. package/dist/RecipeView-XzqGQg_a.js +636 -0
  26. package/dist/{StockView-D6RmCUZZ.js → StockView-vZr9etBj.js} +165 -166
  27. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BAcaiBqq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3_csD6uU.js} +1 -1
  28. package/dist/{SupplierView-DmJXuznz.js → SupplierView-CUORFWJW.js} +52 -52
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-9wk6mQHT.js → TransferDetails.vue_vue_type_script_setup_true_lang-DhXoNkss.js} +5 -5
  30. package/dist/{TransferTemplateView-wcXRmuoK.js → TransferTemplateView-DeliKkYY.js} +97 -97
  31. package/dist/UnitView-B4NCl6jJ.js +674 -0
  32. package/dist/{WarehouseView-643lOh1p.js → WarehouseView-jLGGlnwV.js} +32 -32
  33. package/dist/api/inventory.d.ts +306 -0
  34. package/dist/{app-CsyUwsea.js → app-DJcCTZjT.js} +7663 -7341
  35. package/dist/app.d.ts +169 -0
  36. package/dist/app.js +1 -1
  37. package/dist/{closing-template-DaHVCTUh.js → closing-template-hM43IpP-.js} +1 -1
  38. package/dist/{decimal-DveC9JMl.js → decimal-BVu2HlCS.js} +1 -1
  39. package/dist/{format-unit-display-_9FgoZom.js → format-unit-display-C-M_AirC.js} +25 -25
  40. package/dist/helper/number.d.ts +1 -0
  41. package/dist/import-export.helper-C05Vl6i-.js +243 -0
  42. package/dist/{index-ChAOZMz9.js → index-CNQtmSfJ.js} +1 -1
  43. package/dist/{index-CZmm0Xbi.js → index-v6hU4gAy.js} +1 -1
  44. package/dist/{purchase-order-template-D2kAwN4O.js → purchase-order-template-BBCEFnbo.js} +1 -1
  45. package/dist/router/name.d.ts +1 -0
  46. package/dist/{stock-CL0X5Bnh.js → stock-CK3LBQmj.js} +1 -1
  47. package/dist/stores/inventory.d.ts +26 -199
  48. package/dist/{supplier-D3mOSUzY.js → supplier-CoCAyG12.js} +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/{use-ingredient-select-dialog-Ba-l0gZ1.js → use-ingredient-select-dialog-DYfpyC4u.js} +1 -1
  51. package/dist/{use-inventory-binding-dialog-CpaprD6M.js → use-inventory-binding-dialog-CDwm6TPx.js} +1 -1
  52. package/dist/views/import/ImportView.vue.d.ts +3 -0
  53. package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
  54. package/dist/views/import/helper/import-export.helper.d.ts +4 -0
  55. package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
  56. package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
  57. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
  58. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
  59. package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
  60. package/dist/views/unit/UnitView.vue.d.ts +1 -0
  61. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
  62. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
  63. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
  64. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
  65. package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
  66. package/package.json +3 -3
  67. package/dist/IngredientsView-DQUK8EMq.js +0 -2475
  68. package/dist/RecipeView-BQeJBUvu.js +0 -621
  69. package/dist/UnitView-C1cxS42T.js +0 -667
  70. package/dist/array-Ca8T3f_G.js +0 -44
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b6 as p, aY as v, c as m, b as h } from "./app-CsyUwsea.js";
2
+ import { u as d, b7 as p, aY as v, c as m, b as h } from "./app-DJcCTZjT.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { a8 as s } from "./app-CsyUwsea.js";
1
+ import { a6 as s } from "./app-DJcCTZjT.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -15,6 +15,7 @@ export declare enum RouteName {
15
15
  APPROVAL = "APPROVAL",
16
16
  SUPPLIER = "SUPPLIER",
17
17
  PUBLISH = "PUBLISH",
18
+ IMPORT = "IMPORT",
18
19
  INTEGRATION = "INTEGRATION",
19
20
  DEV = "DEV",
20
21
  IFRAME_INVENTORY_BINDINGS_TABLE = "IFRAME_INVENTORY_BINDINGS_TABLE",
@@ -1,4 +1,4 @@
1
- import { a8 as m, u as k, a as l, az as B, a0 as p } from "./app-CsyUwsea.js";
1
+ import { a6 as m, u as k, a as l, az as B, Z as p } from "./app-DJcCTZjT.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -1,6 +1,7 @@
1
1
  import type { CreateType } from '@/api/type';
2
2
  import type { FdoMenuV4 } from '@feedmepos/menu/entity';
3
3
  import { type FlattenInventoryBindingResult } from '@feedmepos/inventory-core';
4
+ import '@/extensions/array';
4
5
  export type BindingType = 'INGREDIENT' | 'RECIPE' | 'MENU';
5
6
  export type BindedBySkuId = FdoInventoryBinding & {
6
7
  from: BindingType;
@@ -2188,6 +2189,28 @@ export declare function useInventoryStore(): {
2188
2189
  };
2189
2190
  }[];
2190
2191
  }>;
2192
+ readonly recipeByName: Record<string, {
2193
+ customAttributes?: Record<string, any> | null | undefined;
2194
+ _id: string;
2195
+ name: string;
2196
+ contains: {
2197
+ measurement?: {
2198
+ id: string;
2199
+ name: string;
2200
+ abbrev: string;
2201
+ conversion: {
2202
+ amount: number;
2203
+ precision: number;
2204
+ };
2205
+ } | null | undefined;
2206
+ id: string;
2207
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2208
+ amount: {
2209
+ amount: number;
2210
+ precision: number;
2211
+ };
2212
+ }[];
2213
+ }>;
2191
2214
  readonly skus: {
2192
2215
  isInactive?: boolean | null | undefined;
2193
2216
  trackingMeasurement?: string | null | undefined;
@@ -3243,205 +3266,9 @@ export declare function useInventoryStore(): {
3243
3266
  deleteRecipe({ _id }: FdoInventoryRecipe): Promise<void>;
3244
3267
  createSku(sku: FdoInventorySku): Promise<void>;
3245
3268
  updateSku(sku: FdoInventorySku): Promise<void>;
3246
- importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<{
3247
- inventory: {
3248
- unit?: {
3249
- _id: string;
3250
- name: string;
3251
- abbrev: string;
3252
- precision: number;
3253
- measurements: {
3254
- id: string;
3255
- name: string;
3256
- abbrev: string;
3257
- conversion: {
3258
- amount: number;
3259
- precision: number;
3260
- };
3261
- }[];
3262
- }[] | null | undefined;
3263
- recipe?: {
3264
- customAttributes?: Record<string, any> | null | undefined;
3265
- _id: string;
3266
- name: string;
3267
- contains: {
3268
- measurement?: {
3269
- id: string;
3270
- name: string;
3271
- abbrev: string;
3272
- conversion: {
3273
- amount: number;
3274
- precision: number;
3275
- };
3276
- } | null | undefined;
3277
- id: string;
3278
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3279
- amount: {
3280
- amount: number;
3281
- precision: number;
3282
- };
3283
- }[];
3284
- }[] | null | undefined;
3285
- sku?: {
3286
- isInactive?: boolean | null | undefined;
3287
- trackingMeasurement?: string | null | undefined;
3288
- convert?: {
3289
- measurement?: string | null | undefined;
3290
- inventoryBindings?: {
3291
- measurement?: {
3292
- id: string;
3293
- name: string;
3294
- abbrev: string;
3295
- conversion: {
3296
- amount: number;
3297
- precision: number;
3298
- };
3299
- } | null | undefined;
3300
- id: string;
3301
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3302
- amount: {
3303
- amount: number;
3304
- precision: number;
3305
- };
3306
- }[] | null | undefined;
3307
- } | null | undefined;
3308
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3309
- defaultCost?: {
3310
- measurement?: {
3311
- id: string;
3312
- name: string;
3313
- abbrev: string;
3314
- conversion: {
3315
- amount: number;
3316
- precision: number;
3317
- };
3318
- } | null | undefined;
3319
- costPerUnit: {
3320
- 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";
3321
- amount: number;
3322
- precision: number;
3323
- };
3324
- } | null | undefined;
3325
- operationalGroup?: string | null | undefined;
3326
- thresholds?: {
3327
- low: number;
3328
- mid: number;
3329
- } | null | undefined;
3330
- customAttributes?: Record<string, any> | null | undefined;
3331
- _id: string;
3332
- name: string;
3333
- code: string;
3334
- unit: {
3335
- _id: string;
3336
- name: string;
3337
- abbrev: string;
3338
- precision: number;
3339
- measurements: {
3340
- id: string;
3341
- name: string;
3342
- abbrev: string;
3343
- conversion: {
3344
- amount: number;
3345
- precision: number;
3346
- };
3347
- }[];
3348
- };
3349
- }[] | null | undefined;
3350
- skuGroup?: {
3351
- ref?: string | null | undefined;
3352
- defaultSkuRefs?: {
3353
- priority?: number | null | undefined;
3354
- trackingMeasurement?: string | null | undefined;
3355
- default?: boolean | null | undefined;
3356
- _id: string;
3357
- }[] | null | undefined;
3358
- rules?: {
3359
- rule?: any;
3360
- _id: string;
3361
- name: string;
3362
- skuRefs: {
3363
- priority?: number | null | undefined;
3364
- trackingMeasurement?: string | null | undefined;
3365
- default?: boolean | null | undefined;
3366
- _id: string;
3367
- }[];
3368
- }[] | null | undefined;
3369
- _id: string;
3370
- name: string;
3371
- }[] | null | undefined;
3372
- updatedAt?: string | null | undefined;
3373
- _id: string;
3374
- _rev: string;
3375
- };
3376
- errors: {
3377
- error?: any;
3378
- data: {
3379
- isInactive?: boolean | null | undefined;
3380
- trackingMeasurement?: string | null | undefined;
3381
- convert?: {
3382
- measurement?: string | null | undefined;
3383
- inventoryBindings?: {
3384
- measurement?: {
3385
- id: string;
3386
- name: string;
3387
- abbrev: string;
3388
- conversion: {
3389
- amount: number;
3390
- precision: number;
3391
- };
3392
- } | null | undefined;
3393
- id: string;
3394
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3395
- amount: {
3396
- amount: number;
3397
- precision: number;
3398
- };
3399
- }[] | null | undefined;
3400
- } | null | undefined;
3401
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3402
- defaultCost?: {
3403
- measurement?: {
3404
- id: string;
3405
- name: string;
3406
- abbrev: string;
3407
- conversion: {
3408
- amount: number;
3409
- precision: number;
3410
- };
3411
- } | null | undefined;
3412
- costPerUnit: {
3413
- 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";
3414
- amount: number;
3415
- precision: number;
3416
- };
3417
- } | null | undefined;
3418
- operationalGroup?: string | null | undefined;
3419
- thresholds?: {
3420
- low: number;
3421
- mid: number;
3422
- } | null | undefined;
3423
- customAttributes?: Record<string, any> | null | undefined;
3424
- _id: string;
3425
- name: string;
3426
- code: string;
3427
- unit: {
3428
- _id: string;
3429
- name: string;
3430
- abbrev: string;
3431
- precision: number;
3432
- measurements: {
3433
- id: string;
3434
- name: string;
3435
- abbrev: string;
3436
- conversion: {
3437
- amount: number;
3438
- precision: number;
3439
- };
3440
- }[];
3441
- };
3442
- };
3443
- }[];
3444
- }>;
3269
+ importUnits(bulkImport: Omit<FdtoBulkUnitsRequest, '_rev'>): Promise<any>;
3270
+ importRecipes(recipes: Omit<FdtoBulkRecipeRequest, '_rev'>): Promise<any>;
3271
+ importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<any>;
3445
3272
  deleteSku({ _id }: FdoInventorySku): Promise<void>;
3446
3273
  createSkuGroup(skuGroup: CreateType<FdoInventorySkuGroup>): Promise<void>;
3447
3274
  updateSkuGroup(skuGroup: FdoInventorySkuGroup): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { a8 as m, u, c as b, E as w, aA as v, aB as $ } from "./app-CsyUwsea.js";
1
+ import { a6 as m, u, c as b, ap as w, aA as v, aB as $ } from "./app-DJcCTZjT.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";