def _get_items(self, request):
        product_type = SoftwareProductType.get_type_by_domain(Domain.get_by_name(self.domain))

        features = [{'type': get_feature_name(feature_type[0], product_type),
                     'amount': Decimal(request.POST.get(feature_type[0], 0))}
                    for feature_type in FeatureType.CHOICES
                    if 0 > Decimal(request.POST.get(feature_type[0], 0))]
        products = [{'type': pt[0],
                     'amount': Decimal(request.POST.get(pt[0], 0))}
                    for pt in SoftwareProductType.CHOICES
                    if Decimal(request.POST.get(pt[0], 0)) > 0]

        return products + features
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/views.py/CreditsWireInvoiceView._get_items/swapped operands of `>`