diff --git a/Template/board/column_total.php b/Template/board/column_total.php new file mode 100644 index 0000000..68b5416 --- /dev/null +++ b/Template/board/column_total.php @@ -0,0 +1,24 @@ +FinanceHelper->isEnabled($column['project_id'])) { + return; +} + +$net = $this->FinanceHelper->columnNet($column); + +if ($net > 0) { + $class = 'fb-column-total fb-total-credit'; + $sign = '+'; +} elseif ($net < 0) { + $class = 'fb-column-total fb-total-debit'; + $sign = '-'; +} else { + $class = 'fb-column-total fb-total-zero'; + $sign = ''; +} +?> +