mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
docs: sales receipts.
This commit is contained in:
@@ -213,7 +213,13 @@ export default class SalesReceiptsController extends BaseController{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles service errors.
|
||||||
|
* @param {Error} error
|
||||||
|
* @param {Request} req
|
||||||
|
* @param {Response} res
|
||||||
|
* @param {NextFunction} next
|
||||||
|
*/
|
||||||
handleServiceErrors(error: Error, req: Request, res: Response, next: NextFunction) {
|
handleServiceErrors(error: Error, req: Request, res: Response, next: NextFunction) {
|
||||||
if (error instanceof ServiceError) {
|
if (error instanceof ServiceError) {
|
||||||
if (error.errorType === 'SALE_RECEIPT_NOT_FOUND') {
|
if (error.errorType === 'SALE_RECEIPT_NOT_FOUND') {
|
||||||
|
|||||||
Reference in New Issue
Block a user