start_row();
label_cells(_("Amount Total"), $display_total, "colspan=$colspan align='right'","align='right'");
- $order->order_no ? submit_cells('update', _("Update"), "colspan=2 align='center'", _("Refresh"), true)
+ $order->trans_type == ST_SUPPINVOICE
+ ? submit_cells('update', _("Update"), "colspan=2 align='center'", _("Refresh"), true)
: label_cell('', "colspan=2");
end_row();
}
}
//---------------------------------------------------------------------------------------------------
+if (isset($_POST['update'])) {
+ copy_to_cart();
+ $Ajax->activate('items_table');
+}
+
$id = find_submit('Delete');
if ($id != -1)
handle_delete_item($id);