@feedmepos/mf-inventory-portal 1.0.9 → 1.0.10-dev.2

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 (107) hide show
  1. package/dist/{App-RT4bBubX.js → App-COPx00z6.js} +50 -49
  2. package/dist/{ApprovalView-BgOWHNMD.js → ApprovalView-DEtUW_BD.js} +24 -24
  3. package/dist/{BindingsDialog-Dip74zuT.js → BindingsDialog-8WUk3Dv3.js} +2 -2
  4. package/dist/{BindingsPicker-DMQXwEn4.js → BindingsPicker-D8ABQZWj.js} +7 -7
  5. package/dist/{BindingsTable-Czz32F7d.js → BindingsTable-E4ObCYZW.js} +5 -5
  6. package/dist/{ClosingDraftView-Ps4DgRNG.js → ClosingDraftView-BuwTXzoD.js} +499 -498
  7. package/dist/{ClosingTemplateView-EjVLgUCH.js → ClosingTemplateView-Dwlu2WDi.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-C52aY34D.js → DeliveryOrderPrintPreview-CZQP0ZBf.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MSqPw_6t.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIpktJ_p.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DbN_e9U8.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAsfttD3.js} +51 -51
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DHuB4hRb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtLdE9Qw.js} +1 -1
  12. package/dist/{IngredientGroupView-CRTjNc-p.js → IngredientGroupView-DKncarkj.js} +11 -11
  13. package/dist/{IngredientsView-CuLOu_v9.js → IngredientsView-DJhR4pNL.js} +15 -14
  14. package/dist/IntegrationView-DbehNBiT.js +10361 -0
  15. package/dist/{InventoryBindingForm-C1NfSdOs.js → InventoryBindingForm-CakKTaAx.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BJ7h3Nr6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-qrYebXqE.js} +94 -89
  17. package/dist/{InventoryBindingSummary-CFjSwhxA.js → InventoryBindingSummary-ax4kqODn.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B73N8AvB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD8iRcNk.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-rve3vJhu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D13DAIwe.js} +10 -10
  20. package/dist/{PublishView-Bj0JawUb.js → PublishView-BMQzmmkT.js} +12 -12
  21. package/dist/{PurchaseOrderPrintPreview-DCAZVrDM.js → PurchaseOrderPrintPreview-CdbxZWLq.js} +4 -4
  22. package/dist/{ReceiveRequestView-B_bWd1hC.js → ReceiveRequestView-Blxchs0k.js} +53 -52
  23. package/dist/RecipeView-Bnigp2lS.js +8493 -0
  24. package/dist/{StockView-CsZ2hfAY.js → StockView-B4p6XQPR.js} +73 -72
  25. package/dist/{SupplierView-BUaouKYm.js → SupplierView-ojORzTSY.js} +12 -11
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-G478rFCP.js +1894 -0
  27. package/dist/{TransferTemplateView-Rq7N13OR.js → TransferTemplateView-DTN23wTJ.js} +291 -290
  28. package/dist/{UnitView-C9j2RjtY.js → UnitView-w-bUgjIw.js} +23 -23
  29. package/dist/{WarehouseView-Ct6TWKej.js → WarehouseView-cJ7u4vTr.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +110 -44
  33. package/dist/api/netsuite.d.ts +191 -8
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/{app-Cryb1Kx8.js → app-DtLEhFCD.js} +19871 -19809
  36. package/dist/app.d.ts +7 -7
  37. package/dist/app.js +2 -2
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +30 -8
  39. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  40. package/dist/components/shell/inventory/binding-ui.vue.d.ts +27 -5
  41. package/dist/composable/usePromise.d.ts +41 -0
  42. package/dist/{decimal-Ko0ukH7B.js → decimal-D0mDm48J.js} +1 -1
  43. package/dist/feature-GZEf4CLT.js +17427 -0
  44. package/dist/{format-unit-display-C1sTywhb.js → format-unit-display-Dl7kbJn1.js} +60 -60
  45. package/dist/{index-BAyyesj2.js → index-BglOiNaU.js} +7 -6
  46. package/dist/{index-WgH7CKAS.js → index-DKLr1Nm9.js} +1 -1
  47. package/dist/main.d.ts +1 -0
  48. package/dist/{stock-BVCXjojk.js → stock-V0Qm2pTD.js} +3 -3
  49. package/dist/stores/feature.d.ts +3 -20
  50. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  51. package/dist/stores/integration/netsuite.d.ts +22 -7
  52. package/dist/stores/inventory.d.ts +132 -44
  53. package/dist/stores/location.d.ts +137 -137
  54. package/dist/{supplier-Brxhm840.js → supplier-DK4PWcz4.js} +4 -4
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-DCAYNC6e.js → use-ingredient-select-dialog-BfJ-qHni.js} +1 -1
  57. package/dist/{use-inventory-binding-dialog-TYwx9mzF.js → use-inventory-binding-dialog-C5IYjwW5.js} +1 -1
  58. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  59. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  60. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  61. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  62. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +140 -136
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +420 -408
  64. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  67. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  68. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  69. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  70. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  71. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  72. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  74. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  75. package/dist/views/integration/components/netsuite/InventoryTransfer.vue.d.ts +48 -0
  76. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +180 -0
  77. package/dist/views/integration/components/netsuite/NetSuiteSideSheet.vue.d.ts +24 -0
  78. package/dist/views/integration/components/netsuite/NetSuiteSideSheetProps.d.ts +8 -0
  79. package/dist/views/integration/components/netsuite/{AddLocationDialog.vue.d.ts → business/AddLocationDialog.vue.d.ts} +204 -204
  80. package/dist/views/integration/components/netsuite/{LocationConfigurationDialog.vue.d.ts → business/BusinessNetSuiteSideSheet.vue.d.ts} +3 -3
  81. package/dist/views/integration/components/netsuite/{LocationConfigurationDialogProps.d.ts → business/BusinessNetSuiteSideSheetProps.d.ts} +1 -5
  82. package/dist/views/integration/components/netsuite/{NetSuiteLocationField.vue.d.ts → business/NetSuiteLocationField.vue.d.ts} +11 -9
  83. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  84. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  85. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  86. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  87. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  88. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  89. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  90. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  91. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +46 -2
  92. package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
  93. package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
  94. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  95. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  96. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  97. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  98. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  99. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  100. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  101. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  102. package/dist/vue-i18n-3LoKMrMa.js +2365 -0
  103. package/package.json +8 -5
  104. package/dist/IntegrationView-DXxwE0z8.js +0 -2148
  105. package/dist/RecipeView-m7aSOTrT.js +0 -616
  106. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DqImAdxA.js +0 -1746
  107. package/dist/vue-i18n-B-kKlljK.js +0 -2365
