fix: reference_no of bills transactions.

This commit is contained in:
Ahmed Bouhuolia
2020-11-10 11:31:17 +02:00
parent af37fe8cba
commit 3446dee8bb
2 changed files with 3 additions and 3 deletions

View File

@@ -89,6 +89,7 @@ export default class BillsController extends BaseController {
get billValidationSchema() {
return [
check('bill_number').exists().trim().escape(),
check('reference_no').optional().trim().escape(),
check('bill_date').exists().isISO8601(),
check('due_date').optional().isISO8601(),
check('vendor_id').exists().isNumeric().toInt(),
@@ -111,6 +112,7 @@ export default class BillsController extends BaseController {
get billEditValidationSchema() {
return [
check('bill_number').exists().trim().escape(),
check('reference_no').optional().trim().escape(),
check('bill_date').exists().isISO8601(),
check('due_date').optional().isISO8601(),
check('vendor_id').exists().isNumeric().toInt(),