if ($request->getParameter('btn_delete')) {
if (ttInvoiceHelper::getInvoice($cl_invoice_id)) {
if (ttInvoiceHelper::delete($cl_invoice_id, $request->getParameter('delete_invoice_entries'))) {
header('Location: invoices.php');
if ($request->getParameter('btn_delete')) {
if (ttInvoiceHelper::getInvoice($cl_invoice_id)) {
if (ttInvoiceHelper::delete($cl_invoice_id, $request->getParameter('delete_invoice_entries'))) {
header('Location: invoices.php');