X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.io.js;h=4758583e25019623fd4e135da85be0c2cd78aec4;hb=958b82d600cebec78ff208257b1fd348ee0439bf;hp=109b2001031e435d2f1caabc921c9a25a184b5f5;hpb=049e49fea3e4a3c7c78d7aebf055936b3cab40c5;p=kivitendo-erp.git diff --git a/js/kivi.io.js b/js/kivi.io.js index 109b20010..4758583e2 100644 --- a/js/kivi.io.js +++ b/js/kivi.io.js @@ -43,4 +43,10 @@ namespace('kivi.io', function(ns) { if (price_str) $('#sellprice_' + row).val(price_str); $('#update_button').click(); } + + ns.update_discount_source = function(row, source, discount_str) { + $('#active_discount_source_' + row).val(source); + if (discount_str) $('#discount_' + row).val(discount_str); + $('#update_button').click(); + } });