#202 make positive.

This commit is contained in:
James Cole 2016-03-03 13:19:47 +01:00
parent cdce43d226
commit f38d99653f

View File

@ -76,7 +76,7 @@ class ChartJsBillChartGenerator implements BillChartGeneratorInterface
* journalAmount has been collected in BillRepository::getJournals
*/
$journalAmount = TransactionJournal::amountPositive($entry) ?? '0';
$actualAmount[] = round(bcmul($journalAmount, '-1'), 2);
$actualAmount[] = round($journalAmount, 2);
}
$data['datasets'][] = [