X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7cad87f84d2284d6836f17d672ce44c9c3418f2b..199bd497fa158b819070767fa737b2e23d164b96:/js/kivi.Order.js diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 592909686..580ff50d7 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -164,6 +164,7 @@ namespace('kivi.Order', function(ns) { }; ns.reload_cv_dependent_selections = function() { + $('#order_shipto_id').val(''); var data = $('#order_form').serializeArray(); data.push({ name: 'action', value: 'Order/customer_vendor_changed' }); @@ -845,6 +846,12 @@ namespace('kivi.Order', function(ns) { return true; }; + ns.edit_custom_shipto = function() { + if (!ns.check_cv()) return; + + kivi.SalesPurchase.edit_custom_shipto(); + }; + }); $(function() {