mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add total to PO serializer
This commit is contained in:
parent
d086f09771
commit
e2d301be3f
@ -53,6 +53,7 @@ class AbstractOrderSerializer:
|
||||
total_price_string = serializers.CharField(source='get_total_price', read_only=True)
|
||||
|
||||
|
||||
class POSerializer(AbstractOrderSerializer, ReferenceIndexingSerializerMixin, InvenTreeModelSerializer):
|
||||
""" Serializer for a PurchaseOrder object """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
@ -122,6 +123,8 @@ class AbstractOrderSerializer:
|
||||
'status_text',
|
||||
'target_date',
|
||||
'notes',
|
||||
'total_price',
|
||||
'total_price_string',
|
||||
]
|
||||
|
||||
read_only_fields = [
|
||||
|
Loading…
Reference in New Issue
Block a user