mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
feat: validate the matched linked transacation on deleting.
This commit is contained in:
@@ -23,11 +23,9 @@ export class BankTransactionsMatchingController extends BaseController {
|
||||
'/:transactionId',
|
||||
[
|
||||
param('transactionId').exists(),
|
||||
|
||||
body('matchedTransactions').isArray({ min: 1 }),
|
||||
body('matchedTransactions.*.reference_type').exists(),
|
||||
body('matchedTransactions.*.reference_id').isNumeric().toInt(),
|
||||
body('matchedTransactions.*.amount').exists().isNumeric().toFloat(),
|
||||
],
|
||||
this.validationResult,
|
||||
this.matchBankTransaction.bind(this)
|
||||
|
||||
Reference in New Issue
Block a user