Created
April 25, 2016 08:14
-
-
Save AntonSikret87/bfe24f2539e2ce4a11a5cee2b77ee090 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, ios" version="4+"><![CDATA[ | |
var result = account.descriptionHead; | |
if (account.defaultBalanceCurrencyValue) { | |
result += " " + account.defaultBalanceCurrencyValue.colorizeAmount(); | |
} | |
result;]]></ACCOUNT_SELECTION_NAME_FORMAT> | |
<ACCOUNT_SELECTION_DETAILS_FORMAT platform="android, ios" version="4+"><![CDATA[ | |
var result = ""; | |
if (account.typeAbbreviation == "CRD") { | |
if (account.loanDetails.overdueAmount > 0) { | |
result = (account.loanDetails.overdueAmountCurrencyValue + " due immediately").colorize(color.STATUS_FAILURE); | |
} | |
if (account.loanDetails.dueAmount > 0) { | |
if (result) { | |
result += "<br/>"; | |
} | |
result += account.loanDetails.dueAmountCurrencyValue + " due " + 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