X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/598383b3b6b63428fcabc5fb6e5595ec59de28e3..01e8c00277531869451a149c43e3f475869b89ca:/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() {