diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 2c1edeb8ed88d03e46a41bfed111c467fb795c74..09994a3d9ff5125dc14680bf4e7f6b55bb0b97ac 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>