<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def compute_payments(self, precision=None):
        '''
        Returns the total amount of payments made to this invoice.
        @param precision:int Number of decimal places
        @return: Decimal
        '''
        return quantize(sum([payment.amount for payment in self.__payments]),
                        precision)