@feedmepos/mf-inventory-portal 1.0.9-dev.3 → 1.0.9-dev.4

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 (60) hide show
  1. package/dist/{App-C6gg2tff.js → App-BOKGVcoO.js} +2 -2
  2. package/dist/{ApprovalView-DZifohZp.js → ApprovalView-Bo-4fnEU.js} +2 -2
  3. package/dist/{BindingsDialog-D-NE4sbz.js → BindingsDialog-DM2b4GN4.js} +2 -2
  4. package/dist/{BindingsPicker-BP5HkQhe.js → BindingsPicker-CJKBXA0c.js} +3 -3
  5. package/dist/{BindingsTable-DCLu2260.js → BindingsTable-BxCEEJfb.js} +1 -1
  6. package/dist/{ClosingDraftView-CF1WvxPK.js → ClosingDraftView-bQxPF18V.js} +2 -2
  7. package/dist/{ClosingTemplateView-BTAwwKIK.js → ClosingTemplateView-DLkp9Qt8.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-C0ornFrS.js → DeliveryOrderPrintPreview-CK3HdYVb.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5aDXHfX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DMHC_WQn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js} +20 -20
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CDB7BLGo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js} +1 -1
  12. package/dist/{IngredientsView-Cw9hWci5.js → IngredientsView-DmKCy_JQ.js} +4 -4
  13. package/dist/{IntegrationView-Af4yE6YN.js → IntegrationView-B1dzt8WK.js} +4 -4
  14. package/dist/{InventoryBindingForm-CKNE-9XF.js → InventoryBindingForm-CeTlH0U1.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXGno3jm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js} +92 -87
  16. package/dist/{InventoryBindingSummary-DeNGAysn.js → InventoryBindingSummary-QVSD87YL.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BiB8cZwH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CriwQBvl.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js} +1 -1
  19. package/dist/{PublishView-CXRCoNai.js → PublishView-BYGKLC9D.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-C02inqk2.js → PurchaseOrderPrintPreview-CEVjGeom.js} +1 -1
  21. package/dist/{ReceiveRequestView-B7S4pKgp.js → ReceiveRequestView-D5PcGCLv.js} +42 -42
  22. package/dist/RecipeView-DmTDCsvk.js +8493 -0
  23. package/dist/{StockView-C7X97PgJ.js → StockView-EmTqUcP1.js} +7 -7
  24. package/dist/{SupplierView-DSD56NEd.js → SupplierView-BaLnW761.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-COa-ENT_.js → TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js} +36 -36
  26. package/dist/{TransferTemplateView-D76GtJPP.js → TransferTemplateView-DoeLAFmJ.js} +114 -114
  27. package/dist/{UnitView-DjrfCvNG.js → UnitView-6Kobe5di.js} +18 -18
  28. package/dist/{WarehouseView-BenlwQj0.js → WarehouseView-BBMS14jU.js} +1 -1
  29. package/dist/api/inventory.d.ts +66 -207
  30. package/dist/{app-Cn649AKe.js → app-CUTIQqG_.js} +7318 -7360
  31. package/dist/app.js +1 -1
  32. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +22 -0
  33. package/dist/components/shell/inventory/binding-ui.vue.d.ts +22 -0
  34. package/dist/{decimal-B_2tpC5T.js → decimal-Bb7Chjpr.js} +1 -1
  35. package/dist/{feature-C3tkzv_R.js → feature-D5GLIW5h.js} +143 -148
  36. package/dist/{format-unit-display-CUjVAExM.js → format-unit-display-CqqBiewI.js} +29 -29
  37. package/dist/{index-WEO-tzBF.js → index-B7QMXzGe.js} +2739 -2823
  38. package/dist/{index-C8N0qnaj.js → index-DiEdX1Bs.js} +2 -2
  39. package/dist/main.d.ts +1 -0
  40. package/dist/{stock-D5ctHplB.js → stock-CO0XWh8j.js} +1 -1
  41. package/dist/stores/feature.d.ts +0 -2
  42. package/dist/stores/inventory.d.ts +89 -211
  43. package/dist/{supplier-CnlrJD2z.js → supplier-C877x7mU.js} +1 -1
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/{use-ingredient-select-dialog-DnG7HGSX.js → use-ingredient-select-dialog-ClufUFeU.js} +1 -1
  46. package/dist/{use-inventory-binding-dialog-sALJ--xH.js → use-inventory-binding-dialog-BuRe6QNp.js} +1 -1
  47. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +44 -0
  48. package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
  49. package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
  50. package/dist/{vue-i18n-B_Hl3d6o.js → vue-i18n-CxuQa0ds.js} +401 -401
  51. package/package.json +6 -5
  52. package/dist/IngredientGroupView-DwUeV_bZ.js +0 -604
  53. package/dist/RecipeView-dUKMM9iC.js +0 -616
  54. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  55. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  56. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -12
  57. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -20
  58. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  59. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  60. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -218
