Refactoring - cleaning up whitespace
[timetracker.git] / invoice_view.php
index a91ddf1..79efdd9 100644 (file)
@@ -54,9 +54,9 @@ foreach($invoice_items as $item)
 if ($tax_percent) {
   $tax_expenses = in_array('et', explode(',', $user->plugins));
   foreach($invoice_items as $item) {
-       if ($item['type'] == 2 && !$tax_expenses)
-         continue;
-    $tax += round($item['cost'] * $tax_percent / 100, 2);      
+    if ($item['type'] == 2 && !$tax_expenses)
+      continue;
+    $tax += round($item['cost'] * $tax_percent / 100, 2);
   }
 }
 $total = $subtotal + $tax; 
@@ -67,7 +67,7 @@ $smarty->assign('total', $user->currency.' '.str_replace('.', $user->decimal_mar
 
 if ('.' != $user->decimal_mark) {
   foreach ($invoice_items as &$item)
-       $item['cost'] = str_replace('.', $user->decimal_mark, $item['cost']);
+    $item['cost'] = str_replace('.', $user->decimal_mark, $item['cost']);
 }
 
 // Calculate colspan for invoice summary.
@@ -86,5 +86,4 @@ $smarty->assign('invoice_items', $invoice_items);
 $smarty->assign('colspan', $colspan);
 $smarty->assign('title', $i18n->getKey('title.view_invoice'));
 $smarty->assign('content_page_name', 'invoice_view.tpl');
-$smarty->display('index.tpl'); 
-?>
\ No newline at end of file
+$smarty->display('index.tpl');