Crystal and special tsar functions

In the users guide there are these functions for AR but it does not tell us exactly what they are doing and how it is determining it.  In the AR Statement (CR) uses these functions, but i am getting some strange answers.  I believe it has to do with the data for a contract that items are showing when they are not supposed to show.  So if anyone knows exactly how these functions work please let me know.  

tsarContractCustomerDetail on page 107
tsarContractOnlyDetail on page 108
tsarCustomerDetailWithRetainage on page 109