fix api values

This commit is contained in:
Matthias 2022-03-06 23:34:01 +01:00
parent f0b19e69b8
commit 5336d09296
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -515,6 +515,11 @@ class SalesOrderSerializer(ReferenceIndexingSerializerMixin, InvenTreeModelSeria
reference = serializers.CharField(required=True) reference = serializers.CharField(required=True)
total_price = InvenTreeMoneySerializer(
source='get_total_price',
allow_null=True
)
total_price_string = serializers.CharField(source='get_total_price', read_only=True) total_price_string = serializers.CharField(source='get_total_price', read_only=True)
class Meta: class Meta:
@ -537,6 +542,7 @@ class SalesOrderSerializer(ReferenceIndexingSerializerMixin, InvenTreeModelSeria
'status_text', 'status_text',
'shipment_date', 'shipment_date',
'target_date', 'target_date',
'total_price',
'total_price_string', 'total_price_string',
] ]