@@ -5,8 +5,8 @@ export declare const useInventoryApi: () => {
5
5
  _id: string;
6
6
  updatedAt: string;
7
7
  } | null | undefined;
8
- type: "restaurant" | "warehouse";
9
8
  name: string;
9
+ type: "restaurant" | "warehouse";
10
10
  acceptRequest: boolean;
11
11
  dbName: string;
12
12
  doc: {
@@ -14,26 +14,14 @@ export declare const useInventoryApi: () => {
14
14
  businessId: string;
15
15
  profile: {
16
16
  code?: string | null | undefined;
17
+ url?: string | null | undefined;
18
+ description?: string | null | undefined;
17
19
  _id?: string | null | undefined;
18
- name?: string | undefined;
19
- address?: {
20
- coordinates?: number[] | null | undefined;
21
- line2?: string | null | undefined;
22
- state: string;
23
- country: string;
24
- line1: string;
25
- city: string;
26
- postcode: string;
27
- } | undefined;
28
- email?: string | undefined;
29
- regNo?: string | undefined;
30
- sstRegNo?: string | null | undefined;
31
- phoneNo?: string | undefined;
32
20
  legalName?: string | null | undefined;
21
+ sstRegNo?: string | null | undefined;
33
22
  discovery?: boolean | null | undefined;
34
23
  coverPhoto?: string | null | undefined;
35
24
  thumbnailPhoto?: string | null | undefined;
36
- description?: string | null | undefined;
37
25
  photos?: string[] | null | undefined;
38
26
  operatingHours?: {
39
27
  0: {
@@ -87,7 +75,19 @@ export declare const useInventoryApi: () => {
87
75
  };
88
76
  } | null | undefined;
89
77
  tags?: string[] | null | undefined;
90
- url?: string | null | undefined;
78
+ name: string;
79
+ address: {
80
+ coordinates?: number[] | null | undefined;
81
+ line2?: string | null | undefined;
82
+ state: string;
83
+ country: string;
84
+ line1: string;
85
+ city: string;
86
+ postcode: string;
87
+ };
88
+ email: string;
89
+ phoneNo: string;
90
+ regNo: string;
91
91
  };
92
92
  };
93
93
  }[]>;
@@ -121,12 +121,12 @@ export declare const useInventoryApi: () => {
121
121
  precision: number;
122
122
  };
123
123
  } | null | undefined;
