mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat(contacts): auto-complete contacts.
feat(items): auto-complete items. feat(resources): resource columns feat. feat(contacts): retrieve specific contact details.
This commit is contained in:
@@ -4,12 +4,16 @@ import { check, query, param } from 'express-validator';
|
||||
import { ServiceError } from 'exceptions';
|
||||
import BaseController from '../BaseController';
|
||||
import InventoryAdjustmentService from 'services/Inventory/InventoryAdjustmentService';
|
||||
import DynamicListingService from 'services/DynamicListing/DynamicListService';
|
||||
|
||||
@Service()
|
||||
export default class InventoryAdjustmentsController extends BaseController {
|
||||
@Inject()
|
||||
inventoryAdjustmentService: InventoryAdjustmentService;
|
||||
|
||||
@Inject()
|
||||
dynamicListService: DynamicListingService;
|
||||
|
||||
/**
|
||||
* Router constructor.
|
||||
*/
|
||||
@@ -42,6 +46,7 @@ export default class InventoryAdjustmentsController extends BaseController {
|
||||
[...this.validateListQuerySchema],
|
||||
this.validationResult,
|
||||
this.asyncMiddleware(this.getInventoryAdjustments.bind(this)),
|
||||
this.dynamicListService.handlerErrorsToResponse,
|
||||
this.handleServiceErrors
|
||||
);
|
||||
return router;
|
||||
@@ -191,6 +196,9 @@ export default class InventoryAdjustmentsController extends BaseController {
|
||||
const filter = {
|
||||
page: 1,
|
||||
pageSize: 12,
|
||||
columnSortBy: 'created_at',
|
||||
sortOrder: 'desc',
|
||||
filterRoles: [],
|
||||
...this.matchedQueryData(req),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user