fix: issue in sales invoices and bills.

This commit is contained in:
Ahmed Bouhuolia
2020-10-25 19:58:32 +02:00
parent 5e615e57c3
commit ca6acf6517
8 changed files with 64 additions and 34 deletions

View File

@@ -178,13 +178,11 @@ export default class PaymentReceivesController extends BaseController {
const { id: paymentReceiveId } = req.params;
try {
await this.paymentReceiveService.deletePaymentReceive(
tenantId,
paymentReceiveId,
);
await this.paymentReceiveService.deletePaymentReceive(tenantId, paymentReceiveId);
return res.status(200).send({
id: paymentReceiveId,
message: 'The payment receive has been edited successfully',
message: 'The payment receive has been deleted successfully',
});
} catch (error) {
next(error);

View File

@@ -331,7 +331,6 @@ export default class SaleInvoicesController extends BaseController{
});
}
}
console.log(error.errorType);
next(error);
}
}