@feedmepos/mf-inventory-portal 1.2.0 → 1.2.2-5.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 (147) hide show
  1. package/dist/App-DMkUg806.js +297 -0
  2. package/dist/{ApprovalView-Dr-qd_Ai.js → ApprovalView-DWJh2K6W.js} +65 -64
  3. package/dist/{BindingsDialog-Chh00-83.js → BindingsDialog-EmHCvqJI.js} +2 -2
  4. package/dist/{BindingsPicker-DCTGJ8eM.js → BindingsPicker-h_9jm1s0.js} +3 -3
  5. package/dist/{BindingsTable-BsDs5d0V.js → BindingsTable-BAVWGUoa.js} +1 -1
  6. package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
  7. package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
  8. package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
  9. package/dist/{DeliveryOrderPrintPreview-CrH9UVdW.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
  11. package/dist/{FmMultiselectDialog-ypgaHejh.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DJctVhvZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
  13. package/dist/ImportView-lKlYeLay.js +1291 -0
  14. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D59M4Bl1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
  15. package/dist/{IngredientGroupView-Cf9ePE7_.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
  16. package/dist/IngredientsView-1bAsyz-b.js +2254 -0
  17. package/dist/{IntegrationView-DEDn2mc5.js → IntegrationView-D16qeEc_.js} +1773 -1635
  18. package/dist/{InventoryBindingForm-AB8rum4-.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
  19. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BgZt_9h1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
  20. package/dist/{InventoryBindingSummary-CWOG5DIz.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
  21. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CmN30iEZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
  22. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C1cUDp0u.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
  23. package/dist/{PublishView-FHyjjevA.js → PublishView-D0NnU22l.js} +73 -63
  24. package/dist/{PurchaseOrderPrintPreview-BPvvkjkR.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
  25. package/dist/{ReceiveRequestView-CoWU2g0R.js → ReceiveRequestView-j79m7TKk.js} +343 -333
  26. package/dist/RecipeView-D_fNQQ-C.js +636 -0
  27. package/dist/StockView-DX_xeFBT.js +2385 -0
  28. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
  29. package/dist/{SupplierView-CJG2Idbl.js → SupplierView-DuFTqbOg.js} +1193 -1073
  30. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
  31. package/dist/{TransferTemplateView-DZnPt5b5.js → TransferTemplateView-Ccsfcetz.js} +104 -103
  32. package/dist/UnitView-BklpNsFN.js +674 -0
  33. package/dist/WarehouseView-BrURbU67.js +1066 -0
  34. package/dist/api/adjustment-template.d.ts +1 -0
  35. package/dist/api/bill.d.ts +140 -2
  36. package/dist/api/closing-template.d.ts +1 -0
  37. package/dist/api/closing.d.ts +1 -0
  38. package/dist/api/inventory.d.ts +405 -0
  39. package/dist/api/netsuite.d.ts +5 -1
  40. package/dist/api/purchase-order-template.d.ts +1 -0
  41. package/dist/api/purchase-order.d.ts +3 -0
  42. package/dist/api/shipment.d.ts +11 -0
  43. package/dist/api/stock.d.ts +2 -44
  44. package/dist/api/warehouse.d.ts +3 -1
  45. package/dist/{app-B6mXF-3v.js → app-a9r50k3U.js} +68557 -67576
  46. package/dist/app.d.ts +646 -15
  47. package/dist/app.js +6 -6
  48. package/dist/components/FmAdminBadge.vue.d.ts +1 -4
  49. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
  51. package/dist/components/FmLockableField.vue.d.ts +3 -0
  52. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  53. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
  54. package/dist/composable/defineApi.d.ts +1 -1
  55. package/dist/composable/useIframe.d.ts +2 -2
  56. package/dist/{decimal-DErYDfEJ.js → decimal-AusUnA1W.js} +1 -1
  57. package/dist/{format-unit-display-BtjJtmQp.js → format-unit-display-BqkHL-ph.js} +397 -429
  58. package/dist/helper/array.d.ts +1 -0
  59. package/dist/helper/core/country/utils.d.ts +3 -4
  60. package/dist/helper/country.d.ts +6 -255
  61. package/dist/helper/number.d.ts +1 -0
  62. package/dist/import-export.helper-PIyNeHfa.js +238 -0
  63. package/dist/{index-lj4ClRIU.js → index-CjxirPvn.js} +283 -268
  64. package/dist/{index-CvfUsVdt.js → index-Dj9-pdT9.js} +1 -1
  65. package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
  66. package/dist/purchase-order-template-CQikvY1p.js +41 -0
  67. package/dist/router/name.d.ts +2 -0
  68. package/dist/stock-CDZ2uWSF.js +83 -0
  69. package/dist/stock-Dw908dIC.js +74 -0
  70. package/dist/stores/feature.d.ts +12 -0
  71. package/dist/stores/integration/netsuite.d.ts +42 -0
  72. package/dist/stores/inventory.d.ts +28 -199
  73. package/dist/stores/location.d.ts +331 -1
  74. package/dist/stores/supplier.d.ts +96 -0
  75. package/dist/stores/warehouse.d.ts +4 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{supplier-D_2yzArc.js → supplier-BPPBUudN.js} +1 -1
  78. package/dist/tsconfig.app.tsbuildinfo +1 -1
  79. package/dist/{use-ingredient-select-dialog-C9iEMCVA.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
  80. package/dist/{use-inventory-binding-dialog-CavX3SFd.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
  81. package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
  82. package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
  83. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
  84. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  85. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
  86. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
  87. package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
  89. package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
  90. package/dist/views/import/ImportView.vue.d.ts +3 -0
  91. package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
  92. package/dist/views/import/helper/import-export.helper.d.ts +4 -0
  93. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  94. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
  95. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
  96. package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
  97. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  98. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
  99. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
  100. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
  101. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
  102. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
  103. package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
  104. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
  106. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
  107. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
  108. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
  109. package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
  110. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
  111. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
  112. package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
  113. package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
  114. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
  115. package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
  116. package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
  117. package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
  118. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  119. package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
  120. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
  121. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  122. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
  123. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  124. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  125. package/dist/views/unit/UnitView.vue.d.ts +1 -0
  126. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
  127. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
  128. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
  129. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
  130. package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
  131. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
  132. package/package.json +3 -3
  133. package/dist/App-Bs0pR0sL.js +0 -276
  134. package/dist/ClosingDraftView-Dyr4hrHk.js +0 -1687
  135. package/dist/ClosingTemplateView-Dw0Lld6E.js +0 -1908
  136. package/dist/FmAdminBadge-BUJh40aj.js +0 -34
  137. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B-p9ffPK.js +0 -224
  138. package/dist/IngredientsView-61WfWyGy.js +0 -1858
  139. package/dist/RecipeView-CznjQMrS.js +0 -621
  140. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  141. package/dist/StockView-N-84Q5Ih.js +0 -2086
  142. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BmU-VLNN.js +0 -2336
  143. package/dist/UnitView-BrLjAWNq.js +0 -667
  144. package/dist/WarehouseView-CI-RuaPq.js +0 -1034
  145. package/dist/array-Ca8T3f_G.js +0 -44
  146. package/dist/helper/core/country/codes.d.ts +0 -255
  147. package/dist/stock-CIpuon0m.js +0 -146
@@ -1,12 +1,12 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S, a2 as b } from "./app-B6mXF-3v.js";
2
+ import { a as S, x as b } from "./app-a9r50k3U.js";
3
3
  import { useDialog as A } from "@feedmepos/ui-library";
4
4
  import { useI18n as I } from "@feedmepos/mf-common";
5
5
  const h = y(
6
6
  "ingredientSelectDialog",
7
7
  function() {
8
- const { t: s } = I(), n = S(), a = A();
9
- async function m(l, u) {
8
+ const { t: s } = I(), n = S(), m = A();
9
+ async function a(l, u) {
10
10
  const p = n.skus, g = u ?? ((t) => n.skuByCode[t]), d = p.map(
11
11
  (t) => {
12
12
  var e, o, i, c;
@@ -19,7 +19,7 @@ const h = y(
19
19
  };
20
20
  }
21
21
  ), f = l, { promise: v, resolve: r } = Promise.withResolvers();
22
- return a.open({
22
+ return m.open({
23
23
  title: s("inventory.transfer.form.items.selectItem"),
24
24
  closeButton: !0,
25
25
  contentComponent: b,
@@ -43,7 +43,7 @@ const h = y(
43
43
  r(e);
44
44
  }), v;
45
45
  }
46
- return { promptSelectIngredients: m };
46
+ return { promptSelectIngredients: a };
47
47
  }
48
48
  );
49
49
  export {
@@ -1,4 +1,4 @@
1
- import { a as P, a2 as g } from "./app-B6mXF-3v.js";
1
+ import { a as P, x as g } from "./app-a9r50k3U.js";
2
2
  import { useDialog as E } from "@feedmepos/ui-library";
3
3
  function B() {
4
4
  const u = P(), _ = E();
@@ -7,7 +7,7 @@ function B() {
7
7
  const y = e.filter((n) => n.type === "SKU"), l = e.filter((n) => n.type !== "SKU"), c = /* @__PURE__ */ new Set();
8
8
  if (s)
9
9
  for (const n of u.skus)
10
- !f.some((r) => r === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((r) => r.id === s)) || c.add(n._id);
10
+ !f.some((a) => a === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((a) => a.id === s)) || c.add(n._id);
11
11
  const t = u.skus.map((n) => ({
12
12
  label: n.name,
13
13
  sublabel: `${n.code}${c.has(n._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
@@ -36,10 +36,10 @@ function B() {
36
36
  }).onPrimary((n) => {
37
37
  const d = [
38
38
  ...l,
39
- ...e.filter((r) => n.find((a) => a._id === r.id)),
40
- ...n.filter((r) => !e.find((a) => a.id === r._id)).map((r) => ({
39
+ ...e.filter((a) => n.find((r) => r._id === a.id)),
40
+ ...n.filter((a) => !e.find((r) => r.id === a._id)).map((a) => ({
41
41
  type: "SKU",
42
- id: r._id,
42
+ id: a._id,
43
43
  amount: {
44
44
  amount: 1,
45
45
  precision: 0
@@ -55,11 +55,11 @@ function B() {
55
55
  if (s.length)
56
56
  for (const i of u.recipes) {
57
57
  const o = ((p = u.recipeBindingFlattenCache[i._id]) == null ? void 0 : p.inventoryBindings) ?? [], n = o.some(
58
- (a) => a.bindingPaths.some((S) => s.some((h) => h === S.id))
58
+ (r) => r.bindingPaths.some((S) => s.some((h) => h === S.id))
59
59
  ), d = o.some(
60
- (a) => "success" in a && s.includes(a.ingredient._id)
60
+ (r) => "success" in r && s.includes(r.ingredient._id)
61
61
  );
62
- (s.some((a) => a === i._id) || n || d) && l.add(i._id);
62
+ (s.some((r) => r === i._id) || n || d) && l.add(i._id);
63
63
  }
64
64
  const c = u.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
65
65
  label: i.name,
@@ -27,6 +27,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
27
27
  mode?: FormMode | undefined;
28
28
  modelValue?: {
29
29
  _rev?: string | null | undefined;
30
+ updatedAt?: string | null | undefined;
30
31
  locations?: {
31
32
  inventory?: {
32
33
  _id: string;
@@ -118,6 +119,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
118
119
  };
119
120
  };
120
121
  }[] | null | undefined;
122
+ updatedBy?: {
123
+ name: string;
124
+ id: string;
125
+ } | null | undefined;
121
126
  _id: string;
122
127
  items: {
123
128
  code?: string | null | undefined;
@@ -136,6 +141,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
136
141
  mode?: FormMode | undefined;
137
142
  modelValue?: {
138
143
  _rev?: string | null | undefined;
144
+ updatedAt?: string | null | undefined;
139
145
  locations?: {
140
146
  inventory?: {
141
147
  _id: string;
@@ -227,6 +233,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
227
233
  };
228
234
  };
229
235
  }[] | null | undefined;
236
+ updatedBy?: {
237
+ name: string;
238
+ id: string;
239
+ } | null | undefined;
230
240
  _id: string;
231
241
  items: {
232
242
  code?: string | null | undefined;
@@ -245,6 +255,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
245
255
  templateDetailsProps: Ref<{
246
256
  template?: {
247
257
  _rev?: string | null | undefined;
258
+ updatedAt?: string | null | undefined;
248
259
  locations?: {
249
260
  inventory?: {
250
261
  _id: string;
@@ -336,6 +347,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
336
347
  };
337
348
  };
338
349
  }[] | null | undefined;
350
+ updatedBy?: {
351
+ name: string;
352
+ id: string;
353
+ } | null | undefined;
339
354
  _id: string;
340
355
  items: {
341
356
  code?: string | null | undefined;
@@ -353,6 +368,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
353
368
  }, WastageTemplateDetailsPropsWithEventBinding | {
354
369
  template?: {
355
370
  _rev?: string | null | undefined;
371
+ updatedAt?: string | null | undefined;
356
372
  locations?: {
357
373
  inventory?: {
358
374
  _id: string;
@@ -444,6 +460,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
444
460
  };
445
461
  };
446
462
  }[] | null | undefined;
463
+ updatedBy?: {
464
+ name: string;
465
+ id: string;
466
+ } | null | undefined;
447
467
  _id: string;
448
468
  items: {
449
469
  code?: string | null | undefined;
@@ -481,6 +501,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
481
501
  mode?: FormMode | undefined;
482
502
  modelValue?: {
483
503
  _rev?: string | null | undefined;
504
+ updatedAt?: string | null | undefined;
484
505
  locations?: {
485
506
  inventory?: {
486
507
  _id: string;
@@ -572,6 +593,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
572
593
  };
573
594
  };
574
595
  }[] | null | undefined;
596
+ updatedBy?: {
597
+ name: string;
598
+ id: string;
599
+ } | null | undefined;
575
600
  _id: string;
576
601
  items: {
577
602
  code?: string | null | undefined;
@@ -590,6 +615,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
590
615
  mode?: FormMode | undefined;
591
616
  modelValue?: {
592
617
  _rev?: string | null | undefined;
618
+ updatedAt?: string | null | undefined;
593
619
  locations?: {
594
620
  inventory?: {
595
621
  _id: string;
@@ -681,6 +707,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
681
707
  };
682
708
  };
683
709
  }[] | null | undefined;
710
+ updatedBy?: {
711
+ name: string;
712
+ id: string;
713
+ } | null | undefined;
684
714
  _id: string;
685
715
  items: {
686
716
  code?: string | null | undefined;
@@ -699,6 +729,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
699
729
  templateDetailsProps: Ref<{
700
730
  template?: {
701
731
  _rev?: string | null | undefined;
732
+ updatedAt?: string | null | undefined;
702
733
  locations?: {
703
734
  inventory?: {
704
735
  _id: string;
@@ -790,6 +821,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
790
821
  };
791
822
  };
792
823
  }[] | null | undefined;
824
+ updatedBy?: {
825
+ name: string;
826
+ id: string;
827
+ } | null | undefined;
793
828
  _id: string;
794
829
  items: {
795
830
  code?: string | null | undefined;
@@ -807,6 +842,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
807
842
  }, WastageTemplateDetailsPropsWithEventBinding | {
808
843
  template?: {
809
844
  _rev?: string | null | undefined;
845
+ updatedAt?: string | null | undefined;
810
846
  locations?: {
811
847
  inventory?: {
812
848
  _id: string;
@@ -898,6 +934,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
898
934
  };
899
935
  };
900
936
  }[] | null | undefined;
937
+ updatedBy?: {
938
+ name: string;
939
+ id: string;
940
+ } | null | undefined;
901
941
  _id: string;
902
942
  items: {
903
943
  code?: string | null | undefined;
@@ -935,6 +975,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
935
975
  mode?: FormMode | undefined;
936
976
  modelValue?: {
937
977
  _rev?: string | null | undefined;
978
+ updatedAt?: string | null | undefined;
938
979
  locations?: {
939
980
  inventory?: {
940
981
  _id: string;
@@ -1026,6 +1067,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1026
1067
  };
1027
1068
  };
1028
1069
  }[] | null | undefined;
1070
+ updatedBy?: {
1071
+ name: string;
1072
+ id: string;
1073
+ } | null | undefined;
1029
1074
  _id: string;
1030
1075
  items: {
1031
1076
  code?: string | null | undefined;
@@ -1044,6 +1089,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1044
1089
  mode?: FormMode | undefined;
1045
1090
  modelValue?: {
1046
1091
  _rev?: string | null | undefined;
1092
+ updatedAt?: string | null | undefined;
1047
1093
  locations?: {
1048
1094
  inventory?: {
1049
1095
  _id: string;
@@ -1135,6 +1181,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1135
1181
  };
1136
1182
  };
1137
1183
  }[] | null | undefined;
1184
+ updatedBy?: {
1185
+ name: string;
1186
+ id: string;
1187
+ } | null | undefined;
1138
1188
  _id: string;
1139
1189
  items: {
1140
1190
  code?: string | null | undefined;
@@ -1153,6 +1203,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1153
1203
  templateDetailsProps: Ref<{
1154
1204
  template?: {
1155
1205
  _rev?: string | null | undefined;
1206
+ updatedAt?: string | null | undefined;
1156
1207
  locations?: {
1157
1208
  inventory?: {
1158
1209
  _id: string;
@@ -1244,6 +1295,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1244
1295
  };
1245
1296
  };
1246
1297
  }[] | null | undefined;
1298
+ updatedBy?: {
1299
+ name: string;
1300
+ id: string;
1301
+ } | null | undefined;
1247
1302
  _id: string;
1248
1303
  items: {
1249
1304
  code?: string | null | undefined;
@@ -1261,6 +1316,7 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1261
1316
  }, WastageTemplateDetailsPropsWithEventBinding | {
1262
1317
  template?: {
1263
1318
  _rev?: string | null | undefined;
1319
+ updatedAt?: string | null | undefined;
1264
1320
  locations?: {
1265
1321
  inventory?: {
1266
1322
  _id: string;
@@ -1352,6 +1408,10 @@ export declare const useWastageTemplateActions: import("pinia").StoreDefinition<
1352
1408
  };
1353
1409
  };
1354
1410
  }[] | null | undefined;
1411
+ updatedBy?: {
1412
+ name: string;
1413
+ id: string;
1414
+ } | null | undefined;
1355
1415
  _id: string;
1356
1416
  items: {
1357
1417
  code?: string | null | undefined;
@@ -4,6 +4,7 @@ import { type RecentPublish } from '@/api/adjustment-template';
4
4
  export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"wastageTable", import("pinia")._UnwrapAll<Pick<{
5
5
  columnDefs: ColumnDef<{
6
6
  _rev?: string | null | undefined;
7
+ updatedAt?: string | null | undefined;
7
8
  locations?: {
8
9
  inventory?: {
9
10
  _id: string;
@@ -95,6 +96,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
95
96
  };
96
97
  };
97
98
  }[] | null | undefined;
99
+ updatedBy?: {
100
+ name: string;
101
+ id: string;
102
+ } | null | undefined;
98
103
  _id: string;
99
104
  items: {
100
105
  code?: string | null | undefined;
@@ -129,6 +134,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
129
134
  }>;
130
135
  templates: import("vue").Ref<{
131
136
  _rev: string;
137
+ updatedAt?: string | null | undefined;
132
138
  locations?: {
133
139
  inventory?: {
134
140
  _id: string;
@@ -220,6 +226,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
220
226
  };
221
227
  };
222
228
  }[] | null | undefined;
229
+ updatedBy?: {
230
+ name: string;
231
+ id: string;
232
+ } | null | undefined;
223
233
  _id: string;
224
234
  items: {
225
235
  code?: string | null | undefined;
@@ -232,6 +242,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
232
242
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
233
243
  }[], ({
234
244
  _rev?: string | null | undefined;
245
+ updatedAt?: string | null | undefined;
235
246
  locations?: {
236
247
  inventory?: {
237
248
  _id: string;
@@ -323,6 +334,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
323
334
  };
324
335
  };
325
336
  }[] | null | undefined;
337
+ updatedBy?: {
338
+ name: string;
339
+ id: string;
340
+ } | null | undefined;
326
341
  _id: string;
327
342
  items: {
328
343
  code?: string | null | undefined;
@@ -335,6 +350,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
335
350
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
336
351
  } & RevisionIdMeta)[] | {
337
352
  _rev: string;
353
+ updatedAt?: string | null | undefined;
338
354
  locations?: {
339
355
  inventory?: {
340
356
  _id: string;
@@ -426,6 +442,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
426
442
  };
427
443
  };
428
444
  }[] | null | undefined;
445
+ updatedBy?: {
446
+ name: string;
447
+ id: string;
448
+ } | null | undefined;
429
449
  _id: string;
430
450
  items: {
431
451
  code?: string | null | undefined;
@@ -453,6 +473,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
453
473
  }, "loading" | "columnDefs" | "recentPublish" | "templates" | "reasons">>, Pick<{
454
474
  columnDefs: ColumnDef<{
455
475
  _rev?: string | null | undefined;
476
+ updatedAt?: string | null | undefined;
456
477
  locations?: {
457
478
  inventory?: {
458
479
  _id: string;
@@ -544,6 +565,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
544
565
  };
545
566
  };
546
567
  }[] | null | undefined;
568
+ updatedBy?: {
569
+ name: string;
570
+ id: string;
571
+ } | null | undefined;
547
572
  _id: string;
548
573
  items: {
549
574
  code?: string | null | undefined;
@@ -578,6 +603,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
578
603
  }>;
579
604
  templates: import("vue").Ref<{
580
605
  _rev: string;
606
+ updatedAt?: string | null | undefined;
581
607
  locations?: {
582
608
  inventory?: {
583
609
  _id: string;
@@ -669,6 +695,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
669
695
  };
670
696
  };
671
697
  }[] | null | undefined;
698
+ updatedBy?: {
699
+ name: string;
700
+ id: string;
701
+ } | null | undefined;
672
702
  _id: string;
673
703
  items: {
674
704
  code?: string | null | undefined;
@@ -681,6 +711,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
681
711
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
682
712
  }[], ({
683
713
  _rev?: string | null | undefined;
714
+ updatedAt?: string | null | undefined;
684
715
  locations?: {
685
716
  inventory?: {
686
717
  _id: string;
@@ -772,6 +803,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
772
803
  };
773
804
  };
774
805
  }[] | null | undefined;
806
+ updatedBy?: {
807
+ name: string;
808
+ id: string;
809
+ } | null | undefined;
775
810
  _id: string;
776
811
  items: {
777
812
  code?: string | null | undefined;
@@ -784,6 +819,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
784
819
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
785
820
  } & RevisionIdMeta)[] | {
786
821
  _rev: string;
822
+ updatedAt?: string | null | undefined;
787
823
  locations?: {
788
824
  inventory?: {
789
825
  _id: string;
@@ -875,6 +911,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
875
911
  };
876
912
  };
877
913
  }[] | null | undefined;
914
+ updatedBy?: {
915
+ name: string;
916
+ id: string;
917
+ } | null | undefined;
878
918
  _id: string;
879
919
  items: {
880
920
  code?: string | null | undefined;
@@ -902,6 +942,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
902
942
  }, never>, Pick<{
903
943
  columnDefs: ColumnDef<{
904
944
  _rev?: string | null | undefined;
945
+ updatedAt?: string | null | undefined;
905
946
  locations?: {
906
947
  inventory?: {
907
948
  _id: string;
@@ -993,6 +1034,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
993
1034
  };
994
1035
  };
995
1036
  }[] | null | undefined;
1037
+ updatedBy?: {
1038
+ name: string;
1039
+ id: string;
1040
+ } | null | undefined;
996
1041
  _id: string;
997
1042
  items: {
998
1043
  code?: string | null | undefined;
@@ -1027,6 +1072,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1027
1072
  }>;
1028
1073
  templates: import("vue").Ref<{
1029
1074
  _rev: string;
1075
+ updatedAt?: string | null | undefined;
1030
1076
  locations?: {
1031
1077
  inventory?: {
1032
1078
  _id: string;
@@ -1118,6 +1164,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1118
1164
  };
1119
1165
  };
1120
1166
  }[] | null | undefined;
1167
+ updatedBy?: {
1168
+ name: string;
1169
+ id: string;
1170
+ } | null | undefined;
1121
1171
  _id: string;
1122
1172
  items: {
1123
1173
  code?: string | null | undefined;
@@ -1130,6 +1180,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1130
1180
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
1131
1181
  }[], ({
1132
1182
  _rev?: string | null | undefined;
1183
+ updatedAt?: string | null | undefined;
1133
1184
  locations?: {
1134
1185
  inventory?: {
1135
1186
  _id: string;
@@ -1221,6 +1272,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1221
1272
  };
1222
1273
  };
1223
1274
  }[] | null | undefined;
1275
+ updatedBy?: {
1276
+ name: string;
1277
+ id: string;
1278
+ } | null | undefined;
1224
1279
  _id: string;
1225
1280
  items: {
1226
1281
  code?: string | null | undefined;
@@ -1233,6 +1288,7 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1233
1288
  type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
1234
1289
  } & RevisionIdMeta)[] | {
1235
1290
  _rev: string;
1291
+ updatedAt?: string | null | undefined;
1236
1292
  locations?: {
1237
1293
  inventory?: {
1238
1294
  _id: string;
@@ -1324,6 +1380,10 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1324
1380
  };
1325
1381
  };
1326
1382
  }[] | null | undefined;
1383
+ updatedBy?: {
1384
+ name: string;
1385
+ id: string;
1386
+ } | null | undefined;
1327
1387
  _id: string;
1328
1388
  items: {
1329
1389
  code?: string | null | undefined;
@@ -48,6 +48,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
48
48
  };
49
49
  id: string;
50
50
  }[] | null | undefined;
51
+ adjustmentSnapshot?: {
52
+ skuId: string;
53
+ adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
54
+ amount: number;
55
+ precision: number;
56
+ }>>;
57
+ }[] | null | undefined;
58
+ opening?: {
59
+ balance: {
60
+ amount: number;
61
+ precision: number;
62
+ };
63
+ skuId: string;
64
+ }[] | null | undefined;
51
65
  approvedAt?: string | null | undefined;
52
66
  approvedBy?: {
53
67
  name: string;
@@ -412,6 +426,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
412
426
  };
413
427
  id: string;
414
428
  }[] | null | undefined;
429
+ adjustmentSnapshot?: {
430
+ skuId: string;
431
+ adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
432
+ amount: number;
433
+ precision: number;
434
+ }>>;
435
+ }[] | null | undefined;
436
+ opening?: {
437
+ balance: {
438
+ amount: number;
439
+ precision: number;
440
+ };
441
+ skuId: string;
442
+ }[] | null | undefined;
415
443
  approvedAt?: string | null | undefined;
416
444
  approvedBy?: {
417
445
  name: string;
@@ -776,6 +804,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
776
804
  };
777
805
  id: string;
778
806
  }[] | null | undefined;
807
+ adjustmentSnapshot?: {
808
+ skuId: string;
809
+ adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
810
+ amount: number;
811
+ precision: number;
812
+ }>>;
813
+ }[] | null | undefined;
814
+ opening?: {
815
+ balance: {
816
+ amount: number;
817
+ precision: number;
818
+ };
819
+ skuId: string;
820
+ }[] | null | undefined;
779
821
  approvedAt?: string | null | undefined;
780
822
  approvedBy?: {
781
823
  name: string;
@@ -1140,6 +1182,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1140
1182
  };
1141
1183
  id: string;
1142
1184
  }[] | null | undefined;
1185
+ adjustmentSnapshot?: {
1186
+ skuId: string;
1187
+ adjustmentsByType: Partial<Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE", {
1188
+ amount: number;
1189
+ precision: number;
1190
+ }>>;
1191
+ }[] | null | undefined;
1192
+ opening?: {
1193
+ balance: {
1194
+ amount: number;
1195
+ precision: number;
1196
+ };
1197
+ skuId: string;
1198
+ }[] | null | undefined;
1143
1199
  approvedAt?: string | null | undefined;
1144
1200
  approvedBy?: {
1145
1201
  name: string;
@@ -5,7 +5,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
5
5
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
6
6
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
7
7
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
8
- exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
8
+ exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[], closingAdjustmentBalance?: FdoSkuBalance[]) => Promise<void>;
9
9
  refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
10
10
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
11
11
  viewClosingDraftProps: import("vue").Ref<any, any>;
@@ -16,7 +16,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
16
16
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
17
17
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
18
18
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
19
- exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
19
+ exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[], closingAdjustmentBalance?: FdoSkuBalance[]) => Promise<void>;
20
20
  refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
21
21
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
22
22
  viewClosingDraftProps: import("vue").Ref<any, any>;
@@ -27,7 +27,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
27
27
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
28
28
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
29
29
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
30
- exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
30
+ exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[], closingAdjustmentBalance?: FdoSkuBalance[]) => Promise<void>;
31
31
  refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
32
32
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
33
33
  viewClosingDraftProps: import("vue").Ref<any, any>;