function delete_order_item_row(clicked) {
var row = $(clicked).parents("tr").first();
$(row).remove();
+
+ recalc_amounts_and_taxes()
}
function set_item_values(event) {
$.post("controller.pl", data, kivi.eval_json_result);
}
+function recalc_amounts_and_taxes() {
+ var data = $('#order_form').serialize();
+ data += '&action=Order/recalc_amounts_and_taxes';
+ data += '&type=' + $('#type').val();
+
+ $.post("controller.pl", data, kivi.eval_json_result);
+}
+
function display_linetotal(item_id, amount) {
$('#item_' + item_id).parents("tr").first().find('[name="linetotal"]').html(amount);
}