124
+ id: string;
124
125
  type: "RECIPE" | "SKU" | "SKU_GROUP";
125
126
  amount: {
126
127
  amount: number;
127
128
  precision: number;
128
129
  };
129
- id: string;
130
130
  }[] | null | undefined;
131
131
  } | null | undefined;
132
132
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -152,6 +152,9 @@ export declare const useInventoryApi: () => {
152
152
  mid: number;
153
153
  } | null | undefined;
154
154
  customAttributes?: Record<string, any> | null | undefined;
155
+ _id: string;
156
+ name: string;
157
+ code: string;
155
158
  unit: {
156
159
  _id: string;
157
160
  name: string;
@@ -167,12 +170,31 @@ export declare const useInventoryApi: () => {
167
170
  };
168
171
  }[];
169
172
  };
170
- code: string;
171
- _id: string;
172
- name: string;
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: {
@@ -185,16 +207,18 @@ export declare const useInventoryApi: () => {
185
207
  precision: number;
186
208
  };
187
209
  } | null | undefined;
210
+ id: string;
188
211
  type: "RECIPE" | "SKU" | "SKU_GROUP";
189
212
  amount: {
190
213
  amount: number;
191
214
  precision: number;
192
215
  };
193
- id: string;
194
216
  }[];
195
217
  }[] | null | undefined;
196
218
  skuGroup?: {
197
219
  ref?: string | null | undefined;
220
+ _id: string;
221
+ name: string;
198
222
  unit: {
199
223
  _id: string;
200
224
  name: string;
@@ -210,8 +234,6 @@ export declare const useInventoryApi: () => {
210
234
  };
211
235
  }[];
212
236
  };
213
- _id: string;
214
- name: string;
215
237
  skus: {
216
238
  trackingMeasurement?: string | null | undefined;
217
239
  convert?: {
@@ -226,12 +248,12 @@ export declare const useInventoryApi: () => {
226
248
  precision: number;
227
249
  };
228
250
  } | null | undefined;
251
+ id: string;
229
252
  type: "RECIPE" | "SKU" | "SKU_GROUP";
230
253
  amount: {
231
254
  amount: number;
232
255
  precision: number;
233
256
  };
234
- id: string;
235
257
  }[] | null | undefined;
236
258
  } | null | undefined;
237
259
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -257,9 +279,9 @@ export declare const useInventoryApi: () => {
257
279
  mid: number;
258
280
  } | null | undefined;
259
281
  customAttributes?: Record<string, any> | null | undefined;
260
- code: string;
261
282
  _id: string;
262
283
  name: string;
284
+ code: string;
263
285
  }[];
264
286
  }[] | null | undefined;
265
287
  updatedAt?: string | null | undefined;
@@ -295,12 +317,12 @@ export declare const useInventoryApi: () => {
295
317
  precision: number;
296
318
  };
297
319
  } | null | undefined;
320
+ id: string;
298
321
  type: "RECIPE" | "SKU" | "SKU_GROUP";
299
322
  amount: {
300
323
  amount: number;
301
324
  precision: number;
302
325
  };
