Created
April 25, 2016 09:12
-
-
Save AntonSikret87/ec59d2f674db2132fa3eda22cca9f840 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ACCOUNT_SELECTION_NAME_FORMAT platform="android" version="4+"><![CDATA[ | |
var result = account.descriptionHead; | |
if (account.typeAbbreviation == "CRD") { | |
if (account.loanDetails.overdueAmount > 0) | |
{ result += " " + account.loanDetails.overdueAmountCurrencyValue.colorize(color.STATUS_FAILURE); } | |
else if (account.loanDetails.dueAmount > 0) | |
{ result += " " + account.loanDetails.dueAmountCurrencyValue.colorizeAmount(); } | |
else | |
{ result += " " + account.defaultBalanceCurrencyValue.colorizeAmount(); } | |
} else | |
{ result += " " + account.defaultBalanceCurrencyValue.colorizeAmount(); } | |
result; | |
]]></ACCOUNT_SELECTION_NAME_FORMAT> | |
<ACCOUNT_SELECTION_DETAILS_FORMAT platform="android" version="4+"><![CDATA[ | |
var result = ""; | |
if (account.typeAbbreviation == "CRD") { | |
if (account.loanDetails.overdueAmount > 0) | |
{ result = ("Due immediately").colorize(color.STATUS_FAILURE); } | |
else if (account.loanDetails.dueAmount > 0) | |
{ result += "Due on " + account.loanDetails.dueDate.format("mm/dd/yyyy"); } | |
} else | |
{ result = account.descriptionParts[1]; } | |
result; | |
]]></ACCOUNT_SELECTION_DETAILS_FORMAT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment