Set credit/debit reason non mandatory

This commit is contained in:
Yohann D'ANELLO 2020-10-07 09:45:09 +02:00
parent c61bb2e90d
commit 18a8ff1b8a
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ $('#btn_transfer').click(function () {
error = true
}
if (!reason_field.val()) {
if (!reason_field.val() && $('#type_transfer').is(':checked')) {
reason_field.addClass('is-invalid')
$('#reason-required').html('<strong>Ce champ est requis.</strong>')
error = true