303
- id: string;
304
326
  }[] | null | undefined;
305
327
  } | null | undefined;
306
328
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -326,6 +348,9 @@ export declare const useInventoryApi: () => {
326
348
  mid: number;
327
349
  } | null | undefined;
328
350
  customAttributes?: Record<string, any> | null | undefined;
351
+ _id: string;
352
+ name: string;
353
+ code: string;
329
354
  unit: {
330
355
  _id: string;
331
356
  name: string;
@@ -341,12 +366,31 @@ export declare const useInventoryApi: () => {
341
366
  };
342
367
  }[];
343
368
  };
344
- code: string;
345
- _id: string;
346
- name: string;
347
369
  }[] | null | undefined;
348
370
  recipe?: {
349
371
  customAttributes?: Record<string, any> | null | undefined;
372
+ overrides?: {
373
+ rule?: any;
374
+ id: string;
375
+ name: string;
376
+ override: {
377
+ measurement?: {
378
+ id: string;
379
+ name: string;
380
+ abbrev: string;
381
+ conversion: {
382
+ amount: number;
383
+ precision: number;
384
+ };
385
+ } | null | undefined;
386
+ id: string;
387
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
388
+ amount: {
389
+ amount: number;
390
+ precision: number;
391
+ };
392
+ }[];
393
+ }[] | null | undefined;
350
394
  _id: string;
351
395
  name: string;
352
396
  contains: {
@@ -359,16 +403,18 @@ export declare const useInventoryApi: () => {
359
403
  precision: number;
360
404
  };
361
405
  } | null | undefined;
406
+ id: string;
362
407
  type: "RECIPE" | "SKU" | "SKU_GROUP";
363
408
  amount: {
364
409
  amount: number;
365
410
  precision: number;
366
411
  };
367
- id: string;
368
412
  }[];
369
413
  }[] | null | undefined;
370
414
  skuGroup?: {
371
415
  ref?: string | null | undefined;
416
+ _id: string;
417
+ name: string;
372
418
  unit: {
373
419
  _id: string;
374
420
  name: string;
@@ -384,8 +430,6 @@ export declare const useInventoryApi: () => {
384
430
  };
385
431
  }[];
386
432
  };
387
- _id: string;
388
- name: string;
389
433
  skus: {
390
434
  trackingMeasurement?: string | null | undefined;
391
435
  convert?: {
@@ -400,12 +444,12 @@ export declare const useInventoryApi: () => {
400
444
  precision: number;
401
445
  };
402
446
  } | null | undefined;
447
+ id: string;
403
448
  type: "RECIPE" | "SKU" | "SKU_GROUP";
404
449
  amount: {
405
450
  amount: number;
406
451
  precision: number;
407
452
  };
408
- id: string;
409
453
  }[] | null | undefined;
410
454
  } | null | undefined;
411
455
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -431,9 +475,9 @@ export declare const useInventoryApi: () => {
431
475
  mid: number;
432
476
  } | null | undefined;
433
477
  customAttributes?: Record<string, any> | null | undefined;
434
- code: string;
435
478
  _id: string;
436
479
  name: string;
480
+ code: string;
437
481
  }[];
438
482
  }[] | null | undefined;
439
483
  updatedAt?: string | null | undefined;
@@ -469,12 +513,12 @@ export declare const useInventoryApi: () => {
469
513
  precision: number;
470
514
  };
471
515
  } | null | undefined;
516
+ id: string;
472
517
  type: "RECIPE" | "SKU" | "SKU_GROUP";
473
518
  amount: {
474
519
  amount: number;
475
520
  precision: number;
476
521
  };
477
- id: string;
478
522
  }[] | null | undefined;
479
523
  } | null | undefined;
480
524
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -500,6 +544,9 @@ export declare const useInventoryApi: () => {
500
544
  mid: number;
501
545
  } | null | undefined;
502
546
  customAttributes?: Record<string, any> | null | undefined;
547
+ _id: string;
548
+ name: string;
549
+ code: string;
503
550
  unit: {
504
551
  _id: string;
505
552
  name: string;
@@ -515,12 +562,31 @@ export declare const useInventoryApi: () => {
515
562
  };
516
563
  }[];
