@erp-galoper/types 1.0.582 → 1.0.584

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 (2) hide show
  1. package/openapi.ts +964 -908
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -4150,7 +4150,7 @@ export interface paths {
4150
4150
  cookie?: never;
4151
4151
  };
4152
4152
  /**
4153
- * List Stock Adjustment Headers
4153
+ * List Stock Adjustments
4154
4154
  * @description Endpoint for List Stock Adjustment Documents
4155
4155
  * Responses:
4156
4156
  * - 200: StockAdjustmentHeaderListSchema
@@ -4161,22 +4161,32 @@ export interface paths {
4161
4161
  * - 404: "branchDoesNotExist"
4162
4162
  * - 500: "serverError"
4163
4163
  */
4164
- get: operations["inventory_views_list_stock_adjustment_headers"];
4164
+ get: operations["inventory_views_list_stock_adjustments"];
4165
4165
  put?: never;
4166
4166
  /**
4167
4167
  * Create Stock Adjustment
4168
- * @description Endpoint for creating a new stock adjustment.
4168
+ * @description Endpoint for creating a Stock Adjustment Document
4169
4169
  * Responses:
4170
- * - 201: "stockAdjustmentCreated"
4171
- * - 404: "branchNotFound"
4172
- * - "stockAdjustmentdoesNotExist"
4173
- * - "warehouseDoesNotExist"
4174
- * - "itemDoesNotExist"
4175
- * - "reasonDoesNotExist"
4176
- * - 409: "headerItemConflict"
4177
- * - 403: "permissionDenied"
4178
- * - "noBranchAccess"
4179
- * - 500: "serverError"
4170
+ * - 201: StockAdjustmentSchema
4171
+ * - 400: - branchDoesNotExist
4172
+ * - warehouseDoesNotExist
4173
+ * - itemDoesNotExist
4174
+ * - invalidAdjustmentQuantity - Adjustment quantity is zero or negative
4175
+ * - insufficientQuantity - Not enough quantity available in warehouse for decrease
4176
+ * - itemNotInWarehouse - Item is not available in warehouse
4177
+ * - batchIsRequired - Batch is required but not provided for batch-tracked items
4178
+ * - batchItemMismatch - Batch does not belong to the selected item
4179
+ * - batchNotInWarehouse - Batch is not available in the warehouse
4180
+ * - batchDoesNotExist - The selected batch does not exist
4181
+ * - serialIsRequired - Serial is required but not provided for serial-tracked items
4182
+ * - serialItemMismatch - Serial does not belong to the selected item
4183
+ * - serialNotAvailable - Serial is not in available status
4184
+ * - serialNotInWarehouse - Serial is not present in warehouse
4185
+ * - serialDoesNotExist - The selected serial does not exist
4186
+ * - 403: permissionDenied
4187
+ * - noBranchAccess
4188
+ * - noWarehouseAccess
4189
+ * - 500: serverError
4180
4190
  */
4181
4191
  post: operations["inventory_views_create_stock_adjustment"];
4182
4192
  delete?: never;
@@ -4185,7 +4195,7 @@ export interface paths {
4185
4195
  patch?: never;
4186
4196
  trace?: never;
4187
4197
  };
