Skip to content
Snippets Groups Projects
Commit 18a8ff1b authored by ynerant's avatar ynerant
Browse files

Set credit/debit reason non mandatory

parent c61bb2e9
No related branches found
No related tags found
1 merge request!133Various fixes
Pipeline #8768 passed with stages
in 12 minutes and 22 seconds
...@@ -250,7 +250,7 @@ $('#btn_transfer').click(function () { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment