(self, request)
return Decimal(request.POST['customPaymentAmount'])
Returns a Decimal of the amount to be charged.
Returns a Decimal of the amount to be charged.
Returns a Decimal of the amount to be charged .
def get_charge_amount(self, request):
        """Returns a Decimal of the amount to be charged.
        """
        if request.POST['paymentAmount'] == 'full':
            return self.invoice.balance.quantize(Decimal(10) ** -2)
        return Decimal(request.POST['customPaymentAmount'])
def get_charge_amount ( self , request ) : if request . POST [ 'paymentAmount' ] == 'full' : return self . invoice . balance . quantize ( Decimal ( 10 ) ** - 2 ) return Decimal ( request . POST [ 'customPaymentAmount' ] )