1 namespace('kivi.PaymentTerm', function(ns) {
2 ns.auto_calculation_changed = function() {
3 var $ctrl = $('#payment_term_terms_netto_as_number');
5 if ($('#payment_term_auto_calculation').val() == 0)
6 $ctrl.prop('disabled', true);
8 $ctrl.prop('disabled', false).focus();
13 $('#payment_term_auto_calculation').change(kivi.PaymentTerm.auto_calculation_changed);