517
564
  };
518
- code: string;
519
- _id: string;
520
- name: string;
521
565
  }[] | null | undefined;
522
566
  recipe?: {
523
567
  customAttributes?: Record<string, any> | null | undefined;
568
+ overrides?: {
569
+ rule?: any;
570
+ id: string;
571
+ name: string;
572
+ override: {
573
+ measurement?: {
574
+ id: string;
575
+ name: string;
576
+ abbrev: string;
577
+ conversion: {
578
+ amount: number;
579
+ precision: number;
580
+ };
581
+ } | null | undefined;
582
+ id: string;
583
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
584
+ amount: {
585
+ amount: number;
586
+ precision: number;
587
+ };
588
+ }[];
589
+ }[] | null | undefined;
524
590
  _id: string;
525
591
  name: string;
526
592
  contains: {
@@ -533,16 +599,18 @@ export declare const useInventoryApi: () => {
533
599
  precision: number;
534
600
  };
535
601
  } | null | undefined;
602
+ id: string;
536
603
  type: "RECIPE" | "SKU" | "SKU_GROUP";
537
604
  amount: {
538
605
  amount: number;
539
606
  precision: number;
540
607
  };
541
- id: string;
542
608
  }[];
543
609
  }[] | null | undefined;
544
610
  skuGroup?: {
545
611
  ref?: string | null | undefined;
612
+ _id: string;
613
+ name: string;
546
614
  unit: {
547
615
  _id: string;
548
616
  name: string;
@@ -558,8 +626,6 @@ export declare const useInventoryApi: () => {
558
626
  };
559
627
  }[];
560
628
  };
561
- _id: string;
562
- name: string;
563
629
  skus: {
564
630
  trackingMeasurement?: string | null | undefined;
565
631
  convert?: {
@@ -574,12 +640,12 @@ export declare const useInventoryApi: () => {
574
640
  precision: number;
575
641
  };
576
642
  } | null | undefined;
643
+ id: string;
577
644
  type: "RECIPE" | "SKU" | "SKU_GROUP";
578
645
  amount: {
579
646
  amount: number;
580
647
  precision: number;
581
648
  };
582
- id: string;
583
649
  }[] | null | undefined;
584
650
  } | null | undefined;
585
651
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -605,9 +671,9 @@ export declare const useInventoryApi: () => {
605
671
  mid: number;
606
672
  } | null | undefined;
607
673
  customAttributes?: Record<string, any> | null | undefined;
608
- code: string;
609
674
  _id: string;
610
675
  name: string;
676
+ code: string;
611
677
  }[];
612
678
  }[] | null | undefined;
613
679
  updatedAt?: string | null | undefined;
@@ -25,9 +25,9 @@ export declare const useNetSuiteApi: () => {
25
25
  }[];
26
26
  enable: boolean;
27
27
  locations: {
28
- type: "restaurant" | "warehouse";
29
28
  id: string;
30
29
  name: string;
30
+ type: "restaurant" | "warehouse";
31
31
  netSuiteId: string;
32
32
  subsidiaryId: string;
33
33
  }[];
@@ -101,9 +101,9 @@ export declare const useNetSuiteApi: () => {
101
101
  }[];
102
102
  enable: boolean;
103
103
  locations: {
104
- type: "restaurant" | "warehouse";
105
104
  id: string;
106
105
  name: string;
106
+ type: "restaurant" | "warehouse";
107
107
  netSuiteId: string;
108
108
  subsidiaryId: string;
109
109
  }[];
@@ -148,11 +148,7 @@ export declare const useNetSuiteApi: () => {
148
148
  }[];
149
149
  realm: string;
150
150
  }>;
151
- getNetSuiteLocationOptions(): Promise<{
152
- netsuiteId: string;
153
- name: string;
154
- subsidiaryName: string;
155
- }[]>;
151
+ getNetSuiteLocationOptions(): Promise<NSDtoLocationSuiteQLOption[]>;
156
152
  getNetSuiteLocation(): Promise<any>;
