From faab347878de7b4d1efd881369271cf5d9c94766 Mon Sep 17 00:00:00 2001 From: MouseOfLight <MouseOfLight@gmail.com> Date: Fri, 11 Oct 2019 16:40:21 -0700 Subject: [PATCH] Fixed the dividend not being shown due to the wrong ledger being queried. --- src/Corporation/corporationDevelopments.tw | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Corporation/corporationDevelopments.tw b/src/Corporation/corporationDevelopments.tw index 830fe2682f5..a63df211aca 100644 --- a/src/Corporation/corporationDevelopments.tw +++ b/src/Corporation/corporationDevelopments.tw @@ -69,8 +69,8 @@ /*Calculating cash set aside for dividend*/ <h2>Dividend</h2> <div> -<<if $dividendRatio > 0>> - The corporation is currently reserving <<= Math.floor($dividendRatio * 100)>>% of its profit to be paid out as dividends. +<<if App.Corporate.dividendRatio > 0>> + The corporation is currently reserving <<= Math.floor(App.Corporate.dividendRatio * 100)>>% of its profit to be paid out as dividends. <<else>> The corporation is currently not reserving a portion of its profit to be paid out as dividends. <</if>> @@ -80,14 +80,14 @@ </div> <div> <<if App.Corporate.dividend > 0>> - <<if _ledger.hasDividend>> - It reserved <<print cashFormatColor(_ledger.dividend)>> this week. + <<if _weekLedger.hasDividend>> + It reserved <<print cashFormatColor(_weekLedger.dividend)>> this week. <</if>> - A total of <<print cashFormatColor($corpDividend)>> has been put aside for its shareholders. + A total of <<print cashFormatColor(App.Corporate.dividend)>> has been put aside for its shareholders. <</if>> </div> -<<if _ledger.hasPayout>> - <div>This week the dividends were paid out, you received <<print cashFormatColor(_ledger.payout)>>.</div> +<<if _weekLedger.hasPayout>> + <div>This week the dividends were paid out, you received <<print cashFormatColor(_weekLedger.payout)>>.</div> <</if>> /*Bankrupted the Corporation*/ -- GitLab