diff --git a/src/Corporation/corporationDevelopments.tw b/src/Corporation/corporationDevelopments.tw index 830fe2682f59a0154797ee1e8f4e2ab9478d3403..a63df211aca26f3cc16527157db1c7762580bf1f 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*/