S:D:Helper:TransNumberGenerator: Warnung vermeiden.
[kivitendo-erp.git] / js / kivi.PaymentTerm.js
1 namespace('kivi.PaymentTerm', function(ns) {
2   ns.auto_calculation_changed = function() {
3     var $ctrl = $('#payment_term_terms_netto_as_number');
4
5     if ($('#payment_term_auto_calculation').val() == 0)
6       $ctrl.prop('disabled', true);
7     else
8       $ctrl.prop('disabled', false).focus();
9   };
10 });
11
12 $(function() {
13   $('#payment_term_auto_calculation').change(kivi.PaymentTerm.auto_calculation_changed);
14 });