Created
March 19, 2014 14:29
-
-
Save mrbusche/9642772 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
var activityHistory = billingHistory.getBillingAccountDTOs()[1].getActivityItemDTOList(); | |
// sort the array descending | |
var start = getTickCount(); | |
arraySort(activityHistory, | |
function (history1, history2){ | |
return compare(history1.getActivityEffectiveDate(), history2.getActivityEffectiveDate()); | |
} | |
); | |
//try to find a batch Number | |
var batchNumber = ''; | |
for ( var history in activityHistory ) { | |
if (history.getTransactionStatus() == 'RC') { | |
batchNumber = history.getTransactionNumber(); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment