registrasion/controllers/invoice.py
def _mark_paid(self):
        ''' Marks the invoice as paid, and updates the attached cart if
        necessary. '''
        cart = self.invoice.cart
        if cart:
            cart.status = commerce.Cart.STATUS_PAID
            cart.save()
        self.invoice.status = commerce.Invoice.STATUS_PAID
        self.invoice.save()
def _mark_paid(self):
        ''' Marks the invoice as paid, and updates the attached cart if
        necessary. '''
        cart = self.invoice.cart
        if cart:
            cart.status = commerce.Cart.STATUS_PAID
            cart.save()
        self.invoice.status = commerce.Invoice.STATUS_PAID
        self.invoice.save()
def _mark_paid ( self ) : cart = self . invoice . cart if cart : cart . status = commerce . Cart . STATUS_PAID cart . save ( ) self . invoice . status = commerce . Invoice . STATUS_PAID self . invoice . save ( )
Marks the invoice as paid, and updates the attached cart if
        necessary.
Marks the invoice as paid and updates the attached cart if necessary .