def disable_if_done(self, commit=True):
        """Set disabled=True if we have billed all we need to

        Will only have an effect on one-off costs.
        """
        if self._is_billing_complete() and not self.disabled:
            self.disabled = True

            if commit:
                self.save()
def disable_if_done ( self , commit = True ) : if self . _is_billing_complete ( ) and not self . disabled : self . disabled = True if commit : self . save ( )
Set disabled=True if we have billed all we need to

        Will only have an effect on one-off costs.