4188
- "/api/v1/inventory/stock_adjustment/{headerId}/": {
4198
+ "/api/v1/inventory/stock_adjustment/{id}/": {
4189
4199
  parameters: {
4190
4200
  query?: never;
4191
4201
  header?: never;
@@ -4193,61 +4203,54 @@ export interface paths {
4193
4203
  cookie?: never;
4194
4204
  };
4195
4205
  /**
4196
- * Get Stock Adjustment Header Details
4197
- * @description Endpoint for List Stock Adjustment Details for a specific header
4206
+ * Get Stock Adjustment
4207
+ * @description Endpoint for retrieving Stock Adjustment Document
4198
4208
  * Responses:
4199
- * - 200: StockAdjustmentDetailsListSchema
4200
- * - 400: "invalidFilterFormat"
4201
- * - "paginationError"
4209
+ * - 200: StockAdjustmentDetailedSchema
4202
4210
  * - 403: "permissionDenied"
4203
4211
  * - "noBranchAccess"
4204
- * - 404: "branchDoesNotExist"
4205
- * - "stockAdjustmentdoesNotExist"
4212
+ * - 404: "stockAdjustmentNotFound"
4206
4213
  * - 500: "serverError"
4207
4214
  */
4208
- get: operations["inventory_views_get_stock_adjustment_header_details"];
4209
- put?: never;
4210
- post?: never;
4211
- delete?: never;
4212
- options?: never;
4213
- head?: never;
4215
+ get: operations["inventory_views_get_stock_adjustment"];
4214
4216
  /**
4215
4217
  * Update Stock Adjustment
4216
- * @description Endpoint for updating an existing stock adjustment.
4218
+ * @description Endpoint for updating a Stock Adjustment Document
4217
4219
  * Responses:
4218
- * - 200: "stockAdjustmentUpdated"
4219
- * - 404: "branchDoesNotExist"
4220
- * - "stockAdjustmentdoesNotExist"
4221
- * - "warehouseDoesNotExist"
4222
- * - "itemDoesNotExist"
4223
- * - "reasonDoesNotExist"
4224
- * - 409: "headerItemConflict"
4225
- * - 403: "permissionDenied"
4226
- * - "noBranchAccess"
4227
- * - "onlyDraftCanBeUpdated"
4228
- * - 500: "serverError"
4220
+ * - 200: StockAdjustmentSchema
4221
+ * - 400: - branchDoesNotExist
4222
+ * - warehouseDoesNotExist
4223
+ * - itemDoesNotExist
4224
+ * - invalidAdjustmentQuantity - Adjustment quantity is zero or negative
4225
+ * - insufficientQuantity - Not enough quantity available in warehouse for decrease
4226
+ * - itemNotInWarehouse - Item is not available in warehouse
4227
+ * - batchIsRequired - Batch is required but not provided for batch-tracked items
4228
+ * - batchItemMismatch - Batch does not belong to the selected item
4229
+ * - batchNotInWarehouse - Batch is not available in the warehouse
4230
+ * - batchDoesNotExist - The selected batch does not exist
4231
+ * - serialIsRequired - Serial is required but not provided for serial-tracked items
4232
+ * - serialItemMismatch - Serial does not belong to the selected item
4233
+ * - serialNotAvailable - Serial is not in available status
4234
+ * - serialNotInWarehouse - Serial is not present in warehouse
4235
+ * - serialDoesNotExist - The selected serial does not exist
4236
+ * - 403: permissionDenied
4237
+ * - noBranchAccess
4238
+ * - noWarehouseAccess
4239
+ * - documentNotInDraftStatus
4240
+ * - 404: stockAdjustmentNotFound
4241
+ * - 500: serverError
4229
4242
  */
4230
- patch: operations["inventory_views_update_stock_adjustment"];
4231
- trace?: never;
4232
- };
4233
- "/api/v1/inventory/stock_adjustment/header/{headerId}/": {
4234
- parameters: {
4235
- query?: never;
4236
- header?: never;
4237
- path?: never;
4238
- cookie?: never;
4239
- };
4240
- get?: never;
4241
- put?: never;
4243
+ put: operations["inventory_views_update_stock_adjustment"];
4242
4244
  post?: never;
4243
4245
  /**
4244
4246
  * Delete Stock Adjustment
4245
- * @description Endpoint for deleting a stock adjustment.
4247
+ * @description Endpoint for deleting Stock Adjustment Document
4246
4248
  * Responses:
4247
- * - 204 : "stockAdjustmentDeletedSuccessfully"
4248
- * - 403: "onlyDraftCanDelete"
4249
- * - "permissionDenied"
4250
- * - 404: "stockAdjustmentDoesNotExist"
4249
+ * - 204: None
4250
+ * - 403: "permissionDenied"
4251
+ * - "noBranchAccess"
4252
+ * - "onlyDraftCanDelete"
4253
+ * - 404: "stockAdjustmentNotFound"
4251
4254
  * - 500: "serverError"
4252
4255
  */
4253
4256
  delete: operations["inventory_views_delete_stock_adjustment"];
@@ -4256,34 +4259,7 @@ export interface paths {
4256
4259
  patch?: never;
4257
4260
  trace?: never;
4258
4261
  };
4259
- "/api/v1/inventory/stock_adjustment/detail/{detailId}/": {
4260
- parameters: {
4261
- query?: never;
4262
- header?: never;
4263
- path?: never;
4264
- cookie?: never;
4265
- };
4266
- get?: never;
4267
- put?: never;
4268
- post?: never;
4269
- /**
4270
- * Delete Stock Adjustment Detail
4271
- * @description Endpoint for deleting a stock adjustment detail.
4272
- * Responses:
4273
- * - 204 : "StockadjustmentDetailDeleted"
4274
- * - "StockadjustmentDetaildeletedLastItem"
4275
- * - 403: "onlyDraftCanDelete"
4276
- * - "permissionDenied"
4277
- * - 404: "stockAdjustmentDetailNotFound"
4278
- * - 500: "serverError"
4279
- */
4280
- delete: operations["inventory_views_delete_stock_adjustment_detail"];
4281
- options?: never;
4282
- head?: never;
4283
- patch?: never;
4284
- trace?: never;
4285
- };
4286
- "/api/v1/inventory/stock_adjustment/header/{headerId}/details/": {
4262
+ "/api/v1/inventory/stock_adjustment/{id}/reset-to-draft/": {
4287
4263
  parameters: {
4288
4264
  query?: never;
4289
4265
  header?: never;
@@ -4292,19 +4268,19 @@ export interface paths {
4292
4268
  };
4293
4269
  get?: never;
4294
4270
  put?: never;
4295
- post?: never;
4296
4271
  /**
4297
- * Bulk Delete Stock Adjustment Details
4298
- * @description Endpoint for bulk deleting stock adjustment details.
4272
+ * Reset To Draft
4273
+ * @description Endpoint for setting the status of a stock adjustment document to draft
4299
4274
  * Responses:
4300
- * - 204 : "stockAdjustmentDetailsDeleted"
4301
- * - "stockAdjustmentDetaildeletedLastItem"
4302
- * - 403: "onlyDraftCanDelete"
4303
- * - "permissionDenied"
4304
- * - 404: "stockAdjustmentDetailNotFound"
4275
+ * - 200: StockAdjustmentSchema
4276
+ * - 400: "statusAlreadyDraft"
4277
+ * - 403: "permissionDenied"
4278
+ * - "noBranchAccess"
4279
+ * - 404: "stockAdjustmentNotFound"
4305
4280
  * - 500: "serverError"
4306
4281
  */
4307
- delete: operations["inventory_views_bulk_delete_stock_adjustment_details"];
4282
+ post: operations["inventory_views_reset_to_draft"];
4283
+ delete?: never;
4308
4284
  options?: never;
4309
4285
  head?: never;
4310
4286
  patch?: never;
@@ -4466,15 +4442,12 @@ export interface paths {
4466
4442
  };
4467
4443
  /**
4468
4444
  * List Internal Transfers
4469
- * @description Endpoint for List Opening Quantity Documents
4445
+ * @description Endpoint for List Internal Transfer Documents
4470
4446
  * Responses:
4471
- * - 200: InternalTransferListSchema
4447
+ * - 200: InternalTransferHeaderListSchema
4472
4448
  * - 400: {"message": "Error applying filter {error}", "code": "invalidFilterFormat"}
4473
- * - {"message": "Error applying pagination {error}", "code": "paginationError"}
4474
- * - {"message": "Branch ID is required.", "code": "branchIdRequired"}
4475
4449
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4476
- * - {"message": "You do not have access to this branch.", "code": "noAccessBranch"}
4477
- * - 404: {"message": "Branch does not exist.", "code": "branchDoesNotExist"}
4450
+ * - 404: {"message": "Branch does not exist", "code": "branchDoesNotExist"}
4478
4451
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4479
4452
  */
4480
4453
  get: operations["inventory_transfer_views_list_internal_transfers"];
@@ -4483,20 +4456,29 @@ export interface paths {
4483
4456
  * Create Internal Transfer
4484
4457
  * @description Endpoint for creating Internal Transfer Document
4485
4458
  * Responses:
4486
- * - 201: {"message": "Internal Transfer created successfully.", "code": "internalTransferCreated"}
4487
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4488
- * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4489
- * - 400:
4490
- * - {"message": "branch Invalid pk "{branch}" - object does not exist..", "code": "branchDoesNotExist"}
4491
- * - {"message": "Item Invalid pk "{item}" - object does not exist..", "code": "itemDoesNotExist"}
4492
- * - {"message": "warehouse Invalid pk "{warehouse}" - object does not exist..", "code": "warehouseDoesNotExist"}
4493
- * - {"message": "fromWarehouse Invalid pk "{fromWarehouse}" - object does not exist..", "code": "fromWarehouseDoesNotExist"}
4494
- * - {"message": "toWarehouse Invalid pk "{toWarehouse}" - object does not exist..", "code": "toWarehouseDoesNotExist"}
4495
- * - {"message": "From warehouse cannot be the same as to warehouse", "code": "fromWarehouseSameAsToWarehouse"}
4496
- * - {"message": "Ensure this value is greater than or equal to 0.", "code": "transferredQuantityMinValueNotReached"}
4497
- * - quantityGreaterThanAvailable
4459
+ * - 201: InternalTransferSchema
4460
+ * - 400: - branchDoesNotExist
4461
+ * - invalidRequestedQuantity - Requested quantity is zero or negative
4462
+ * - invalidTransferredQuantity - Transferred quantity is zero or negative
4463
+ * - transferredExceedsRequested - Transferred quantity exceeds requested quantity
4464
+ * - warehousesMustDiffer - Source and destination warehouses are the same
4465
+ * - insufficientQuantity - Not enough quantity available in source warehouse
4466
+ * - itemNotInWarehouse - Item is not available in source warehouse
4467
+ * - batchRequired - Batch is required but not provided for batch-tracked items
4468
+ * - batchItemMismatch - Batch does not belong to the selected item
4469
+ * - insufficientBatchQuantity - Batch doesn't have enough quantity for the transfer
4470
+ * - batchNotInWarehouse - Batch is not available in the source warehouse
4471
+ * - batchDoesNotExist - The selected batch does not exist
4472
+ * - Serial-Related Validation Codes
4473
+ * - serialRequired - Serial is required but not provided for serial-tracked items
4474
+ * - serialItemMismatch - Serial does not belong to the selected item
4475
+ * - serialNotAvailable - Serial is not in available status
4476
+ * - serialNotInWarehouse - Serial is not present in source warehouse
4477
+ * - serialDoesNotExist - The selected serial does not exist
4498
4478
  *
4499
- * - 500: {"message": "An internal server error has occurred {error}", "code": "serverError"}
4479
+ * - 403: permissionDenied
4480
+ * - noBranchAccess
4481
+ * - noWarehouseAccess
4500
4482
  */
4501
4483
  post: operations["inventory_transfer_views_create_internal_transfer"];
4502
4484
  delete?: never;
@@ -4505,110 +4487,55 @@ export interface paths {
4505
4487
  patch?: never;
4506
4488
  trace?: never;
4507
4489
  };
4508
- "/api/v1/inventory/transfer/{headerId}": {
4509
- parameters: {
4510
- query?: never;
4511
- header?: never;
4512
- path?: never;
4513
- cookie?: never;
4514
- };
4515
- /**
4516
- * List Internal Transfer Details
4517
- * @description Endpoint for List Opening Quantity Details
4518
- * Responses:
4519
- * - 200: InternalTransferDetailSchema
4520
- * - 400: {"message": "Error applying filter {error}", "code": "invalidFilterFormat"}
4521
- * - {"message": "Error applying pagination {error}", "code": "paginationError"}
4522
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4523
- * - {"message": "You do not have access to this branch.", "code": "noAccessBranch"}
4524
- * - 404: {"message": "Internal transfer document does not exist ", "code": "InternalTransferDoesNotExist"}
4525
- * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4526
- */
4527
- get: operations["inventory_transfer_views_list_internal_transfer_details"];
4528
- put?: never;
4529
- post?: never;
4530
- delete?: never;
4531
- options?: never;
4532
- head?: never;
4533
- patch?: never;
4534
- trace?: never;
4535
- };
4536
- "/api/v1/inventory/transfer/{headerId}/reset-to-draft/": {
4490
+ "/api/v1/inventory/transfer/{id}/": {
4537
4491
  parameters: {
4538
4492
  query?: never;
4539
4493
  header?: never;
4540
4494
  path?: never;
4541
4495
  cookie?: never;
4542
4496
  };
4543
- get?: never;
4544
- put?: never;
4545
- post?: never;
4546
- delete?: never;
4547
- options?: never;
4548
- head?: never;
4549
4497
  /**
4550
- * Rest To Draft
4551
- * @description Endpoint for setting the status of an internal transfer document to draft
4498
+ * Get Internal Transfer
4499
+ * @description Endpoint for retrieving Internal Transfer Document
4552
4500
  * Responses:
4553
- * - 200: {"message": "Internal Transfer status set to draft.", "code": "statusSetToDraft"}
4554
- * - 400: {"message": "Internal Transfer status is already draft.", "code": "statusAlreadyDraft"}
4501
+ * - 200: InternalTransferHeaderSchema
4555
4502
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4556
- * - 404: {"message": "Internal Transfer Document not found.", "code": "notFound"}
4503
+ * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4504
+ * - 404: {"message": "Internal Transfer Document not found.", "code": "internalTransferDoesNotExist"}
4557
4505
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4558
4506
  */
4559
- patch: operations["inventory_transfer_views_rest_to_draft"];
4560
- trace?: never;
4561
- };
4562
- "/api/v1/inventory/transfer/{headerId}/": {
4563
- parameters: {
4564
- query?: never;
4565
- header?: never;
4566
- path?: never;
4567
- cookie?: never;
4568
- };
4569
- get?: never;
4570
- put?: never;
4571
- post?: never;
4572
- delete?: never;
4573
- options?: never;
4574
- head?: never;
4507
+ get: operations["inventory_transfer_views_get_internal_transfer"];
4575
4508
  /**
4576
4509
  * Update Internal Transfer
4577
4510
  * @description Endpoint for updating Internal Transfer Document
4578
4511
  * Responses:
4579
- * - 200: {"message": "Internal Transfer details updated successfully.", "code": "updatedSuccessfully"}
4580
- * - 400: {"message": "Failed to update/create internal transfer details due to error: {error}", "code": "invalidData"}
4581
- * - {"message": "No data to update.", "code": "noChangesDetected"}
4582
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4583
- * - {"message": "You do not have access to this branch.", "code": "permissionDenied}
4584
- * - {"message": "Only draft Internal Transfer can be updated.", "code": "DocumentNotInDraftStatus"}
4585
- * - 400:
4586
- * - {"message": "Internal Transfer Document not found.", "code": "notFound"}
4587
- * - {"message": "branch Invalid pk "{header.branch_id}" - object does not exist..", "code": "branchDoesNotExist"}
4588
- * - {"message": "item Invalid pk "{item_id}" - object does not exist..", "code": "itemDoesNotExist"}
4589
- * - {"message": "warehouse Invalid pk "{header.warehouse_id}" - object does not exist..", "code": "warehouseDoesNotExist"}
4590
- * - {"message": "Internal Transfer Invalid pk - object does not exist.. ", "code": "internalTransferDoesNotExist"}
4591
- * - {"message": "Internal Transfer Detail not found.", "code": "internalTransferDetailDoesNotExist"}
4592
- * - {"message": "The fields item, warehouse, branch must be unique together..", "code": "itemWarehouseBranchConflict"}
4593
- * - {"message": "The fields header, item must make a unique set..", "code": "headerItemConflict"}
4594
- * - {"message": "From warehouse cannot be the same as to warehouse", "code": "fromWarehouseSameAsToWarehouse"}
4595
- * - {"message": "Ensure this value is greater than or equal to 0.", "code": "transferredQuantityMinValueNotReached"}
4596
- * - quantityGreaterThanAvailable
4512
+ * - 201: InternalTransferSchema
4513
+ * - 400: - branchDoesNotExist
4514
+ * - invalidRequestedQuantity - Requested quantity is zero or negative
4515
+ * - invalidTransferredQuantity - Transferred quantity is zero or negative
4516
+ * - transferredExceedsRequested - Transferred quantity exceeds requested quantity
4517
+ * - warehousesMustDiffer - Source and destination warehouses are the same
4518
+ * - insufficientQuantity - Not enough quantity available in source warehouse
4519
+ * - itemNotInWarehouse - Item is not available in source warehouse
4520
+ * - batchRequired - Batch is required but not provided for batch-tracked items
4521
+ * - batchItemMismatch - Batch does not belong to the selected item
4522
+ * - insufficientBatchQuantity - Batch doesn't have enough quantity for the transfer
4523
+ * - batchNotInWarehouse - Batch is not available in the source warehouse
4524
+ * - batchDoesNotExist - The selected batch does not exist
4525
+ * - Serial-Related Validation Codes
4526
+ * - serialRequired - Serial is required but not provided for serial-tracked items
4527
+ * - serialItemMismatch - Serial does not belong to the selected item
4528
+ * - serialNotAvailable - Serial is not in available status
4529
+ * - serialNotInWarehouse - Serial is not present in source warehouse
4530
+ * - serialDoesNotExist - The selected serial does not exist
4597
4531
  *
4598
- * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4532
+ * - 403: permissionDenied
4533
+ * - noBranchAccess
4534
+ * - noWarehouseAccess
4535
+ *
4536
+ * - 404: internalTransferDoesNotExist
4599
4537
  */
4600
- patch: operations["inventory_transfer_views_update_internal_transfer"];
4601
- trace?: never;
4602
- };
4603
- "/api/v1/inventory/transfer/headers/{id}/": {
4604
- parameters: {
4605
- query?: never;
4606
- header?: never;
4607
- path?: never;
4608
- cookie?: never;
4609
- };
4610
- get?: never;
4611
- put?: never;
4538
+ put: operations["inventory_transfer_views_update_internal_transfer"];
4612
4539
  post?: never;
4613
4540
  /**
4614
4541
  * Delete Internal Transfer
@@ -4617,8 +4544,7 @@ export interface paths {
4617
4544
  * - 204: None
4618
4545
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4619
4546
  * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4620
- * - 404: {"message": "Internal Transfer Document does not exist.", "code": "internalTransferDoesNotExist"}
4621
- * - {"message": "branch Invalid pk - object does not exist..", "code": "branchDoesNotExist"}
4547
+ * - 404: {"message": "Internal Transfer Invalid pk - object does not exist..", "code": "internalTransferDoesNotExist"}
4622
4548
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4623
4549
  */
4624
4550
  delete: operations["inventory_transfer_views_delete_internal_transfer"];
@@ -4627,7 +4553,7 @@ export interface paths {
4627
4553
  patch?: never;
4628
4554
  trace?: never;
4629
4555
  };
4630
- "/api/v1/inventory/transfer/details/{id}/": {
4556
+ "/api/v1/inventory/transfer/{id}/reset-to-draft/": {
4631
4557
  parameters: {
4632
4558
  query?: never;
4633
4559
  header?: never;
@@ -4636,19 +4562,18 @@ export interface paths {
4636
4562
  };
4637
4563
  get?: never;
4638
4564
  put?: never;
4639
- post?: never;
4640
4565
  /**
4641
- * Delete Internal Transfer Detail
4642
- * @description Endpoint for deleting Internal Transfer Detail
4566
+ * Reset To Draft
4567
+ * @description Endpoint for setting the status of an internal transfer document to draft
4643
4568
  * Responses:
4644
- * - 204: None
4569
+ * - 200: {"message": "Internal Transfer status set to draft.", "code": "statusSetToDraft"}
4570
+ * - 400: {"message": "Internal Transfer status is already draft.", "code": "statusAlreadyDraft"}
4645
4571
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4646
- * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4647
- * - 404: {"message": "Internal Transfer Detail not found.", "code": "internalTransferDetailDoesNotExist"}
4648
- * - {"message": "branch Invalid pk - object does not exist..", "code": "branchDoesNotExist"}
4572
+ * - 404: {"message": "Internal Transfer Document not found.", "code": "internalTransferDoesNotExist"}
4649
4573
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4650
4574
  */
4651
- delete: operations["inventory_transfer_views_delete_internal_transfer_detail"];
4575
+ post: operations["inventory_transfer_views_reset_to_draft"];
4576
+ delete?: never;
4652
4577
  options?: never;
4653
4578
  head?: never;
4654
4579
  patch?: never;
@@ -11893,9 +11818,11 @@ export interface paths {
11893
11818
  * Responses:
11894
11819
  * - 200: GoodsReceiptNoteSchema
11895
11820
  * - 400: - itemDoesNotExist
11896
- * - itemNotInPurchaseOrder
11897
- * - itemNotInPurchaseInvoice
11821
+ * - itemWithUOMNotInPurchaseOrder
11822
+ * - itemWithUOMNotInPurchaseInvoice
11898
11823
  * - quantityOrderedMismatch
11824
+ * - itemPackageMismatch
11825
+ * - unitOfMeasureMismatch
11899
11826
  * - expiryDateRequired
11900
11827
  * - serialNumbersQuantityMismatch
11901
11828
  * - serialNumberRequiredForEachUnit
@@ -11967,9 +11894,11 @@ export interface paths {
11967
11894
  * Responses:
11968
11895
  * - 200: GoodsReceiptNoteSchema
11969
11896
  * - 400: itemDoesNotExist
11970
- * - itemNotInPurchaseOrder
11971
- * - itemNotInPurchaseInvoice
11897
+ * - itemWithUOMNotInPurchaseOrder
11898
+ * - itemWithUOMNotInPurchaseInvoice
11972
11899
  * - quantityOrderedMismatch
11900
+ * - itemPackageMismatch
11901
+ * - unitOfMeasureMismatch
11973
11902
  * - expiryDateRequired
11974
11903
  * - serialNumbersQuantityMismatch
11975
11904
  * - serialNumberRequiredForEachUnit
@@ -17345,6 +17274,10 @@ export interface paths {
17345
17274
  * Responses:
17346
17275
  * - 201: GoodsDeliveryNoteSchema
17347
17276
  * - 400:
17277
+ * - itemWithUOMNotInSalesOrder
17278
+ * - itemWithUOMNotInSalesInvoice
17279
+ * - quantityOrderedMismatch
17280
+ * - itemPackageMismatch
17348
17281
  * - quantityExceeded
17349
17282
  * - trackingQuantityMismatch
17350
17283
  * - batchDoesNotExist
@@ -17413,6 +17346,10 @@ export interface paths {
17413
17346
  * Responses:
17414
17347
  * - 200: GoodsDeliveryNoteSchema
17415
17348
  * - 400:
17349
+ * - itemWithUOMNotInSalesOrder
17350
+ * - itemWithUOMNotInSalesInvoice
17351
+ * - quantityOrderedMismatch
17352
+ * - itemPackageMismatch
17416
17353
  * - quantityExceeded
17417
17354
  * - trackingQuantityMismatch
17418
17355
  * - batchDoesNotExist
@@ -21313,7 +21250,7 @@ export interface components {
21313
21250
  /** Id */
21314
21251
  id: number;
21315
21252
  item: components["schemas"]["ItemMinimalSchema"];
21316
- warehouse: components["schemas"]["WarehouseStockAdjustmentSchema"];
21253
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
21317
21254
  /** Stockquantity */
21318
21255
  stockQuantity: number;
21319
21256
  };
@@ -21390,13 +21327,6 @@ export interface components {
21390
21327
  /** Name */
21391
21328
  name: string;
21392
21329
  };
21393
- /** WarehouseStockAdjustmentSchema */
21394
- WarehouseStockAdjustmentSchema: {
21395
- /** Id */
21396
- id: number;
21397
- /** Name */
21398
- name: string;
21399
- };
21400
21330
  /**
21401
21331
  * role
21402
21332
  * @enum {string}
@@ -24411,95 +24341,71 @@ export interface components {
24411
24341
  * @enum {string}
24412
24342
  */
24413
24343
  ResourceType: "batch" | "serial";
24344
+ /**
24345
+ * AdjustmentTypeOption
24346
+ * @enum {string}
24347
+ */
24348
+ AdjustmentTypeOption: "increase" | "decrease" | "replace";
24414
24349
  /**
24415
24350
  * ApprovalValueChoices
24416
24351
  * @enum {string}
24417
24352
  */
24418
24353
  ApprovalValueChoices: "draft" | "pending" | "approved" | "rejected" | "not_required";
24419
- /** BranchStockAdjustmentSchema */
24420
- BranchStockAdjustmentSchema: {
24421
- /** Id */
24422
- id: number;
24423
- /** Name */
24424
- name: string;
24354
+ /** BatchSerialSummarySchema */
24355
+ BatchSerialSummarySchema: {
24356
+ /**
24357
+ * Id
24358
+ * Format: uuid
24359
+ */
24360
+ id: string;
24361
+ /**
24362
+ * Number
24363
+ * @description Serial number or batch number based on the tracking method
24364
+ */
24365
+ number?: string | null;
24366
+ /**
24367
+ * Quantity
24368
+ * @default 1
24369
+ */
24370
+ quantity: number | null;
24371
+ /**
24372
+ * Expirydate
24373
+ * @description Expiry date for the item if item has_expiry is true
24374
+ */
24375
+ expiryDate?: string | null;
24425
24376
  };
24426
24377
  /**
24427
24378
  * InternalStatusOnReturnValueChoices
24428
24379
  * @enum {string}
24429
24380
  */
24430
24381
  InternalStatusOnReturnValueChoices: "draft" | "submitted" | "canceled";
24431
- /** StockAdjustmentHeaderListSchema */
24432
- StockAdjustmentHeaderListSchema: {
24433
- info: components["schemas"]["PageInfoSchema"];
24382
+ /** ItemPackageSummarySchema */
24383
+ ItemPackageSummarySchema: {
24434
24384
  /**
24435
- * Results
24436
- * @default []
24385
+ * Id
24386
+ * Format: uuid
24437
24387
  */
24438
- results: components["schemas"]["StockAdjustmentHeaderSchema"][];
24439
- };
24440
- /** StockAdjustmentHeaderSchema */
24441
- StockAdjustmentHeaderSchema: {
24388
+ id: string;
24442
24389
  /**
24443
- * Datecreated
24444
- * Format: date-time
24390
+ * Barcode
24391
+ * @description Barcode of the item
24445
24392
  */
24446
- dateCreated: string;
24447
- /** Datemodified */
24448
- dateModified: string | null;
24449
- createdBy: components["schemas"]["RecordUserSchema"];
24450
- modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24451
- /** Id */
24452
- id: number;
24453
- /** Serialnumber */
24454
- serialNumber: number;
24455
- warehouse: components["schemas"]["WarehouseStockAdjustmentSchema"];
24456
- branch: components["schemas"]["BranchStockAdjustmentSchema"];
24457
- /** Description */
24458
- description?: string | null;
24459
- status: components["schemas"]["InternalStatusOnReturnValueChoices"];
24460
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
24461
- };
24462
- /** CreateStockAdjustmentDetailSchema */
24463
- CreateStockAdjustmentDetailSchema: {
24464
- /** Index */
24465
- index?: number | null;
24466
- /** Item */
24467
- item: number;
24468
- /** Reason */
24469
- reason?: number | null;
24470
- adjustmentType: components["schemas"]["adjustmentTypeOption"];
24471
- /** Adjustmentquantity */
24472
- adjustmentQuantity: number;
24473
- };
24474
- /**
24475
- * InternalStatusOnCreateValueChoices
24476
- * @enum {string}
24477
- */
24478
- InternalStatusOnCreateValueChoices: "draft" | "submitted";
24479
- /** StockAdjustmentCreateSchema */
24480
- StockAdjustmentCreateSchema: {
24481
- /** Warehouse */
24482
- warehouse: number;
24483
- /** Branch */
24484
- branch: number;
24485
- /** Details */
24486
- details: components["schemas"]["CreateStockAdjustmentDetailSchema"][];
24487
- /** Description */
24488
- description?: string | null;
24489
- status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24393
+ barcode: string;
24394
+ /**
24395
+ * Quantity
24396
+ * @description Quantity of the item
24397
+ */
24398
+ quantity: number;
24399
+ /** @description Package of the item */
24400
+ package: components["schemas"]["PackageSummarySchema"];
24401
+ /** Returnable */
24402
+ returnable: boolean;
24490
24403
  };
24491
24404
  /**
24492
- * adjustmentTypeOption
24405
+ * PackageCategory
24493
24406
  * @enum {string}
24494
24407
  */
24495
- adjustmentTypeOption: "increase" | "decrease" | "replace";
24496
- /** ItemAdjustmentSchema */
24497
- ItemAdjustmentSchema: {
24498
- /** Id */
24499
- id: number;
24500
- /** Name */
24501
- name: string;
24502
- };
24408
+ PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
24503
24409
  /** Reason */
24504
24410
  Reason: {
24505
24411
  /** Id */
@@ -24522,117 +24428,288 @@ export interface components {
24522
24428
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24523
24429
  /** Id */
24524
24430
  id: number;
24525
- item: components["schemas"]["ItemAdjustmentSchema"];
24431
+ item: components["schemas"]["ItemMinimalSchema"];
24432
+ /** @description Tracking method: serial_number, batch, or quantity */
24433
+ trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
24526
24434
  reason?: components["schemas"]["Reason"] | null;
24527
- /** Adjustmenttype */
24528
- adjustmentType: string;
24435
+ adjustmentType: components["schemas"]["AdjustmentTypeOption"];
24529
24436
  /** Adjustmentquantity */
24530
24437
  adjustmentQuantity: number;
24438
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
24439
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
24440
+ batch?: components["schemas"]["BatchSerialSummarySchema"] | null;
24441
+ serial?: components["schemas"]["BatchSerialSummarySchema"] | null;
24442
+ /**
24443
+ * Candelete
24444
+ * @default true
24445
+ */
24446
+ canDelete: boolean;
24531
24447
  };
24532
- /** StockAdjustmentDetailsListSchema */
24533
- StockAdjustmentDetailsListSchema: {
24534
- info: components["schemas"]["PageInfoSchema"];
24535
- header: components["schemas"]["StockAdjustmentHeaderSchema"];
24448
+ /** StockAdjustmentSchema */
24449
+ StockAdjustmentSchema: {
24450
+ /**
24451
+ * Datecreated
24452
+ * Format: date-time
24453
+ */
24454
+ dateCreated: string;
24455
+ /** Datemodified */
24456
+ dateModified: string | null;
24457
+ createdBy: components["schemas"]["RecordUserSchema"];
24458
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24459
+ /** Id */
24460
+ id: number;
24461
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
24462
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
24463
+ /** Serialnumber */
24464
+ serialNumber: number;
24465
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
24466
+ branch: components["schemas"]["BranchSummaryInfo"];
24467
+ /** Description */
24468
+ description?: string | null;
24536
24469
  /**
24537
24470
  * Details
24538
24471
  * @default []
24539
24472
  */
24540
24473
  details: components["schemas"]["StockAdjustmentDetailSchema"][];
24541
24474
  };
24542
- /** ChangeStockAdjustmentDetailSchema */
24543
- ChangeStockAdjustmentDetailSchema: {
24544
- /** Index */
24545
- index?: number | null;
24546
- /** Id */
24547
- id: number;
24548
- /** Item */
24549
- item?: number | null;
24550
- /** Reason */
24475
+ /**
24476
+ * TrackingMethodChoices
24477
+ * @enum {string}
24478
+ */
24479
+ TrackingMethodChoices: "serial_number" | "batch" | "quantity";
24480
+ /** CreateStockAdjustmentDetailSchema */
24481
+ CreateStockAdjustmentDetailSchema: {
24482
+ /**
24483
+ * Item
24484
+ * @description
24485
+ * - Select only active items
24486
+ * - Get item's tracking method for validation rules
24487
+ * - System will check current warehouse quantities
24488
+ *
24489
+ */
24490
+ item: number;
24491
+ /**
24492
+ * Reason
24493
+ * @description Reason for the adjustment (optional but recommended for audit trail)
24494
+ */
24551
24495
  reason?: number | null;
24552
- adjustmentType?: components["schemas"]["adjustmentTypeOption"] | null;
24553
- /** Adjustmentquantity */
24554
- adjustmentQuantity?: number | null;
24496
+ /** @description
24497
+ * - increase: Add quantity to current stock
24498
+ * - decrease: Remove quantity from current stock
24499
+ * - replace: Set stock to exact quantity (overrides current)
24500
+ * */
24501
+ adjustmentType: components["schemas"]["AdjustmentTypeOption"];
24502
+ /**
24503
+ * Adjustmentquantity
24504
+ * @description
24505
+ * - Must be greater than zero
24506
+ * - For decrease type, cannot exceed available quantity unless negative stock allowed
24507
+ * - For replace type, represents the final quantity
24508
+ *
24509
+ */
24510
+ adjustmentQuantity: number;
24511
+ /**
24512
+ * Batch
24513
+ * @description
24514
+ * - Required if item is tracked by batch
24515
+ * - Must belong to the selected item
24516
+ * - Must exist in the warehouse for decrease/replace adjustments
24517
+ *
24518
+ */
24519
+ batch?: string | null;
24520
+ /**
24521
+ * Serial
24522
+ * @description
24523
+ * - Required if item is tracked by serial number
24524
+ * - Must belong to the selected item
24525
+ * - For decrease, serial must exist in warehouse
24526
+ * - For increase, new serial or inactive serial can be used
24527
+ *
24528
+ */
24529
+ serial?: string | null;
24530
+ /**
24531
+ * Itempackage
24532
+ * @description
24533
+ * - Optional package for the item
24534
+ * - If provided, quantity will be calculated in packages
24535
+ * - The system will convert to base units for inventory tracking
24536
+ *
24537
+ */
24538
+ itemPackage?: string | null;
24539
+ /**
24540
+ * Unitofmeasure
24541
+ * @description
24542
+ * - Select from the item's available units of measure
24543
+ *
24544
+ */
24545
+ unitOfMeasure: number;
24555
24546
  };
24556
- /** DeleteStockAdjustmentDetailSchema */
24557
- DeleteStockAdjustmentDetailSchema: {
24558
- /** Index */
24559
- index?: number | null;
24547
+ /**
24548
+ * InternalStatusOnCreateValueChoices
24549
+ * @enum {string}
24550
+ */
24551
+ InternalStatusOnCreateValueChoices: "draft" | "submitted";
24552
+ /** StockAdjustmentCreateSchema */
24553
+ StockAdjustmentCreateSchema: {
24554
+ /**
24555
+ * Warehouse
24556
+ * @description
24557
+ * - Select from user's assigned warehouses
24558
+ * - Must be an active warehouse
24559
+ * - User must have permission to adjust inventory in this warehouse
24560
+ *
24561
+ */
24562
+ warehouse: number;
24563
+ /**
24564
+ * Description
24565
+ * @description Optional notes explaining the purpose of this adjustment
24566
+ */
24567
+ description?: string | null;
24568
+ /** @description
24569
+ * - draft: Initial state, can be modified
24570
+ * - pending: Submitted for approval
24571
+ * - approved: Inventory effects applied
24572
+ * - rejected: Adjustment denied
24573
+ * */
24574
+ status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24575
+ /**
24576
+ * Details
24577
+ * @description List of items to adjust, at least one item required
24578
+ */
24579
+ details: components["schemas"]["CreateStockAdjustmentDetailSchema"][];
24580
+ };
24581
+ /** StockAdjustmentHeaderListSchema */
24582
+ StockAdjustmentHeaderListSchema: {
24583
+ info: components["schemas"]["PageInfoSchema"];
24584
+ /**
24585
+ * Results
24586
+ * @default []
24587
+ */
24588
+ results: components["schemas"]["StockAdjustmentHeaderSchema"][];
24589
+ };
24590
+ /** StockAdjustmentHeaderSchema */
24591
+ StockAdjustmentHeaderSchema: {
24592
+ /**
24593
+ * Datecreated
24594
+ * Format: date-time
24595
+ */
24596
+ dateCreated: string;
24597
+ /** Datemodified */
24598
+ dateModified: string | null;
24599
+ createdBy: components["schemas"]["RecordUserSchema"];
24600
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24560
24601
  /** Id */
24561
24602
  id: number;
24603
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
24604
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
24605
+ /** Serialnumber */
24606
+ serialNumber: number;
24607
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
24608
+ branch: components["schemas"]["BranchSummaryInfo"];
24609
+ /** Description */
24610
+ description?: string | null;
24562
24611
  };
24563
24612
  /** StockAdjustmentUpdateSchema */
24564
24613
  StockAdjustmentUpdateSchema: {
24565
- /** Warehouse */
24614
+ /**
24615
+ * Warehouse
24616
+ * @description
24617
+ * - Can only be changed if status is draft
24618
+ * - User must have permission to adjust inventory in this warehouse
24619
+ *
24620
+ */
24566
24621
  warehouse?: number | null;
24567
- /** Branch */
24568
- branch?: number | null;
24569
- status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24570
- /** Description */
24622
+ /**
24623
+ * Description
24624
+ * @description Optional notes explaining the purpose of this adjustment
24625
+ */
24571
24626
  description?: string | null;
24572
- details?: components["schemas"]["UpdateStockAdjustmentDetailSchema"] | null;
24627
+ /** @description
24628
+ * - draft: Can be modified
24629
+ * - pending: Submitted for approval
24630
+ * - Cannot be updated if already approved
24631
+ * */
24632
+ status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24633
+ /**
24634
+ * Details
24635
+ * @description
24636
+ * - Update existing items or add new ones
24637
+ * - Only available if document is in draft status
24638
+ *
24639
+ */
24640
+ details: components["schemas"]["UpdateStockAdjustmentDetailSchema"][];
24573
24641
  };
24574
24642
  /** UpdateStockAdjustmentDetailSchema */
24575
24643
  UpdateStockAdjustmentDetailSchema: {
24576
24644
  /**
24577
- * Add
24578
- * @default []
24645
+ * Item
24646
+ * @description
24647
+ * - Select only active items
24648
+ * - Get item's tracking method for validation rules
24649
+ * - System will check current warehouse quantities
24650
+ *
24579
24651
  */
24580
- add: components["schemas"]["CreateStockAdjustmentDetailSchema"][];
24652
+ item: number;
24581
24653
  /**
24582
- * Update
24583
- * @default []
24654
+ * Reason
24655
+ * @description Reason for the adjustment (optional but recommended for audit trail)
24584
24656
  */
24585
- update: components["schemas"]["ChangeStockAdjustmentDetailSchema"][];
24657
+ reason?: number | null;
24658
+ /** @description
24659
+ * - increase: Add quantity to current stock
24660
+ * - decrease: Remove quantity from current stock
24661
+ * - replace: Set stock to exact quantity (overrides current)
24662
+ * */
24663
+ adjustmentType: components["schemas"]["AdjustmentTypeOption"];
24586
24664
  /**
24587
- * Delete
24588
- * @default []
24665
+ * Adjustmentquantity
24666
+ * @description
24667
+ * - Must be greater than zero
24668
+ * - For decrease type, cannot exceed available quantity unless negative stock allowed
24669
+ * - For replace type, represents the final quantity
24670
+ *
24589
24671
  */
24590
- delete: components["schemas"]["DeleteStockAdjustmentDetailSchema"][];
24591
- };
24592
- /** BatchSerialSummarySchema */
24593
- BatchSerialSummarySchema: {
24672
+ adjustmentQuantity: number;
24594
24673
  /**
24595
- * Id
24596
- * Format: uuid
24674
+ * Batch
24675
+ * @description
24676
+ * - Required if item is tracked by batch
24677
+ * - Must belong to the selected item
24678
+ * - Must exist in the warehouse for decrease/replace adjustments
24679
+ *
24597
24680
  */
24598
- id: string;
24681
+ batch?: string | null;
24599
24682
  /**
24600
- * Number
24601
- * @description Serial number or batch number based on the tracking method
24683
+ * Serial
24684
+ * @description
24685
+ * - Required if item is tracked by serial number
24686
+ * - Must belong to the selected item
24687
+ * - For decrease, serial must exist in warehouse
24688
+ * - For increase, new serial or inactive serial can be used
24689
+ *
24602
24690
  */
24603
- number?: string | null;
24691
+ serial?: string | null;
24604
24692
  /**
24605
- * Quantity
24606
- * @default 1
24693
+ * Itempackage
24694
+ * @description
24695
+ * - Optional package for the item
24696
+ * - If provided, quantity will be calculated in packages
24697
+ * - The system will convert to base units for inventory tracking
24698
+ *
24607
24699
  */
24608
- quantity: number | null;
24700
+ itemPackage?: string | null;
24609
24701
  /**
24610
- * Expirydate
24611
- * @description Expiry date for the item if item has_expiry is true
24702
+ * Unitofmeasure
24703
+ * @description
24704
+ * - Select from the item's available units of measure
24705
+ *
24612
24706
  */
24613
- expiryDate?: string | null;
24614
- };
24615
- /** ItemPackageSummarySchema */
24616
- ItemPackageSummarySchema: {
24707
+ unitOfMeasure: number;
24617
24708
  /**
24618
24709
  * Id
24619
- * Format: uuid
24620
- */
24621
- id: string;
24622
- /**
24623
- * Barcode
24624
- * @description Barcode of the item
24710
+ * @description ID of the stock adjustment detail to update
24625
24711
  */
24626
- barcode: string;
24627
- /**
24628
- * Quantity
24629
- * @description Quantity of the item
24630
- */
24631
- quantity: number;
24632
- /** @description Package of the item */
24633
- package: components["schemas"]["PackageSummarySchema"];
24634
- /** Returnable */
24635
- returnable: boolean;
24712
+ id?: number;
24636
24713
  };
24637
24714
  /** OpeningQuantityDetailsSchema */
24638
24715
  OpeningQuantityDetailsSchema: {
@@ -24720,16 +24797,6 @@ export interface components {
24720
24797
  */
24721
24798
  details: components["schemas"]["OpeningQuantityDetailsSchema"][];
24722
24799
  };
24723
- /**
24724
- * PackageCategory
24725
- * @enum {string}
24726
- */
24727
- PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
24728
- /**
24729
- * TrackingMethodChoices
24730
- * @enum {string}
24731
- */
24732
- TrackingMethodChoices: "serial_number" | "batch" | "quantity";
24733
24800
  /** CreateOpeningQuantityItemSchema */
24734
24801
  CreateOpeningQuantityItemSchema: {
24735
24802
  /**
@@ -24923,24 +24990,40 @@ export interface components {
24923
24990
  /** Id */
24924
24991
  id?: number;
24925
24992
  };
24926
- /** BranchInternalTransferSchema */
24927
- BranchInternalTransferSchema: {
24993
+ /** InternalTransferDetailsSchema */
24994
+ InternalTransferDetailsSchema: {
24995
+ /**
24996
+ * Datecreated
24997
+ * Format: date-time
24998
+ */
24999
+ dateCreated: string;
25000
+ /** Datemodified */
25001
+ dateModified: string | null;
25002
+ createdBy: components["schemas"]["RecordUserSchema"];
25003
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24928
25004
  /** Id */
24929
25005
  id: number;
24930
- /** Name */
24931
- name: string;
24932
- };
24933
- /** InternalTransferHeaderListSchema */
24934
- InternalTransferHeaderListSchema: {
24935
- info?: components["schemas"]["PageInfoSchema"];
25006
+ item: components["schemas"]["ItemMinimalSchema"];
25007
+ /** @description Tracking method: serial_number, batch, or quantity */
25008
+ trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
25009
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
25010
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
25011
+ batch?: components["schemas"]["BatchSerialSummarySchema"] | null;
25012
+ serial?: components["schemas"]["BatchSerialSummarySchema"] | null;
25013
+ /** Requestedquantity */
25014
+ requestedQuantity: number;
24936
25015
  /**
24937
- * Results
24938
- * @default []
25016
+ * Transferredquantity
25017
+ * @description
25018
+ * - Quantity actually transferred
25019
+ * - if item package is provided, this is in package units
25020
+ * - show the user the available quantity as in units too, transferred quantity * item package quantity
25021
+ *
24939
25022
  */
24940
- results: components["schemas"]["InternalTransferHeaderSchema"][];
25023
+ transferredQuantity: number;
24941
25024
  };
24942
- /** InternalTransferHeaderSchema */
24943
- InternalTransferHeaderSchema: {
25025
+ /** InternalTransferSchema */
25026
+ InternalTransferSchema: {
24944
25027
  /**
24945
25028
  * Datecreated
24946
25029
  * Format: date-time
@@ -24952,11 +25035,13 @@ export interface components {
24952
25035
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24953
25036
  /** Id */
24954
25037
  id: number;
25038
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
25039
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
24955
25040
  /** Serialnumber */
24956
25041
  serialNumber: number;
24957
- fromWarehouse: components["schemas"]["WarehouseInternalTransferSchema"];
24958
- toWarehouse: components["schemas"]["WarehouseInternalTransferSchema"];
24959
- branch: components["schemas"]["BranchInternalTransferSchema"];
25042
+ fromWarehouse: components["schemas"]["WarehouseSummaryInfo"];
25043
+ toWarehouse: components["schemas"]["WarehouseSummaryInfo"];
25044
+ branch: components["schemas"]["BranchSummaryInfo"];
24960
25045
  /**
24961
25046
  * Transferdate
24962
25047
  * Format: date
@@ -24964,125 +25049,262 @@ export interface components {
24964
25049
  transferDate: string;
24965
25050
  /** Description */
24966
25051
  description?: string | null;
24967
- status: components["schemas"]["InternalStatusOnReturnValueChoices"];
24968
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
24969
- };
24970
- /** WarehouseInternalTransferSchema */
24971
- WarehouseInternalTransferSchema: {
24972
- /** Id */
24973
- id: number;
24974
- /** Name */
24975
- name: string;
25052
+ /**
25053
+ * Details
25054
+ * @default []
25055
+ */
25056
+ details: components["schemas"]["InternalTransferDetailsSchema"][];
24976
25057
  };
24977
- /** CreateInternalTransferDetailSchema */
24978
- CreateInternalTransferDetailSchema: {
24979
- /** Index */
24980
- index?: number | null;
24981
- /** Item */
25058
+ /** CreateInternalTransferItemSchema */
25059
+ CreateInternalTransferItemSchema: {
25060
+ /**
25061
+ * Item
25062
+ * @description
25063
+ * - Select only active items
25064
+ * - Check item availability in source warehouse
25065
+ * - Get item's tracking method for validation rules
25066
+ *
25067
+ */
24982
25068
  item: number;
24983
- /** Requestedquantity */
25069
+ /**
25070
+ * Itempackage
25071
+ * @description
25072
+ * - Optional package for the item
25073
+ * - If provided, transferred quantity will be calculated in packages
25074
+ *
25075
+ */
25076
+ itemPackage?: string | null;
25077
+ /**
25078
+ * Unitofmeasure
25079
+ * @description
25080
+ * - Select from the item's available units of measure
25081
+ * - If item_package is provided, use the package's unit of measure
25082
+ *
25083
+ */
25084
+ unitOfMeasure: number;
25085
+ /**
25086
+ * Batch
25087
+ * @description
25088
+ * - Required if item is tracked by batch
25089
+ * - Must belong to the selected item
25090
+ * - Must be available in source warehouse
25091
+ * - Source warehouse must have sufficient quantity
25092
+ *
25093
+ */
25094
+ batch?: string | null;
25095
+ /**
25096
+ * Serial
25097
+ * @description
25098
+ * - Required if item is tracked by serial number
25099
+ * - Must belong to the selected item
25100
+ * - Must be in 'available' status
25101
+ * - Must be present in source warehouse
25102
+ *
25103
+ */
25104
+ serial?: string | null;
25105
+ /**
25106
+ * Requestedquantity
25107
+ * @description
25108
+ * - Must be greater than zero
25109
+ * - Maximum is determined by source warehouse availability
25110
+ * - For serial items, must be 1
25111
+ *
25112
+ */
24984
25113
  requestedQuantity: number;
24985
- /** Transferredquantity */
25114
+ /**
25115
+ * Transferredquantity
25116
+ * @description
25117
+ * - Must be greater than zero
25118
+ * - Cannot exceed requested quantity
25119
+ * - For serial items, must be 1
25120
+ * - Cannot exceed available quantity in source warehouse
25121
+ *
25122
+ */
24986
25123
  transferredQuantity: number;
24987
25124
  };
24988
- /** InternalTransferCreateSchema */
24989
- InternalTransferCreateSchema: {
24990
- /** Fromwarehouse */
25125
+ /** CreateInternalTransferSchema */
25126
+ CreateInternalTransferSchema: {
25127
+ /**
25128
+ * Fromwarehouse
25129
+ * @description
25130
+ * - Select from user's assigned warehouses
25131
+ * - Must be different from destination warehouse
25132
+ * - Must have items available for transfer
25133
+ *
25134
+ */
24991
25135
  fromWarehouse: number;
24992
- /** Towarehouse */
25136
+ /**
25137
+ * Towarehouse
25138
+ * @description
25139
+ * - Select from any warehouse
25140
+ * - Must be different from source warehouse
25141
+ *
25142
+ */
24993
25143
  toWarehouse: number;
24994
- /** Branch */
24995
- branch: number;
24996
25144
  /**
24997
25145
  * Transferdate
24998
25146
  * Format: date
25147
+ * @description Date when the transfer is initiated
24999
25148
  */
25000
25149
  transferDate: string;
25001
- /** Description */
25002
- description: string;
25150
+ /**
25151
+ * Description
25152
+ * @description Optional notes or purpose for this transfer
25153
+ */
25154
+ description?: string | null;
25003
25155
  status: components["schemas"]["InternalStatusOnCreateValueChoices"];
25004
- /** Details */
25005
- details: components["schemas"]["CreateInternalTransferDetailSchema"][];
25156
+ /**
25157
+ * Details
25158
+ * @description List of items to transfer, at least one item required
25159
+ */
25160
+ details: components["schemas"]["CreateInternalTransferItemSchema"][];
25006
25161
  };
25007
- /** InternalTransferDetailListSchema */
25008
- InternalTransferDetailListSchema: {
25162
+ /** InternalTransferHeaderListSchema */
25163
+ InternalTransferHeaderListSchema: {
25009
25164
  info: components["schemas"]["PageInfoSchema"];
25010
- header: components["schemas"]["InternalTransferHeaderSchema"];
25011
25165
  /**
25012
25166
  * Results
25013
25167
  * @default []
25014
25168
  */
25015
- results: components["schemas"]["InternalTransferDetailSchema"][];
25169
+ results: components["schemas"]["InternalTransferHeaderSchema"][];
25016
25170
  };
25017
- /** InternalTransferDetailSchema */
25018
- InternalTransferDetailSchema: {
25171
+ /** InternalTransferHeaderSchema */
25172
+ InternalTransferHeaderSchema: {
25173
+ /**
25174
+ * Datecreated
25175
+ * Format: date-time
25176
+ */
25177
+ dateCreated: string;
25178
+ /** Datemodified */
25179
+ dateModified: string | null;
25180
+ createdBy: components["schemas"]["RecordUserSchema"];
25181
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
25019
25182
  /** Id */
25020
25183
  id: number;
25021
- item: components["schemas"]["ItemInternalTransferSchema"];
25022
- /** Requestedquantity */
25184
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
25185
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
25186
+ /** Serialnumber */
25187
+ serialNumber: number;
25188
+ fromWarehouse: components["schemas"]["WarehouseSummaryInfo"];
25189
+ toWarehouse: components["schemas"]["WarehouseSummaryInfo"];
25190
+ branch: components["schemas"]["BranchSummaryInfo"];
25191
+ /**
25192
+ * Transferdate
25193
+ * Format: date
25194
+ */
25195
+ transferDate: string;
25196
+ /** Description */
25197
+ description?: string | null;
25198
+ };
25199
+ /** UpdateInternalTransferItemSchema */
25200
+ UpdateInternalTransferItemSchema: {
25201
+ /**
25202
+ * Item
25203
+ * @description
25204
+ * - Select only active items
25205
+ * - Check item availability in source warehouse
25206
+ * - Get item's tracking method for validation rules
25207
+ *
25208
+ */
25209
+ item: number;
25210
+ /**
25211
+ * Itempackage
25212
+ * @description
25213
+ * - Optional package for the item
25214
+ * - If provided, transferred quantity will be calculated in packages
25215
+ *
25216
+ */
25217
+ itemPackage?: string | null;
25218
+ /**
25219
+ * Unitofmeasure
25220
+ * @description
25221
+ * - Select from the item's available units of measure
25222
+ * - If item_package is provided, use the package's unit of measure
25223
+ *
25224
+ */
25225
+ unitOfMeasure: number;
25226
+ /**
25227
+ * Batch
25228
+ * @description
25229
+ * - Required if item is tracked by batch
25230
+ * - Must belong to the selected item
25231
+ * - Must be available in source warehouse
25232
+ * - Source warehouse must have sufficient quantity
25233
+ *
25234
+ */
25235
+ batch?: string | null;
25236
+ /**
25237
+ * Serial
25238
+ * @description
25239
+ * - Required if item is tracked by serial number
25240
+ * - Must belong to the selected item
25241
+ * - Must be in 'available' status
25242
+ * - Must be present in source warehouse
25243
+ *
25244
+ */
25245
+ serial?: string | null;
25246
+ /**
25247
+ * Requestedquantity
25248
+ * @description
25249
+ * - Must be greater than zero
25250
+ * - Maximum is determined by source warehouse availability
25251
+ * - For serial items, must be 1
25252
+ *
25253
+ */
25023
25254
  requestedQuantity: number;
25024
- /** Transferredquantity */
25255
+ /**
25256
+ * Transferredquantity
25257
+ * @description
25258
+ * - Must be greater than zero
25259
+ * - Cannot exceed requested quantity
25260
+ * - For serial items, must be 1
25261
+ * - Cannot exceed available quantity in source warehouse
25262
+ *
25263
+ */
25025
25264
  transferredQuantity: number;
25265
+ /**
25266
+ * Id
25267
+ * @description ID of the transfer detail item (required for updates)
25268
+ */
25269
+ id?: number;
25026
25270
  };
25027
- /** ItemInternalTransferSchema */
25028
- ItemInternalTransferSchema: {
25029
- /** Id */
25030
- id: number;
25031
- /** Name */
25032
- name: string;
25033
- };
25034
- /** ChangeInternalTransferDetailSchema */
25035
- ChangeInternalTransferDetailSchema: {
25036
- /** Index */
25037
- index?: number | null;
25038
- /** Id */
25039
- id: number;
25040
- /** Item */
25041
- item?: number | null;
25042
- /** Requestedquantity */
25043
- requestedQuantity?: number | null;
25044
- /** Transferredquantity */
25045
- transferredQuantity?: number | null;
25046
- };
25047
- /** DeleteInternalTransferDetailSchema */
25048
- DeleteInternalTransferDetailSchema: {
25049
- /** Index */
25050
- index?: number | null;
25051
- /** Id */
25052
- id: number;
25053
- };
25054
- /** InternalTransferUpdateSchema */
25055
- InternalTransferUpdateSchema: {
25056
- /** Fromwarehouse */
25271
+ /** UpdateInternalTransferSchema */
25272
+ UpdateInternalTransferSchema: {
25273
+ /**
25274
+ * Fromwarehouse
25275
+ * @description
25276
+ * - Can only be changed if status is draft
25277
+ * - Must be different from destination warehouse
25278
+ * - All items must be available in new source warehouse
25279
+ *
25280
+ */
25057
25281
  fromWarehouse?: number | null;
25058
- /** Towarehouse */
25282
+ /**
25283
+ * Towarehouse
25284
+ * @description
25285
+ * - Can only be changed if status is draft
25286
+ * - Must be different from source warehouse
25287
+ *
25288
+ */
25059
25289
  toWarehouse?: number | null;
25060
- /** Branch */
25061
- branch?: number | null;
25062
- /** Transferdate */
25063
- transferDate?: string | null;
25064
- /** Description */
25065
- description?: string | null;
25066
- status: components["schemas"]["InternalStatusOnCreateValueChoices"];
25067
- details?: components["schemas"]["UpdateInternalTransferDetailSchema"] | null;
25068
- };
25069
- /** UpdateInternalTransferDetailSchema */
25070
- UpdateInternalTransferDetailSchema: {
25071
25290
  /**
25072
- * Add
25073
- * @default []
25291
+ * Transferdate
25292
+ * @description Date when the transfer is initiated
25074
25293
  */
25075
- add: components["schemas"]["CreateInternalTransferDetailSchema"][];
25294
+ transferDate?: string | null;
25076
25295
  /**
25077
- * Update
25078
- * @default []
25296
+ * Description
25297
+ * @description Optional notes or purpose for this transfer
25079
25298
  */
25080
- update: components["schemas"]["ChangeInternalTransferDetailSchema"][];
25299
+ description?: string | null;
25300
+ status: components["schemas"]["InternalStatusOnCreateValueChoices"];
25081
25301
  /**
25082
- * Delete
25083
- * @default []
25302
+ * Details
25303
+ * @description
25304
+ * - Update existing items or add new ones
25305
+ *
25084
25306
  */
25085
- delete: components["schemas"]["DeleteInternalTransferDetailSchema"][];
25307
+ details: components["schemas"]["UpdateInternalTransferItemSchema"][];
25086
25308
  };
25087
25309
  /**
25088
25310
  * CustomerDocumentTypeEnum
@@ -27212,7 +27434,7 @@ export interface components {
27212
27434
  /**
27213
27435
  * Id
27214
27436
  * Format: uuid
27215
- * @example 895aee59-156c-40b8-b3bb-fba9b0a573e0
27437
+ * @example aeda4601-7deb-4fe6-8a1b-87504974771a
27216
27438
  */
27217
27439
  id: string;
27218
27440
  /**
@@ -35465,6 +35687,8 @@ export interface components {
35465
35687
  */
35466
35688
  id: string;
35467
35689
  item: components["schemas"]["ItemSharedSchema"];
35690
+ /** @description The unit of measure selected from the item's options */
35691
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
35468
35692
  /** @description Tracking method: serial_number, batch, or quantity */
35469
35693
  trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
35470
35694
  itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
@@ -35571,7 +35795,11 @@ export interface components {
35571
35795
  unitPackage?: number | null;
35572
35796
  /**
35573
35797
  * Quantity
35574
- * @description if tracked by serial number, quantity must be 1, if tracked by quantity, quantity must be equal to quantity received, if tracked by batch, quantity can be any number but the sum of all quantities must be equal to quantity received, if unit_package is selected, quantity must be equal to unit_package * item_package quantity
35798
+ * @description
35799
+ * - if tracked by serial number, quantity must be 1
35800
+ * - if tracked by quantity, quantity must be equal to quantity received,
35801
+ * - if tracked by batch, quantity can be any number but the sum of all quantities must be equal to quantity received,
35802
+ * - if unit_package is selected, quantity must be equal to unit_package * item_package quantity
35575
35803
  * @default 1
35576
35804
  */
35577
35805
  quantity: number | null;
@@ -35590,6 +35818,16 @@ export interface components {
35590
35818
  id?: string | null;
35591
35819
  /** Item */
35592
35820
  item: number;
35821
+ /**
35822
+ * Unitofmeasure
35823
+ * @description
35824
+ * - case where only item selected:
35825
+ * - get data from api/v1/inventory/items/{item-id}/ field unitOfMeasures, get default value from field defaultPurchaseUnitOfMeasure if applicable
35826
+ * - case where item package selected:
35827
+ * - input should be disabled, get unit of measure from itemPackage
35828
+ *
35829
+ */
35830
+ unitOfMeasure: number;
35593
35831
  /**
35594
35832
  * Itempackage
35595
35833
  * Format: uuid
@@ -35610,7 +35848,14 @@ export interface components {
35610
35848
  quantityOrdered?: number | null;
35611
35849
  /**
35612
35850
  * Tracking
35613
- * @description get the tracking from the item
35851
+ * @description
35852
+ * - if trackInventoryBy is serial_number, tracking must be a list of serial numbers with
35853
+ * quantity = 1 for each serial number, in case there is itemPackage selected, no of tracking must be equal to quantity received
35854
+ * - if trackInventoryBy is batch, tracking must be a list of batch numbers with
35855
+ * quantity = quantity received for each batch number
35856
+ * - if trackInventoryBy is quantity, tracking must be a list of quantities with
35857
+ * quantity = quantity received for each quantity
35858
+ *
35614
35859
  */
35615
35860
  tracking: components["schemas"]["CreateOrUpdateGoodsReceiptNoteItemTrackingSchema"][];
35616
35861
  };
@@ -35622,11 +35867,6 @@ export interface components {
35622
35867
  * - Either purchaseOrder or purchaseInvoice must be provided.
35623
35868
  */
35624
35869
  CreateOrUpdateGoodsReceiptSchema: {
35625
- /**
35626
- * Branch
35627
- * @description Branch ID for the goods receipt
35628
- */
35629
- branch: number;
35630
35870
  /** Password */
35631
35871
  password?: string | null;
35632
35872
  /**
@@ -45242,6 +45482,8 @@ export interface components {
45242
45482
  */
45243
45483
  id: string;
45244
45484
  item: components["schemas"]["ItemSharedSchema"];
45485
+ /** @description The unit of measure selected from the item's options */
45486
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
45245
45487
  itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
45246
45488
  /** Unitpackage */
45247
45489
  unitPackage: number | null;
@@ -45349,6 +45591,16 @@ export interface components {
45349
45591
  * @description If there is a linked invoice or order in the GDN, the item should be associated with that specific invoice or order.
45350
45592
  */
45351
45593
  item: number;
45594
+ /**
45595
+ * Unitofmeasure
45596
+ * @description
45597
+ * - case where only item selected:
45598
+ * - get data from api/v1/inventory/items/{item-id}/ field unitOfMeasures, get default value from field defaultSalesUnitOfMeasure if applicable
45599
+ * - case where item package selected:
45600
+ * - input should be disabled, get unit of measure from itemPackage
45601
+ *
45602
+ */
45603
+ unitOfMeasure: number;
45352
45604
  /**
45353
45605
  * Itempackage
45354
45606
  * Format: uuid
@@ -45437,53 +45689,7 @@ export interface components {
45437
45689
  GoodsDeliveryNoteListSchema: {
45438
45690
  info: components["schemas"]["PageInfoSchema"];
45439
45691
  /** Results */
45440
- results: components["schemas"]["GoodsDeliveryNoteWithItemForListSchema"][];
45441
- };
45442
- /** GoodsDeliveryNoteWithItemForListSchema */
45443
- GoodsDeliveryNoteWithItemForListSchema: {
45444
- /**
45445
- * Id
45446
- * Format: uuid
45447
- */
45448
- id: string;
45449
- /** Serialnumber */
45450
- serialNumber: string;
45451
- /**
45452
- * Date
45453
- * Format: date
45454
- */
45455
- date: string;
45456
- customer: components["schemas"]["ChildSupplierSharedSchema"];
45457
- warehouse: components["schemas"]["WarehouseSummaryInfo"];
45458
- /** @description Linked sales order ID */
45459
- salesOrder?: components["schemas"]["DocumentCommonSchema"] | null;
45460
- /** @description Linked sales invoice ID */
45461
- salesInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
45462
- /** Referencenumber */
45463
- referenceNumber?: string | null;
45464
- /**
45465
- * Description
45466
- * @description A description of the delivery note
45467
- */
45468
- description: string | null;
45469
- status: components["schemas"]["InternalStatusOnReturnValueChoices"];
45470
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
45471
- /**
45472
- * Attachments
45473
- * @description A list of attachment file paths linked to the delivery note
45474
- */
45475
- attachments: string[] | null;
45476
- /**
45477
- * Notes
45478
- * @description Additional notes regarding the delivery note
45479
- */
45480
- notes: string | null;
45481
- /**
45482
- * Items
45483
- * @description List of items in the goods delivery note
45484
- * @default []
45485
- */
45486
- items: components["schemas"]["GoodsDeliveryNoteItemsSchema"][];
45692
+ results: components["schemas"]["GoodsDeliveryNoteSchema"][];
45487
45693
  };
45488
45694
  /** DefaultSubsidiaryAccountDetailSchema */
45489
45695
  DefaultSubsidiaryAccountDetailSchema: {
@@ -55347,15 +55553,15 @@ export interface operations {
55347
55553
  };
55348
55554
  };
55349
55555
  };
55350
- inventory_views_list_stock_adjustment_headers: {
55556
+ inventory_views_list_stock_adjustments: {
55351
55557
  parameters: {
55352
- query: {
55558
+ query?: {
55353
55559
  /** @description Page number */
55354
55560
  page?: number;
55355
55561
  /** @description Page size */
55356
55562
  pageSize?: number;
55357
- /** @description Branch ID to filter by */
55358
- branchId: number;
55563
+ /** @description Search term */
55564
+ search?: string | null;
55359
55565
  };
55360
55566
  header?: never;
55361
55567
  path?: never;
@@ -55429,7 +55635,7 @@ export interface operations {
55429
55635
  [name: string]: unknown;
55430
55636
  };
55431
55637
  content: {
55432
- "application/json": components["schemas"]["MessageWithCode"];
55638
+ "application/json": components["schemas"]["StockAdjustmentSchema"];
55433
55639
  };
55434
55640
  };
55435
55641
  /** @description Bad Request */
@@ -55459,15 +55665,6 @@ export interface operations {
55459
55665
  "application/json": components["schemas"]["MessageWithCode"];
55460
55666
  };
55461
55667
  };
55462
- /** @description Conflict */
55463
- 409: {
55464
- headers: {
55465
- [name: string]: unknown;
55466
- };
55467
- content: {
55468
- "application/json": components["schemas"]["MessageWithCode"];
55469
- };
55470
- };
55471
55668
  /** @description Internal Server Error */
55472
55669
  500: {
55473
55670
  headers: {
@@ -55479,19 +55676,12 @@ export interface operations {
55479
55676
  };
55480
55677
  };
55481
55678
  };
55482
- inventory_views_get_stock_adjustment_header_details: {
55679
+ inventory_views_get_stock_adjustment: {
55483
55680
  parameters: {
55484
- query: {
55485
- /** @description Page number */
55486
- page?: number;
55487
- /** @description Page size */
55488
- pageSize?: number;
55489
- /** @description Branch ID to filter by */
55490
- branchId: number;
55491
- };
55681
+ query?: never;
55492
55682
  header?: never;
55493
55683
  path: {
55494
- headerId: number;
55684
+ id: number;
55495
55685
  };
55496
55686
  cookie?: never;
55497
55687
  };
@@ -55503,16 +55693,7 @@ export interface operations {
55503
55693
  [name: string]: unknown;
55504
55694
  };
55505
55695
  content: {
55506
- "application/json": components["schemas"]["StockAdjustmentDetailsListSchema"];
55507
- };
55508
- };
55509
- /** @description Bad Request */
55510
- 400: {
55511
- headers: {
55512
- [name: string]: unknown;
55513
- };
55514
- content: {
55515
- "application/json": components["schemas"]["MessageWithCode"];
55696
+ "application/json": components["schemas"]["StockAdjustmentSchema"];
55516
55697
  };
55517
55698
  };
55518
55699
  /** @description Forbidden */
@@ -55549,7 +55730,7 @@ export interface operations {
55549
55730
  query?: never;
55550
55731
  header?: never;
55551
55732
  path: {
55552
- headerId: number;
55733
+ id: number;
55553
55734
  };
55554
55735
  cookie?: never;
55555
55736
  };
@@ -55565,7 +55746,7 @@ export interface operations {
55565
55746
  [name: string]: unknown;
55566
55747
  };
55567
55748
  content: {
55568
- "application/json": components["schemas"]["MessageWithCode"];
55749
+ "application/json": components["schemas"]["StockAdjustmentSchema"];
55569
55750
  };
55570
55751
  };
55571
55752
  /** @description Bad Request */
@@ -55595,15 +55776,6 @@ export interface operations {
55595
55776
  "application/json": components["schemas"]["MessageWithCode"];
55596
55777
  };
55597
55778
  };
55598
- /** @description Conflict */
55599
- 409: {
55600
- headers: {
55601
- [name: string]: unknown;
55602
- };
55603
- content: {
55604
- "application/json": components["schemas"]["MessageWithCode"];
55605
- };
55606
- };
55607
55779
  /** @description Internal Server Error */
55608
55780
  500: {
55609
55781
  headers: {
@@ -55620,7 +55792,7 @@ export interface operations {
55620
55792
  query?: never;
55621
55793
  header?: never;
55622
55794
  path: {
55623
- headerId: number;
55795
+ id: number;
55624
55796
  };
55625
55797
  cookie?: never;
55626
55798
  };
@@ -55662,12 +55834,12 @@ export interface operations {
55662
55834
  };
55663
55835
  };
55664
55836
  };
55665
- inventory_views_delete_stock_adjustment_detail: {
55837
+ inventory_views_reset_to_draft: {
55666
55838
  parameters: {
55667
55839
  query?: never;
55668
55840
  header?: never;
55669
55841
  path: {
55670
- detailId: number;
55842
+ id: number;
55671
55843
  };
55672
55844
  cookie?: never;
55673
55845
  };
@@ -55679,53 +55851,11 @@ export interface operations {
55679
55851
  [name: string]: unknown;
55680
55852
  };
55681
55853
  content: {
55682
- "application/json": components["schemas"]["MessageWithCode"];
55683
- };
55684
- };
55685
- /** @description Forbidden */
55686
- 403: {
55687
- headers: {
55688
- [name: string]: unknown;
55689
- };
55690
- content: {
55691
- "application/json": components["schemas"]["MessageWithCode"];
55854
+ "application/json": components["schemas"]["StockAdjustmentSchema"];
55692
55855
  };
55693
55856
  };
55694
- /** @description Not Found */
55695
- 404: {
55696
- headers: {
55697
- [name: string]: unknown;
55698
- };
55699
- content: {
55700
- "application/json": components["schemas"]["MessageWithCode"];
55701
- };
55702
- };
55703
- /** @description Internal Server Error */
55704
- 500: {
55705
- headers: {
55706
- [name: string]: unknown;
55707
- };
55708
- content: {
55709
- "application/json": components["schemas"]["MessageWithCode"];
55710
- };
55711
- };
55712
- };
55713
- };
55714
- inventory_views_bulk_delete_stock_adjustment_details: {
55715
- parameters: {
55716
- query?: {
55717
- detailIds?: number[];
55718
- };
55719
- header?: never;
55720
- path: {
55721
- headerId: number;
55722
- };
55723
- cookie?: never;
55724
- };
55725
- requestBody?: never;
55726
- responses: {
55727
- /** @description OK */
55728
- 200: {
55857
+ /** @description Bad Request */
55858
+ 400: {
55729
55859
  headers: {
55730
55860
  [name: string]: unknown;
55731
55861
  };
@@ -55824,237 +55954,21 @@ export interface operations {
55824
55954
  };
55825
55955
  };
55826
55956
  };
55827
- inventory_opening_stock_views_create_opening_quantity: {
55828
- parameters: {
55829
- query?: never;
55830
- header?: never;
55831
- path?: never;
55832
- cookie?: never;
55833
- };
55834
- requestBody: {
55835
- content: {
55836
- "application/json": components["schemas"]["CreateOpeningQuantitySchema"];
55837
- };
55838
- };
55839
- responses: {
55840
- /** @description Created */
55841
- 201: {
55842
- headers: {
55843
- [name: string]: unknown;
55844
- };
55845
- content: {
55846
- "application/json": components["schemas"]["OpeningQuantitySchema"];
55847
- };
55848
- };
55849
- /** @description Bad Request */
55850
- 400: {
55851
- headers: {
55852
- [name: string]: unknown;
55853
- };
55854
- content: {
55855
- "application/json": components["schemas"]["ErrorMessages"];
55856
- };
55857
- };
55858
- /** @description Forbidden */
55859
- 403: {
55860
- headers: {
55861
- [name: string]: unknown;
55862
- };
55863
- content: {
55864
- "application/json": components["schemas"]["MessageWithCode"];
55865
- };
55866
- };
55867
- /** @description Not Found */
55868
- 404: {
55869
- headers: {
55870
- [name: string]: unknown;
55871
- };
55872
- content: {
55873
- "application/json": components["schemas"]["MessageWithCode"];
55874
- };
55875
- };
55876
- /** @description Internal Server Error */
55877
- 500: {
55878
- headers: {
55879
- [name: string]: unknown;
55880
- };
55881
- content: {
55882
- "application/json": components["schemas"]["MessageWithCode"];
55883
- };
55884
- };
55885
- };
55886
- };
55887
- inventory_opening_stock_views_get_opening_quantity: {
55888
- parameters: {
55889
- query?: never;
55890
- header?: never;
55891
- path: {
55892
- id: number;
55893
- };
55894
- cookie?: never;
55895
- };
55896
- requestBody?: never;
55897
- responses: {
55898
- /** @description OK */
55899
- 200: {
55900
- headers: {
55901
- [name: string]: unknown;
55902
- };
55903
- content: {
55904
- "application/json": components["schemas"]["OpeningQuantitySchema"];
55905
- };
55906
- };
55907
- /** @description Forbidden */
55908
- 403: {
55909
- headers: {
55910
- [name: string]: unknown;
55911
- };
55912
- content: {
55913
- "application/json": components["schemas"]["MessageWithCode"];
55914
- };
55915
- };
55916
- /** @description Not Found */
55917
- 404: {
55918
- headers: {
55919
- [name: string]: unknown;
55920
- };
55921
- content: {
55922
- "application/json": components["schemas"]["MessageWithCode"];
55923
- };
55924
- };
55925
- /** @description Internal Server Error */
55926
- 500: {
55927
- headers: {
55928
- [name: string]: unknown;
55929
- };
55930
- content: {
55931
- "application/json": components["schemas"]["MessageWithCode"];
55932
- };
55933
- };
55934
- };
55935
- };
55936
- inventory_opening_stock_views_update_opening_quantity: {
55937
- parameters: {
55938
- query?: never;
55939
- header?: never;
55940
- path: {
55941
- id: number;
55942
- };
55943
- cookie?: never;
55944
- };
55945
- requestBody: {
55946
- content: {
55947
- "application/json": components["schemas"]["UpdateOpeningQuantitySchema"];
55948
- };
55949
- };
55950
- responses: {
55951
- /** @description OK */
55952
- 200: {
55953
- headers: {
55954
- [name: string]: unknown;
55955
- };
55956
- content: {
55957
- "application/json": components["schemas"]["OpeningQuantitySchema"];
55958
- };
55959
- };
55960
- /** @description Bad Request */
55961
- 400: {
55962
- headers: {
55963
- [name: string]: unknown;
55964
- };
55965
- content: {
55966
- "application/json": components["schemas"]["ErrorMessages"];
55967
- };
55968
- };
55969
- /** @description Forbidden */
55970
- 403: {
55971
- headers: {
55972
- [name: string]: unknown;
55973
- };
55974
- content: {
55975
- "application/json": components["schemas"]["MessageWithCode"];
55976
- };
55977
- };
55978
- /** @description Not Found */
55979
- 404: {
55980
- headers: {
55981
- [name: string]: unknown;
55982
- };
55983
- content: {
55984
- "application/json": components["schemas"]["MessageWithCode"];
55985
- };
55986
- };
55987
- /** @description Internal Server Error */
55988
- 500: {
55989
- headers: {
55990
- [name: string]: unknown;
55991
- };
55992
- content: {
55993
- "application/json": components["schemas"]["MessageWithCode"];
55994
- };
55995
- };
55996
- };
55997
- };
55998
- inventory_opening_stock_views_delete_opening_quantity: {
55999
- parameters: {
56000
- query?: never;
56001
- header?: never;
56002
- path: {
56003
- id: number;
56004
- };
56005
- cookie?: never;
56006
- };
56007
- requestBody?: never;
56008
- responses: {
56009
- /** @description No Content */
56010
- 204: {
56011
- headers: {
56012
- [name: string]: unknown;
56013
- };
56014
- content?: never;
56015
- };
56016
- /** @description Forbidden */
56017
- 403: {
56018
- headers: {
56019
- [name: string]: unknown;
56020
- };
56021
- content: {
56022
- "application/json": components["schemas"]["MessageWithCode"];
56023
- };
56024
- };
56025
- /** @description Not Found */
56026
- 404: {
56027
- headers: {
56028
- [name: string]: unknown;
56029
- };
56030
- content: {
56031
- "application/json": components["schemas"]["MessageWithCode"];
56032
- };
56033
- };
56034
- /** @description Internal Server Error */
56035
- 500: {
56036
- headers: {
56037
- [name: string]: unknown;
56038
- };
56039
- content: {
56040
- "application/json": components["schemas"]["MessageWithCode"];
56041
- };
56042
- };
56043
- };
56044
- };
56045
- inventory_opening_stock_views_reset_to_draft: {
55957
+ inventory_opening_stock_views_create_opening_quantity: {
56046
55958
  parameters: {
56047
55959
  query?: never;
56048
55960
  header?: never;
56049
- path: {
56050
- id: number;
56051
- };
55961
+ path?: never;
56052
55962
  cookie?: never;
56053
55963
  };
56054
- requestBody?: never;
55964
+ requestBody: {
55965
+ content: {
55966
+ "application/json": components["schemas"]["CreateOpeningQuantitySchema"];
55967
+ };
55968
+ };
56055
55969
  responses: {
56056
- /** @description OK */
56057
- 200: {
55970
+ /** @description Created */
55971
+ 201: {
56058
55972
  headers: {
56059
55973
  [name: string]: unknown;
56060
55974
  };
@@ -56068,7 +55982,7 @@ export interface operations {
56068
55982
  [name: string]: unknown;
56069
55983
  };
56070
55984
  content: {
56071
- "application/json": components["schemas"]["MessageWithCode"];
55985
+ "application/json": components["schemas"]["ErrorMessages"];
56072
55986
  };
56073
55987
  };
56074
55988
  /** @description Forbidden */
@@ -56100,18 +56014,13 @@ export interface operations {
56100
56014
  };
56101
56015
  };
56102
56016
  };
56103
- inventory_transfer_views_list_internal_transfers: {
56017
+ inventory_opening_stock_views_get_opening_quantity: {
56104
56018
  parameters: {
56105
- query?: {
56106
- /** @description Page number */
56107
- page?: number;
56108
- /** @description Page size */
56109
- pageSize?: number;
56110
- /** @description Branch ID to filter by */
56111
- branchId?: number;
56112
- };
56019
+ query?: never;
56113
56020
  header?: never;
56114
- path?: never;
56021
+ path: {
56022
+ id: number;
56023
+ };
56115
56024
  cookie?: never;
56116
56025
  };
56117
56026
  requestBody?: never;
@@ -56122,11 +56031,11 @@ export interface operations {
56122
56031
  [name: string]: unknown;
56123
56032
  };
56124
56033
  content: {
56125
- "application/json": components["schemas"]["InternalTransferHeaderListSchema"];
56034
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
56126
56035
  };
56127
56036
  };
56128
- /** @description Bad Request */
56129
- 400: {
56037
+ /** @description Forbidden */
56038
+ 403: {
56130
56039
  headers: {
56131
56040
  [name: string]: unknown;
56132
56041
  };
@@ -56134,8 +56043,8 @@ export interface operations {
56134
56043
  "application/json": components["schemas"]["MessageWithCode"];
56135
56044
  };
56136
56045
  };
56137
- /** @description Forbidden */
56138
- 403: {
56046
+ /** @description Not Found */
56047
+ 404: {
56139
56048
  headers: {
56140
56049
  [name: string]: unknown;
56141
56050
  };
@@ -56154,26 +56063,28 @@ export interface operations {
56154
56063
  };
56155
56064
  };
56156
56065
  };
56157
- inventory_transfer_views_create_internal_transfer: {
56066
+ inventory_opening_stock_views_update_opening_quantity: {
56158
56067
  parameters: {
56159
56068
  query?: never;
56160
56069
  header?: never;
56161
- path?: never;
56070
+ path: {
56071
+ id: number;
56072
+ };
56162
56073
  cookie?: never;
56163
56074
  };
56164
56075
  requestBody: {
56165
56076
  content: {
56166
- "application/json": components["schemas"]["InternalTransferCreateSchema"];
56077
+ "application/json": components["schemas"]["UpdateOpeningQuantitySchema"];
56167
56078
  };
56168
56079
  };
56169
56080
  responses: {
56170
- /** @description Created */
56171
- 201: {
56081
+ /** @description OK */
56082
+ 200: {
56172
56083
  headers: {
56173
56084
  [name: string]: unknown;
56174
56085
  };
56175
56086
  content: {
56176
- "application/json": components["schemas"]["MessageWithCode"];
56087
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
56177
56088
  };
56178
56089
  };
56179
56090
  /** @description Bad Request */
@@ -56203,8 +56114,46 @@ export interface operations {
56203
56114
  "application/json": components["schemas"]["MessageWithCode"];
56204
56115
  };
56205
56116
  };
56206
- /** @description Conflict */
56207
- 409: {
56117
+ /** @description Internal Server Error */
56118
+ 500: {
56119
+ headers: {
56120
+ [name: string]: unknown;
56121
+ };
56122
+ content: {
56123
+ "application/json": components["schemas"]["MessageWithCode"];
56124
+ };
56125
+ };
56126
+ };
56127
+ };
56128
+ inventory_opening_stock_views_delete_opening_quantity: {
56129
+ parameters: {
56130
+ query?: never;
56131
+ header?: never;
56132
+ path: {
56133
+ id: number;
56134
+ };
56135
+ cookie?: never;
56136
+ };
56137
+ requestBody?: never;
56138
+ responses: {
56139
+ /** @description No Content */
56140
+ 204: {
56141
+ headers: {
56142
+ [name: string]: unknown;
56143
+ };
56144
+ content?: never;
56145
+ };
56146
+ /** @description Forbidden */
56147
+ 403: {
56148
+ headers: {
56149
+ [name: string]: unknown;
56150
+ };
56151
+ content: {
56152
+ "application/json": components["schemas"]["MessageWithCode"];
56153
+ };
56154
+ };
56155
+ /** @description Not Found */
56156
+ 404: {
56208
56157
  headers: {
56209
56158
  [name: string]: unknown;
56210
56159
  };
@@ -56223,19 +56172,12 @@ export interface operations {
56223
56172
  };
56224
56173
  };
56225
56174
  };
56226
- inventory_transfer_views_list_internal_transfer_details: {
56175
+ inventory_opening_stock_views_reset_to_draft: {
56227
56176
  parameters: {
56228
- query?: {
56229
- /** @description Page number */
56230
- page?: number;
56231
- /** @description Page size */
56232
- pageSize?: number;
56233
- /** @description Branch ID to filter by */
56234
- branchId?: number;
56235
- };
56177
+ query?: never;
56236
56178
  header?: never;
56237
56179
  path: {
56238
- headerId: number;
56180
+ id: number;
56239
56181
  };
56240
56182
  cookie?: never;
56241
56183
  };
@@ -56247,7 +56189,7 @@ export interface operations {
56247
56189
  [name: string]: unknown;
56248
56190
  };
56249
56191
  content: {
56250
- "application/json": components["schemas"]["InternalTransferDetailListSchema"];
56192
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
56251
56193
  };
56252
56194
  };
56253
56195
  /** @description Bad Request */
@@ -56288,13 +56230,17 @@ export interface operations {
56288
56230
  };
56289
56231
  };
56290
56232
  };
56291
- inventory_transfer_views_rest_to_draft: {
56233
+ inventory_transfer_views_list_internal_transfers: {
56292
56234
  parameters: {
56293
- query?: never;
56294
- header?: never;
56295
- path: {
56296
- headerId: number;
56235
+ query?: {
56236
+ /** @description Page number */
56237
+ page?: number;
56238
+ /** @description Page size */
56239
+ pageSize?: number;
56240
+ search?: string | null;
56297
56241
  };
56242
+ header?: never;
56243
+ path?: never;
56298
56244
  cookie?: never;
56299
56245
  };
56300
56246
  requestBody?: never;
@@ -56305,7 +56251,7 @@ export interface operations {
56305
56251
  [name: string]: unknown;
56306
56252
  };
56307
56253
  content: {
56308
- "application/json": components["schemas"]["MessageWithCode"];
56254
+ "application/json": components["schemas"]["InternalTransferHeaderListSchema"];
56309
56255
  };
56310
56256
  };
56311
56257
  /** @description Bad Request */
@@ -56346,28 +56292,26 @@ export interface operations {
56346
56292
  };
56347
56293
  };
56348
56294
  };
56349
- inventory_transfer_views_update_internal_transfer: {
56295
+ inventory_transfer_views_create_internal_transfer: {
56350
56296
  parameters: {
56351
56297
  query?: never;
56352
56298
  header?: never;
56353
- path: {
56354
- headerId: number;
56355
- };
56299
+ path?: never;
56356
56300
  cookie?: never;
56357
56301
  };
56358
56302
  requestBody: {
56359
56303
  content: {
56360
- "application/json": components["schemas"]["InternalTransferUpdateSchema"];
56304
+ "application/json": components["schemas"]["CreateInternalTransferSchema"];
56361
56305
  };
56362
56306
  };
56363
56307
  responses: {
56364
- /** @description OK */
56365
- 200: {
56308
+ /** @description Created */
56309
+ 201: {
56366
56310
  headers: {
56367
56311
  [name: string]: unknown;
56368
56312
  };
56369
56313
  content: {
56370
- "application/json": components["schemas"]["MessageWithCode"];
56314
+ "application/json": components["schemas"]["InternalTransferSchema"];
56371
56315
  };
56372
56316
  };
56373
56317
  /** @description Bad Request */
@@ -56397,8 +56341,110 @@ export interface operations {
56397
56341
  "application/json": components["schemas"]["MessageWithCode"];
56398
56342
  };
56399
56343
  };
56400
- /** @description Conflict */
56401
- 409: {
56344
+ /** @description Internal Server Error */
56345
+ 500: {
56346
+ headers: {
56347
+ [name: string]: unknown;
56348
+ };
56349
+ content: {
56350
+ "application/json": components["schemas"]["MessageWithCode"];
56351
+ };
56352
+ };
56353
+ };
56354
+ };
56355
+ inventory_transfer_views_get_internal_transfer: {
56356
+ parameters: {
56357
+ query?: never;
56358
+ header?: never;
56359
+ path: {
56360
+ id: number;
56361
+ };
56362
+ cookie?: never;
56363
+ };
56364
+ requestBody?: never;
56365
+ responses: {
56366
+ /** @description OK */
56367
+ 200: {
56368
+ headers: {
56369
+ [name: string]: unknown;
56370
+ };
56371
+ content: {
56372
+ "application/json": components["schemas"]["InternalTransferSchema"];
56373
+ };
56374
+ };
56375
+ /** @description Forbidden */
56376
+ 403: {
56377
+ headers: {
56378
+ [name: string]: unknown;
56379
+ };
56380
+ content: {
56381
+ "application/json": components["schemas"]["MessageWithCode"];
56382
+ };
56383
+ };
56384
+ /** @description Not Found */
56385
+ 404: {
56386
+ headers: {
56387
+ [name: string]: unknown;
56388
+ };
56389
+ content: {
56390
+ "application/json": components["schemas"]["MessageWithCode"];
56391
+ };
56392
+ };
56393
+ /** @description Internal Server Error */
56394
+ 500: {
56395
+ headers: {
56396
+ [name: string]: unknown;
56397
+ };
56398
+ content: {
56399
+ "application/json": components["schemas"]["MessageWithCode"];
56400
+ };
56401
+ };
56402
+ };
56403
+ };
56404
+ inventory_transfer_views_update_internal_transfer: {
56405
+ parameters: {
56406
+ query?: never;
56407
+ header?: never;
56408
+ path: {
56409
+ id: number;
56410
+ };
56411
+ cookie?: never;
56412
+ };
56413
+ requestBody: {
56414
+ content: {
56415
+ "application/json": components["schemas"]["UpdateInternalTransferSchema"];
56416
+ };
56417
+ };
56418
+ responses: {
56419
+ /** @description OK */
56420
+ 200: {
56421
+ headers: {
56422
+ [name: string]: unknown;
56423
+ };
56424
+ content: {
56425
+ "application/json": components["schemas"]["InternalTransferSchema"];
56426
+ };
56427
+ };
56428
+ /** @description Bad Request */
56429
+ 400: {
56430
+ headers: {
56431
+ [name: string]: unknown;
56432
+ };
56433
+ content: {
56434
+ "application/json": components["schemas"]["ErrorMessages"];
56435
+ };
56436
+ };
56437
+ /** @description Forbidden */
56438
+ 403: {
56439
+ headers: {
56440
+ [name: string]: unknown;
56441
+ };
56442
+ content: {
56443
+ "application/json": components["schemas"]["MessageWithCode"];
56444
+ };
56445
+ };
56446
+ /** @description Not Found */
56447
+ 404: {
56402
56448
  headers: {
56403
56449
  [name: string]: unknown;
56404
56450
  };
@@ -56464,7 +56510,7 @@ export interface operations {
56464
56510
  };
56465
56511
  };
56466
56512
  };
56467
- inventory_transfer_views_delete_internal_transfer_detail: {
56513
+ inventory_transfer_views_reset_to_draft: {
56468
56514
  parameters: {
56469
56515
  query?: never;
56470
56516
  header?: never;
@@ -56475,12 +56521,23 @@ export interface operations {
56475
56521
  };
56476
56522
  requestBody?: never;
56477
56523
  responses: {
56478
- /** @description No Content */
56479
- 204: {
56524
+ /** @description OK */
56525
+ 200: {
56480
56526
  headers: {
56481
56527
  [name: string]: unknown;
56482
56528
  };
56483
- content?: never;
56529
+ content: {
56530
+ "application/json": components["schemas"]["InternalTransferSchema"];
56531
+ };
56532
+ };
56533
+ /** @description Bad Request */
56534
+ 400: {
56535
+ headers: {
56536
+ [name: string]: unknown;
56537
+ };
56538
+ content: {
56539
+ "application/json": components["schemas"]["MessageWithCode"];
56540
+ };
56484
56541
  };
56485
56542
  /** @description Forbidden */
56486
56543
  403: {
@@ -70695,12 +70752,11 @@ export interface operations {
70695
70752
  };
70696
70753
  inventory_receipt_note_views_list_goods_receipt_notes: {
70697
70754
  parameters: {
70698
- query: {
70755
+ query?: {
70699
70756
  page?: number;
70700
70757
  pageSize?: number;
70701
70758
  /** @description fields to search: reference_number, supplier name, serial_number, date, item name, supplier account number */
70702
70759
  search?: string | null;
70703
- branchId: number;
70704
70760
  /** @description Period type: thisMonth, thisYear, lastMonth, custom, ... */
70705
70761
  periodType?: "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "today" | "all";
70706
70762
  /** @description Start date for custom range (YYYY-MM-DD), this required if the period type is custom */
@@ -70765,8 +70821,8 @@ export interface operations {
70765
70821
  };
70766
70822
  };
70767
70823
  responses: {
70768
- /** @description OK */
70769
- 200: {
70824
+ /** @description Created */
70825
+ 201: {
70770
70826
  headers: {
70771
70827
  [name: string]: unknown;
70772
70828
  };