Lines 347-352
Link Here
|
347 |
var forms = $('#payindivfine, #payfine'); |
347 |
var forms = $('#payindivfine, #payfine'); |
348 |
var change = $('#change')[0]; |
348 |
var change = $('#change')[0]; |
349 |
|
349 |
|
|
|
350 |
forms.on('submit',function(){ |
351 |
if( $("#paid").val() == 0 ){ |
352 |
alert(_("You must pay an amount greater than 0")); |
353 |
forms.beensubmitted = false; |
354 |
return false; |
355 |
} else { |
356 |
return true; |
357 |
} |
358 |
}); |
359 |
|
350 |
$('#payindivfine, #payfine').preventDoubleFormSubmit(); |
360 |
$('#payindivfine, #payfine').preventDoubleFormSubmit(); |
351 |
$("#paid, #collected").on("change",function() { |
361 |
$("#paid, #collected").on("change",function() { |
352 |
moneyFormat( this ); |
362 |
moneyFormat( this ); |
353 |
- |
|
|