Revision f8b23396
Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
689 | 689 |
->replaceWith('#business_info_row', $self->build_business_info_row) |
690 | 690 |
->val( '#order_taxzone_id', $self->order->taxzone_id) |
691 | 691 |
->val( '#order_taxincluded', $self->order->taxincluded) |
692 |
->val( '#order_currency_id', $self->order->currency_id) |
|
692 | 693 |
->val( '#order_payment_id', $self->order->payment_id) |
693 | 694 |
->val( '#order_delivery_term_id', $self->order->delivery_term_id) |
694 | 695 |
->val( '#order_intnotes', $self->order->intnotes) |
695 | 696 |
->val( '#language_id', $self->order->$cv_method->language_id) |
696 |
->focus( '#order_' . $self->cv . '_id'); |
|
697 |
->focus( '#order_' . $self->cv . '_id') |
|
698 |
->run('kivi.Order.update_exchangerate'); |
|
697 | 699 |
|
698 | 700 |
$self->js_redisplay_amounts_and_taxes; |
699 | 701 |
$self->js_redisplay_cvpartnumbers; |
... | ... | |
1507 | 1509 |
sub setup_order_from_cv { |
1508 | 1510 |
my ($order) = @_; |
1509 | 1511 |
|
1510 |
$order->$_($order->customervendor->$_) for (qw(taxzone_id payment_id delivery_term_id)); |
|
1512 |
$order->$_($order->customervendor->$_) for (qw(taxzone_id payment_id delivery_term_id currency_id));
|
|
1511 | 1513 |
|
1512 | 1514 |
$order->intnotes($order->customervendor->notes); |
1513 | 1515 |
|
js/kivi.Order.js | ||
---|---|---|
175 | 175 |
}; |
176 | 176 |
|
177 | 177 |
ns.update_exchangerate = function(event) { |
178 |
if (!ns.check_cv()) { |
|
179 |
$('#order_currency_id').val($('#old_currency_id').val()); |
|
180 |
return; |
|
181 |
} |
|
182 |
|
|
178 | 183 |
var rate_input = $('#order_exchangerate_as_null_number'); |
179 | 184 |
rate_input.prop('disabled', true); |
180 | 185 |
|
Auch abrufbar als: Unified diff
Auftrags-Controller: Währung bei Kunden-/Lieferantenwechsel setzen