From b8517d7992a6f631eb8584899ac1c229da9e1da6 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Sun, 20 Jan 2019 00:41:56 -0500 Subject: [PATCH] the return of costs maybe not being negative --- src/uncategorized/costsBudget.tw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 4cfa690e853..7728dd35561 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -2421,7 +2421,11 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <tr> <td>Expenses budget for week <<print ($week+1)>></td> <td></td> - <td>@@.red;<<print cashFormat($costs)>>@@</td> + <td><<if $costs < 0>> + @@.yellowgreen;+<<print cashFormat($costs)>>@@ + <<else>> + @@.red;<<print cashFormat($costs)>>@@ + <</if>></td> <td></td> </tr> -- GitLab