]> wagnertech.de Git - timetracker.git/blobdiff - invoice_add.php
Cleaning up whitespace
[timetracker.git] / invoice_add.php
index 4a25ddc18392df6dfe687422d5333fdd02c6b699..67ae8c14cdcb89adbf192f94297bceee86972736 100644 (file)
@@ -76,18 +76,18 @@ if ($request->getMethod() == 'POST') {
   if ($errors->isEmpty()) {
     if (ttInvoiceHelper::getInvoiceByName($cl_number))
       $errors->add($i18n->getKey('error.invoice_exists'));
-      
+
     if (!ttInvoiceHelper::invoiceableItemsExist($fields))
-      $errors->add($i18n->getKey('error.no_invoiceable_items'));    
+      $errors->add($i18n->getKey('error.no_invoiceable_items'));
   }
 
   if ($errors->isEmpty()) {
-       // Now we can go ahead and create our invoice.
+    // Now we can go ahead and create our invoice.
     if (ttInvoiceHelper::createInvoice($fields)) {
       header('Location: invoices.php');
       exit();
     }
-      $errors->add($i18n->getKey('error.db')); 
+      $errors->add($i18n->getKey('error.db'));
   }
 } // post
 
@@ -96,4 +96,3 @@ $smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');
 $smarty->assign('title', $i18n->getKey('title.add_invoice'));
 $smarty->assign('content_page_name', 'invoice_add.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file