Revision d6fed9b5
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
js/kivi.Order.js | ||
---|---|---|
558 | 558 |
$.post("controller.pl", data, kivi.eval_json_result); |
559 | 559 |
}; |
560 | 560 |
|
561 |
ns.update_price_source = function(item_id, source, descr, price_str, price_editable) {
|
|
561 |
ns.set_price_and_source_text = function(item_id, source, descr, price_str, price_editable) {
|
|
562 | 562 |
var row = $('#item_' + item_id).parents("tbody").first(); |
563 | 563 |
var source_elt = $(row).find('[name="order.orderitems[].active_price_source"]'); |
564 | 564 |
var button_elt = $(row).find('[name="price_chooser_button"]'); |
... | ... | |
587 | 587 |
var html_elt = $(row).find('[name="sellprice_text"]'); |
588 | 588 |
price_elt.val(price_str); |
589 | 589 |
html_elt.html(price_str); |
590 |
ns.recalc_amounts_and_taxes(); |
|
591 | 590 |
} |
591 |
}; |
|
592 |
|
|
593 |
ns.update_price_source = function(item_id, source, descr, price_str, price_editable) { |
|
594 |
ns.set_price_source_text(item_id, source, descr, price_str, price_editable); |
|
592 | 595 |
|
596 |
if (price_str) ns.recalc_amounts_and_taxes(); |
|
593 | 597 |
kivi.io.close_dialog(); |
594 | 598 |
}; |
595 | 599 |
|
596 |
ns.update_discount_source = function(item_id, source, descr, discount_str, price_editable) {
|
|
600 |
ns.set_discount_and_source_text = function(item_id, source, descr, discount_str, price_editable) {
|
|
597 | 601 |
var row = $('#item_' + item_id).parents("tbody").first(); |
598 | 602 |
var source_elt = $(row).find('[name="order.orderitems[].active_discount_source"]'); |
599 | 603 |
var button_elt = $(row).find('[name="price_chooser_button"]'); |
... | ... | |
622 | 626 |
var html_elt = $(row).find('[name="discount_text"]'); |
623 | 627 |
discount_elt.val(discount_str); |
624 | 628 |
html_elt.html(discount_str); |
625 |
ns.recalc_amounts_and_taxes(); |
|
626 | 629 |
} |
630 |
}; |
|
627 | 631 |
|
632 |
ns.update_discount_source = function(item_id, source, descr, discount_str, price_editable) { |
|
633 |
if (discount_str) ns.recalc_amounts_and_taxes(); |
|
628 | 634 |
kivi.io.close_dialog(); |
629 | 635 |
}; |
630 | 636 |
|
Auch abrufbar als: Unified diff
Auftrags-Controller: Preisquellen bei Erneuern von Positionen aus Stammdaten …
… nicht nur berücksichtigen, sondern auch anzeigen.
Und Rabatt-Quellen ebefalls berücksichtigen und anzeigen.