Revision 7c61f5b1
Von Bernd Bleßmann vor fast 9 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
347 | 347 |
->run('row_table_scroll_down') |
348 | 348 |
->run('row_set_keyboard_events_by_id', $item_id) |
349 | 349 |
->on('.recalc', 'change', 'recalc_amounts_and_taxes') |
350 |
->on('.reformat_number', 'change', 'reformat_number') |
|
350 | 351 |
->focus('#add_item_parts_id_name'); |
351 | 352 |
|
352 | 353 |
$self->_js_redisplay_amounts_and_taxes; |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
272 | 272 |
recalc_amounts_and_taxes(); |
273 | 273 |
} |
274 | 274 |
|
275 |
function reformat_number(event) { |
|
276 |
$(event.target).val(kivi.format_amount(kivi.parse_amount($(event.target).val()), -2)); |
|
277 |
} |
|
278 |
|
|
275 | 279 |
function recalc_amounts_and_taxes() { |
276 | 280 |
var data = $('#order_form').serialize(); |
277 | 281 |
data += '&action=Order/recalc_amounts_and_taxes'; |
... | ... | |
364 | 368 |
}); |
365 | 369 |
row_set_keyboard_events($('.row_entry')); |
366 | 370 |
$('.recalc').change(recalc_amounts_and_taxes); |
371 |
$('.reformat_number').change(reformat_number); |
|
367 | 372 |
}); |
368 | 373 |
|
369 | 374 |
</script> |
Auch abrufbar als: Unified diff
Auftrags-Controller: css-Klasse: reformat_number zum Neuformatieren von Zahlen