X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=js%2Fkivi.CustomerVendor.js;h=f809e3498fbbb441d90a73d690c63018e64dedda;hb=a4d4aaa15dbe5d4c050049186c6d4b762dfa52fb;hp=6ee499a5438e0f289ad4b17dbe08810df41312d7;hpb=76bc0ada482ec6c9cc412ada981b77f5c7df9e4a;p=kivitendo-erp.git diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index 6ee499a54..f809e3498 100644 --- a/js/kivi.CustomerVendor.js +++ b/js/kivi.CustomerVendor.js @@ -71,7 +71,10 @@ namespace('kivi.CustomerVendor', function(ns) { $('#action_delete_contact').show(); else $('#action_delete_contact').hide(); - + if (data.contact.disable_cp_main === 1) + $("#contact_cp_main").prop("disabled", true); + else + $("#contact_cp_main").prop("disabled", false); if ( params.onFormSet ) params.onFormSet(); }); @@ -208,6 +211,7 @@ namespace('kivi.CustomerVendor', function(ns) { }; this.inline_report = function(target, source, data){ +// alert("HALLO S " + source + " --T " + target + " tt D " + data); $.ajax({ url: source, success: function (rsp) { @@ -271,7 +275,7 @@ namespace('kivi.CustomerVendor', function(ns) { 'filter.all:substr:multi::ilike': term, 'filter.obsolete': 0, current: this.$real.val(), - type: this.o.type, + type: this.o.cv_type, }; }, set_item: function(item) {