Set credit/debit reason non mandatory
This commit is contained in:
parent
c61bb2e90d
commit
18a8ff1b8a
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ $('#btn_transfer').click(function () {
|
||||||
error = true
|
error = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!reason_field.val()) {
|
if (!reason_field.val() && $('#type_transfer').is(':checked')) {
|
||||||
reason_field.addClass('is-invalid')
|
reason_field.addClass('is-invalid')
|
||||||
$('#reason-required').html('<strong>Ce champ est requis.</strong>')
|
$('#reason-required').html('<strong>Ce champ est requis.</strong>')
|
||||||
error = true
|
error = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue