mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: issue in sales invoices and bills.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -331,7 +331,6 @@ export default class SaleInvoicesController extends BaseController{
|
||||
});
|
||||
}
|
||||
}
|
||||
console.log(error.errorType);
|
||||
next(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user