]> wagnertech.de Git - timetracker.git/blobdiff - invoice_add.php
Introduced shorter functions for Errors class
[timetracker.git] / invoice_add.php
index fb2c7fe3db5a3bcb2eed86ac5c44c4848b06dc4e..9074ce2ab925e2b125da0b0e23a2fbacbe2dc22b 100644 (file)
@@ -76,20 +76,20 @@ 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
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');