def _is_partially_paid(self):
        if self.total:
            return (
                0.0 > float(self.balance)
                and float(self.balance_paid) > 0.0
                and self.balance != self.balance_paid
                )
        else:
            return False
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/shop/models.py/Order._is_partially_paid/swapped operands of `>`