@@ -1,11 +1,11 @@
1
- import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
- import { a as K, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as J, K as ve, L as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, C as Ve, E as Ue } from "./app-Cn649AKe.js";
1
+ import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as O, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
+ import { a as K, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as Y, J as ve, K as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, C as Ve, E as Ue } from "./app-CUTIQqG_.js";
3
3
  import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
4
4
  import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as Ee, storeToRefs as Fe } from "pinia";
6
6
  import { useI18n as G } from "@feedmepos/mf-common";
7
- import { F as $e } from "./decimal-B_2tpC5T.js";
8
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BiB8cZwH.js";
7
+ import { F as $e } from "./decimal-Bb7Chjpr.js";
8
+ import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js";
9
9
  const De = { class: "flex flex-col gap-8" }, Ae = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -51,7 +51,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
51
51
  l("div", Me, V((n = a.bindedIngredient) != null && n.length ? "Convert binding" : "Item unit"), 1)
52
52
  ]);
53
53
  }), 128))
54
- ])) : Y("", !0),
54
+ ])) : O("", !0),
55
55
  s.value.length ? (v(), C("div", Pe, [
56
56
  p[1] || (p[1] = l("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
57
57
  l("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
@@ -70,7 +70,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
70
70
  l("div", Be, V((n = a.bindedIngredient) == null ? void 0 : n.slice(0, 3).map((_) => _.code).join(", ")) + " " + V(a.bindedIngredient && ((u = a.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((x = a.bindedIngredient) == null ? void 0 : x.length) - 3} more` : ""), 1)
71
71
  ]);
72
72
  }), 128))
73
- ])) : Y("", !0),
73
+ ])) : O("", !0),
74
74
  d.value.length ? (v(), C("div", ze, [
75
75
  p[2] || (p[2] = l("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
76
76
  l("div", { class: "flex-1 py-8 px-16" }, "Menu"),
@@ -89,7 +89,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
89
89
  l("div", Ne, V((n = a.bindedIngredient) == null ? void 0 : n.slice(0, 3).map((_) => _.code).join(", ")) + " " + V(a.bindedIngredient && ((u = a.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((x = a.bindedIngredient) == null ? void 0 : x.length) - 3} more` : ""), 1)
90
90
  ]);
91
91
  }), 128))
92
- ])) : Y("", !0)
92
+ ])) : O("", !0)
93
93
  ]));
94
94
  }
95
95
  }), Q = Ee("unitForm", function() {
@@ -232,7 +232,7 @@ function qe() {
232
232
  }
233
233
  ] };
234
234
  }
