From 8ada899ad1118ca3fcb5d2fe728ebe2eb3025177 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Sat, 19 Jan 2019 18:17:07 -0500 Subject: [PATCH] More fixes --- src/uncategorized/costsBudget.tw | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 2c1edeb8ed8..09994a3d9ff 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -409,7 +409,7 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <td>[[Research Lab][$nextButton = "Back to Budget", $nextLink = "Costs Budget"]] maintenance</td> <td>@@.yellowgreen;<<print cashFormat(Math.trunc($lastWeeksCashIncome.lab))>>@@</td> <td> - <<= cashNumFormat($lastWeeksCashExpenses.lab)>> + @@.red;<<print cashFormat($lastWeeksCashExpenses.lab)>>@@ </td> <td> <<set $lastWeeksCashProfits.lab = ($lastWeeksCashIncome.lab + $lastWeeksCashExpenses.lab)>> @@ -956,7 +956,11 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <td>@@.red;<<print cashFormat(Math.trunc($lastWeeksCashExpenses.rents))>>@@</td> <td> <<set $lastWeeksCashProfits.rents = ($lastWeeksCashIncome.rents + $lastWeeksCashExpenses.rents)>> - $lastWeeksCashIncome.rents + <<if $lastWeeksCashProfits.rents > 0>> + @@.yellowgreen;<<print cashFormat(Math.trunc($lastWeeksCashProfits.rents))>>@@ + <<else>> + @@.red;<<print cashFormat(Math.trunc($lastWeeksCashProfits.rents))>>@@ + <</if>> </td> </tr> -- GitLab