157
153
  syncPurchaseOrder(locationId: string, poId: string): Promise<{
158
154
  accessToken?: string | null | undefined;
@@ -180,9 +176,9 @@ export declare const useNetSuiteApi: () => {
180
176
  }[];
181
177
  enable: boolean;
182
178
  locations: {
183
- type: "restaurant" | "warehouse";
184
179
  id: string;
185
180
  name: string;
181
+ type: "restaurant" | "warehouse";
186
182
  netSuiteId: string;
187
183
  subsidiaryId: string;
188
184
  }[];
@@ -228,6 +224,193 @@ export declare const useNetSuiteApi: () => {
228
224
  realm: string;
229
225
  }>;
230
226
  getItemAverageCosts(locationId: string): Promise<Record<string, number>>;
227
+ createInventoryTransfer(locationId: string, payload: InventoryTransferCreateDto): Promise<{
228
+ remark?: string | null | undefined;
229
+ ref?: string | null | undefined;
230
+ reason?: string | null | undefined;
231
+ skus?: {
232
+ history?: {
233
+ remark: string;
234
+ amounts: {
235
+ _id?: string | null | undefined;
236
+ remark?: string | null | undefined;
237
+ ref?: string | null | undefined;
238
+ measurement?: {
239
+ id: string;
240
+ name: string;
241
+ abbrev: string;
242
+ conversion: {
243
+ amount: number;
244
+ precision: number;
245
+ };
246
+ } | null | undefined;
247
+ cost?: {
248
+ 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";
249
+ amount: number;
250
+ precision: number;
251
+ } | null | undefined;
252
+ physicalAmounts?: {
253
+ measurement?: {
254
+ id: string;
255
+ name: string;
256
+ abbrev: string;
257
+ conversion: {
258
+ amount: number;
259
+ precision: number;
260
+ };
261
+ } | null | undefined;
262
+ amount: {
263
+ amount: number;
264
+ precision: number;
265
+ };
266
+ }[] | null | undefined;
267
+ type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
268
+ amount: {
269
+ amount: number;
270
+ precision: number;
271
+ };
272
+ }[];
273
+ }[] | null | undefined;
274
+ fromCostBalances?: {
275
+ adjustmentId?: string | null | undefined;
276
+ amount: {
277
+ amount: number;
278
+ precision: number;
279
+ };
280
+ cost: {
281
+ 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";
282
+ amount: number;
283
+ precision: number;
284
+ };
285
+ }[] | null | undefined;
286
+ toCostBalances?: {
287
+ adjustmentId?: string | null | undefined;
288
+ amount: {
289
+ amount: number;
290
+ precision: number;
291
+ };
292
+ cost: {
293
+ 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";
294
+ amount: number;
295
+ precision: number;
296
+ };
297
+ }[] | null | undefined;
298
+ sku: {
299
+ trackingMeasurement?: string | null | undefined;
300
+ convert?: {
301
+ measurement?: string | null | undefined;
302
+ inventoryBindings?: {
303
+ measurement?: {
304
+ id: string;
305
+ name: string;
306
+ abbrev: string;
307
+ conversion: {
308
+ amount: number;
309
+ precision: number;
310
+ };
311
+ } | null | undefined;
312
+ id: string;
313
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
314
+ amount: {
315
+ amount: number;
316
+ precision: number;
317
+ };
318
+ }[] | null | undefined;
319
+ } | null | undefined;
320
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
321
+ defaultCost?: {
322
+ measurement?: {
323
+ id: string;
324
+ name: string;
325
+ abbrev: string;
326
+ conversion: {
327
+ amount: number;
328
+ precision: number;
329
+ };
330
+ } | null | undefined;
331
+ costPerUnit: {
332
+ 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";
333
+ amount: number;
334
+ precision: number;
335
+ };
336
+ } | null | undefined;
337
+ operationalGroup?: string | null | undefined;
338
+ thresholds?: {
339
+ low: number;
340
+ mid: number;
341
+ } | null | undefined;
342
+ customAttributes?: Record<string, any> | null | undefined;
343
+ _id: string;
344
+ name: string;
345
+ code: string;
346
+ unit: {
347
+ _id: string;
348
+ name: string;
349
+ abbrev: string;
350
+ precision: number;
351
+ measurements: {
352
+ id: string;
353
+ name: string;
354
+ abbrev: string;
355
+ conversion: {
356
+ amount: number;
357
+ precision: number;
358
+ };
359
+ }[];
360
+ };
361
+ };
362
+ amounts: {
363
+ _id?: string | null | undefined;
364
+ remark?: string | null | undefined;
365
+ ref?: string | null | undefined;
366
+ measurement?: {
367
+ id: string;
368
+ name: string;
369
+ abbrev: string;
370
+ conversion: {
371
+ amount: number;
372
+ precision: number;
373
+ };
374
+ } | null | undefined;
375
+ cost?: {
376
+ 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";
377
+ amount: number;
378
+ precision: number;
379
+ } | null | undefined;
380
+ physicalAmounts?: {
381
+ measurement?: {
382
+ id: string;
383
+ name: string;
384
+ abbrev: string;
385
+ conversion: {
386
+ amount: number;
387
+ precision: number;
388
+ };
389
+ } | null | undefined;
390
+ amount: {
391
+ amount: number;
392
+ precision: number;
393
+ };
394
+ }[] | null | undefined;
395
+ type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING" | "USAGE" | "WASTAGE";
396
+ amount: {
397
+ amount: number;
398
+ precision: number;
399
+ };
400
+ }[];
401
+ fromBalance: {
402
+ amount: number;
403
+ precision: number;
404
+ };
405
+ toBalance: {
406
+ amount: number;
407
+ precision: number;
408
+ };
409
+ }[] | null | undefined;
410
+ effectiveAt?: string | null | undefined;
411
+ salesAdjustmentId?: string | null | undefined;
412
+ _id: string;
413
+ }>;
231
414
  urls: {
232
415
  portalBackendUrl: string;
233
416
  netSuiteBackendUrl: string;
@@ -3,7 +3,9 @@ export type WithToInventoryLocation = {
3
3
  toInventoryLocation: FdoInventoryLocation;
4
4
  };
5
5
  export declare const usePurchaseOrderApi: () => {
6
- readRequests(dbName?: string): Promise<WithRev<FdoPurchaseOrderRequest & WithToInventoryLocation>[]>;
6
+ readRequests(dbName?: string, includeReturnRequest?: boolean): Promise<WithRev<FdoPurchaseOrderRequest & WithToInventoryLocation>[]>;
7
+ readRequestById(_id: string, dbName?: string): Promise<FdoPurchaseOrderRequest | null>;
8
+ readRequestByIds(requestIds: string[], dbName?: string): Promise<(FdoPurchaseOrderRequest & WithToInventoryLocation)[]>;
7
9
  getPurchaseOrders({ start, end }: {
8
10
  start: string;
9
11
  end: string;
@@ -11,8 +13,10 @@ export declare const usePurchaseOrderApi: () => {
11
13
  getLatestPurchaseOrderRequest(purchaseOrderId: FdoPurchaseOrder['_id']): Promise<FdoPurchaseOrderRequest | undefined>;
12
14
  getPurchaseOrderById(id: FdoPurchaseOrder['_id']): Promise<WithRev<FdoPurchaseOrder>>;
13
15
  processPurchaseOrder(dto: FdtoPurchaseOrderOperation, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
16
+ processPurchaseOrderV2(dto: FdtoPurchaseOrderOperateV2Request, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
14
17
  createPurchaseOrder(purchase: FdtoCreatePurchaseOrder): Promise<WithRev<FdoPurchaseOrder>>;
15
18
  updatePurchaseOrder(purchase: FdtoUpdatePurchaseOrder): Promise<WithRev<FdoPurchaseOrder>>;
16
19
  importFromXilnex(payload: FdtoXilnexTransferNote): Promise<void>;
20
+ getWorkflowConfig(): Promise<FdoPurchaseOrderWorkflowConfig>;
17
21
  };
18
22
  export declare const purchaseOrderApi: {};