235
- const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
235
+ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Je = { class: "flex-1" }, Oe = { class: "flex" }, Ye = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -316,8 +316,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
316
316
  (t = (e = _.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
317
317
  }
318
318
  }), (e, t) => {
319
- const m = $("FmTextField"), I = $("FmStepperField"), D = $("FmButton"), U = $("FmCard"), O = $("FmForm");
320
- return v(), T(O, {
319
+ const m = $("FmTextField"), I = $("FmStepperField"), D = $("FmButton"), U = $("FmCard"), J = $("FmForm");
320
+ return v(), T(J, {
321
321
  ref_key: "formRef",
322
322
  ref: _,
323
323
  class: "flex flex-col gap-40",
@@ -338,7 +338,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
338
338
  "label-mark": "required"
339
339
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
340
340
  ]),
341
- l("div", Oe, [
341
+ l("div", Je, [
342
342
  y(m, {
343
343
  disabled: e.disabled,
344
344
  label: o(s)("inventory.unit.symbol"),
@@ -360,7 +360,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
360
360
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
361
361
  ])
362
362
  ]),
363
- l("div", Ye, [
363
+ l("div", Oe, [
364
364
  y(D, {
365
365
  disabled: e.disabled,
366
366
  type: "button",
@@ -376,7 +376,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
376
376
  key: S.id
377
377
  }, {
378
378
  default: A(() => [
379
- l("div", Je, [
379
+ l("div", Ye, [
380
380
  l("div", Qe, V(o(s)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
381
381
  y(D, {
382
382
  disabled: e.disabled,
@@ -413,7 +413,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
413
413
  disabled: e.disabled,
414
414
  class: "col-span-3",
415
415
  label: o(s)("inventory.unit.measurement.conversion"),
416
- "model-value": +o(J)(e.modelValue.measurements[h].conversion),
416
+ "model-value": +o(Y)(e.modelValue.measurements[h].conversion),
417
417
  "onUpdate:modelValue": (F) => n.value = n.value.map(
418
418
  (P, R) => R === h ? {
419
419
  ...P,
@@ -424,10 +424,10 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
424
424
  } : P
425
425
  ),
426
426
  rules: [o(ye)(0)],
427
- step: +o(J)({ amount: 1, precision: a.value }),
427
+ step: +o(Y)({ amount: 1, precision: a.value }),
428
428
  "helper-text": o(s)("inventory.unit.measurement.conversionHelper", {
429
429
  measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
430
- conversion: +o(J)(e.modelValue.measurements[h].conversion),
430
+ conversion: +o(Y)(e.modelValue.measurements[h].conversion),
431
431
  unitSymbol: p.value || "base unit"
432
432
  })
433
433
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
@@ -572,7 +572,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
572
572
  }
573
573
  const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = G();
574
574
  return (D, U) => {
575
- const O = $("FmTable");
575
+ const J = $("FmTable");
576
576
  return v(), T(_e, {
577
577
  title: o(I)("inventory.unit.title"),
578
578
  actions: o(i).isEnabled ? [] : [
@@ -600,7 +600,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
600
600
  search: u.value,
601
601
  "onUpdate:search": U[0] || (U[0] = (E) => u.value = E)
602
602
  }, null, 8, ["search"]),
603
- y(O, {
603
+ y(J, {
604
604
  style: ie(o(m).tableHeight),
605
605
  "column-defs": o(a),
606
606
  "row-data": r.value,
@@ -1,5 +1,5 @@
1
1
  import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as xe, openBlock as R, createElementBlock as z, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as L, unref as c, createVNode as V, resolveComponent as B, createSlots as $e, withCtx as q, createTextVNode as Se, renderSlot as We, createBlock as I, createCommentVNode as Ae, computed as $, isRef as we, normalizeClass as De, normalizeStyle as Pe } from "vue";
2
- import { X as Re, ak as Ue, al as Ee, f as Te, D as Ve, h as J, e as G, am as Le, ad as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as Q } from "./app-Cn649AKe.js";
2
+ import { X as Re, ak as Ue, al as Ee, f as Te, D as Ve, h as J, e as G, am as Le, ad as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as Q } from "./app-CUTIQqG_.js";
3
3
  import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
@@ -173,6 +173,28 @@ export declare const useInventoryApi: () => {
173
173
  }[] | null | undefined;
174
174
  recipe?: {
175
175
  customAttributes?: Record<string, any> | null | undefined;
176
+ overrides?: {
177
+ rule?: any;
178
+ id: string;
179
+ name: string;
180
+ override: {
181
+ measurement?: {
182
+ id: string;
183
+ name: string;
184
+ abbrev: string;
185
+ conversion: {
186
+ amount: number;
187
+ precision: number;
188
+ };
189
+ } | null | undefined;
190
+ id: string;
191
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
192
+ amount: {
193
+ amount: number;
194
+ precision: number;
195
+ };
196
+ }[];
197
+ }[] | null | undefined;
176
198
  _id: string;
177
199
  name: string;
178
200
  contains: {
@@ -193,75 +215,6 @@ export declare const useInventoryApi: () => {
193
215
  };
194
216
  }[];
195
217
  }[] | null | undefined;
196
- skuGroup?: {
197
- ref?: string | null | undefined;
198
- _id: string;
199
- name: string;
200
- unit: {
201
- _id: string;
202
- name: string;
203
- abbrev: string;
204
- precision: number;
205
- measurements: {
206
- id: string;
207
- name: string;
208
- abbrev: string;
209
- conversion: {
210
- amount: number;
211
- precision: number;
212
- };
213
- }[];
214
- };
215
- skus: {
216
- trackingMeasurement?: string | null | undefined;
217
- convert?: {
218
- measurement?: string | null | undefined;
219
- inventoryBindings?: {
220
- measurement?: {
221
- id: string;
222
- name: string;
223
- abbrev: string;
224
- conversion: {
225
- amount: number;
226
- precision: number;
227
- };
228
- } | null | undefined;
229
- id: string;
230
- type: "RECIPE" | "SKU" | "SKU_GROUP";
231
- amount: {
232
- amount: number;
233
- precision: number;
234
- };
235
- }[] | null | undefined;
236
- } | null | undefined;
237
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
238
- defaultCost?: {
239
- measurement?: {
240
- id: string;
241
- name: string;
242
- abbrev: string;
243
- conversion: {
244
- amount: number;
245
- precision: number;
246
- };
247
- } | null | undefined;
248
- costPerUnit: {
249
- 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";
250
- amount: number;
251
- precision: number;
252
- };
253
- } | null | undefined;
254
- operationalGroup?: string | null | undefined;
255
- thresholds?: {
256
- low: number;
257
- mid: number;
258
- } | null | undefined;
259
- customAttributes?: Record<string, any> | null | undefined;
260
- _id: string;
261
- name: string;
262
- code: string;
263
- }[];
264
- }[] | null | undefined;
265
218
  updatedAt?: string | null | undefined;
266
219
  _id: string;
267
220
  }>>;
@@ -347,6 +300,28 @@ export declare const useInventoryApi: () => {
347
300
  }[] | null | undefined;
348
301
  recipe?: {
349
302
  customAttributes?: Record<string, any> | null | undefined;
303
+ overrides?: {
304
+ rule?: any;
305
+ id: string;
306
+ name: string;
307
+ override: {
308
+ measurement?: {
309
+ id: string;
310
+ name: string;
311
+ abbrev: string;
312
+ conversion: {
313
+ amount: number;
314
+ precision: number;
315
+ };
316
+ } | null | undefined;
317
+ id: string;
318
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
319
+ amount: {
320
+ amount: number;
321
+ precision: number;
322
+ };
323
+ }[];
324
+ }[] | null | undefined;
350
325
  _id: string;
351
326
  name: string;
352
327
  contains: {
@@ -367,75 +342,6 @@ export declare const useInventoryApi: () => {
367
342
  };
368
343
  }[];
369
344
  }[] | null | undefined;
370
- skuGroup?: {
371
- ref?: string | null | undefined;
372
- _id: string;
373
- name: string;
374
- unit: {
375
- _id: string;
376
- name: string;
377
- abbrev: string;
378
- precision: number;
379
- measurements: {
380
- id: string;
381
- name: string;
382
- abbrev: string;
383
- conversion: {
384
- amount: number;
385
- precision: number;
386
- };
387
- }[];
388
- };
389
- skus: {
390
- trackingMeasurement?: string | null | undefined;
391
- convert?: {
392
- measurement?: string | null | undefined;
393
- inventoryBindings?: {
394
- measurement?: {
395
- id: string;
396
- name: string;
397
- abbrev: string;
398
- conversion: {
399
- amount: number;
400
- precision: number;
401
- };
402
- } | null | undefined;
403
- id: string;
404
- type: "RECIPE" | "SKU" | "SKU_GROUP";
405
- amount: {
406
- amount: number;
407
- precision: number;
408
- };
409
- }[] | null | undefined;
410
- } | null | undefined;
411
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
412
- defaultCost?: {
413
- measurement?: {
414
- id: string;
415
- name: string;
416
- abbrev: string;
417
- conversion: {
418
- amount: number;
419
- precision: number;
420
- };
421
- } | null | undefined;
422
- costPerUnit: {
423
- 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";
424
- amount: number;
425
- precision: number;
426
- };
427
- } | null | undefined;
428
- operationalGroup?: string | null | undefined;
429
- thresholds?: {
430
- low: number;
431
- mid: number;
432
- } | null | undefined;
433
- customAttributes?: Record<string, any> | null | undefined;
434
- _id: string;
435
- name: string;
436
- code: string;
437
- }[];
438
- }[] | null | undefined;
439
345
  updatedAt?: string | null | undefined;
440
346
  _id: string;
441
347
  }>>;
@@ -521,6 +427,28 @@ export declare const useInventoryApi: () => {
521
427
  }[] | null | undefined;
522
428
  recipe?: {
523
429
  customAttributes?: Record<string, any> | null | undefined;
430
+ overrides?: {
431
+ rule?: any;
432
+ id: string;
433
+ name: string;
434
+ override: {
435
+ measurement?: {
436
+ id: string;
437
+ name: string;
438
+ abbrev: string;
439
+ conversion: {
440
+ amount: number;
441
+ precision: number;
442
+ };
443
+ } | null | undefined;
444
+ id: string;
445
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
446
+ amount: {
447
+ amount: number;
448
+ precision: number;
449
+ };
450
+ }[];
451
+ }[] | null | undefined;
524
452
  _id: string;
525
453
  name: string;
526
454
  contains: {
@@ -541,75 +469,6 @@ export declare const useInventoryApi: () => {
541
469
  };
542
470
  }[];
543
471
  }[] | null | undefined;
544
- skuGroup?: {
545
- ref?: string | null | undefined;
546
- _id: string;
547
- name: string;
548
- unit: {
549
- _id: string;
550
- name: string;
551
- abbrev: string;
552
- precision: number;
553
- measurements: {
554
- id: string;
555
- name: string;
556
- abbrev: string;
557
- conversion: {
558
- amount: number;
559
- precision: number;
560
- };
561
- }[];
562
- };
563
- skus: {
564
- trackingMeasurement?: string | null | undefined;
565
- convert?: {
566
- measurement?: string | null | undefined;
567
- inventoryBindings?: {
568
- measurement?: {
569
- id: string;
570
- name: string;
571
- abbrev: string;
572
- conversion: {
573
- amount: number;
574
- precision: number;
575
- };
576
- } | null | undefined;
577
- id: string;
578
- type: "RECIPE" | "SKU" | "SKU_GROUP";
579
- amount: {
580
- amount: number;
581
- precision: number;
582
- };
583
- }[] | null | undefined;
584
- } | null | undefined;
585
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
586
- defaultCost?: {
587
- measurement?: {
588
- id: string;
589
- name: string;
590
- abbrev: string;
591
- conversion: {
592
- amount: number;
593
- precision: number;
594
- };
595
- } | null | undefined;
596
- costPerUnit: {
597
- 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";
598
- amount: number;
599
- precision: number;
600
- };
601
- } | null | undefined;
602
- operationalGroup?: string | null | undefined;
603
- thresholds?: {
604
- low: number;
605
- mid: number;
606
- } | null | undefined;
607
- customAttributes?: Record<string, any> | null | undefined;
608
- _id: string;
609
- name: string;
610
- code: string;
611
- }[];
612
- }[] | null | undefined;
613
472
  updatedAt?: string | null | undefined;
614
473
  _id: string;
615
474
  }>>;