Revision d6cc1832
Von Sven Schöling vor fast 3 Jahren hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
233 | 233 |
} |
234 | 234 |
}; |
235 | 235 |
|
236 |
ns.recalc_amounts_and_taxes = function() { |
|
237 |
var data = $('#order_form').serializeArray(); |
|
238 |
data.push({ name: 'action', value: 'Order/recalc_amounts_and_taxes' }); |
|
239 |
|
|
240 |
$.post("controller.pl", data, kivi.eval_json_result); |
|
241 |
}; |
|
242 |
|
|
243 | 236 |
ns.unit_change = function(event) { |
244 | 237 |
var row = $(event.target).parents("tbody").first(); |
245 | 238 |
var item_id_dom = $(row).find('[name="orderitem_ids[+]"]'); |
... | ... | |
328 | 321 |
}; |
329 | 322 |
|
330 | 323 |
ns.init_row_handlers = function() { |
331 |
kivi.run_once_for('.recalc', 'on_change_recalc', function(elt) { |
|
332 |
$(elt).change(ns.recalc_amounts_and_taxes); |
|
333 |
}); |
|
334 |
|
|
335 | 324 |
kivi.run_once_for('.reformat_number', 'on_change_reformat', function(elt) { |
336 | 325 |
$(elt).change(ns.reformat_number); |
337 | 326 |
}); |
... | ... | |
489 | 478 |
$(row).remove(); |
490 | 479 |
|
491 | 480 |
ns.renumber_positions(); |
492 |
ns.recalc_amounts_and_taxes(); |
|
493 | 481 |
}; |
494 | 482 |
|
495 | 483 |
ns.row_table_scroll_down = function() { |
... | ... | |
557 | 545 |
var html_elt = $(row).find('[name="sellprice_text"]'); |
558 | 546 |
price_elt.val(price_str); |
559 | 547 |
html_elt.html(price_str); |
560 |
ns.recalc_amounts_and_taxes(); |
|
561 | 548 |
} |
562 | 549 |
|
563 | 550 |
kivi.io.close_dialog(); |
... | ... | |
592 | 579 |
var html_elt = $(row).find('[name="discount_text"]'); |
593 | 580 |
discount_elt.val(discount_str); |
594 | 581 |
html_elt.html(discount_str); |
595 |
ns.recalc_amounts_and_taxes(); |
|
596 | 582 |
} |
597 | 583 |
|
598 | 584 |
kivi.io.close_dialog(); |
Auch abrufbar als: Unified diff
DeliveryOrder: taxes und recalc Mechanismus entfernt