Skip to content

Commit

Permalink
Revert "Fix PaymentAmountSerializer min_value that was not Decimal" (#…
Browse files Browse the repository at this point in the history
…3749)

This reverts commit 17ebc7b.

It broke API docs, unfortunately.
  • Loading branch information
ColonelPhantom authored Jul 10, 2024
1 parent 2df7458 commit c541437
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions website/sales/api/v2/admin/serializers/shift.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from decimal import Decimal

from rest_framework import serializers

from payments.api.v2.serializers.payment_amount import PaymentAmountSerializer
Expand Down Expand Up @@ -44,8 +42,8 @@ class Meta:
"product_sales",
)

total_revenue = PaymentAmountSerializer(min_value=Decimal(0), read_only=True)
total_revenue_paid = PaymentAmountSerializer(min_value=Decimal(0), read_only=True)
total_revenue = PaymentAmountSerializer(min_value=0, read_only=True)
total_revenue_paid = PaymentAmountSerializer(min_value=0, read_only=True)

products = ProductListItemSerializer(
source="product_list.product_items", many=True, read_only=True
Expand Down

0 comments on commit c541437

Please sign in to comment.