mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix(Item): delete item with associated items entries.
This commit is contained in:
@@ -52,7 +52,6 @@ export default class InventoryAdjustmentsController extends BaseController {
|
||||
return router;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Validate list query schema
|
||||
*/
|
||||
@@ -236,11 +235,13 @@ export default class InventoryAdjustmentsController extends BaseController {
|
||||
if (error instanceof ServiceError) {
|
||||
if (error.errorType === 'INVENTORY_ADJUSTMENT_NOT_FOUND') {
|
||||
return res.status(400).send({
|
||||
errors: [{
|
||||
type: 'INVENTORY_ADJUSTMENT.NOT.FOUND',
|
||||
code: 100,
|
||||
message: 'The inventory adjustment not found.'
|
||||
}],
|
||||
errors: [
|
||||
{
|
||||
type: 'INVENTORY_ADJUSTMENT.NOT.FOUND',
|
||||
code: 100,
|
||||
message: 'The inventory adjustment not found.',
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
if (error.errorType === 'NOT_FOUND') {
|
||||
|
||||
Reference in New Issue
Block a user