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)
|
total_price_string = serializers.CharField(source='get_total_price', read_only=True)
|
||||||
|
|
||||||
|
|
||||||
|
class POSerializer(AbstractOrderSerializer, ReferenceIndexingSerializerMixin, InvenTreeModelSerializer):
|
||||||
""" Serializer for a PurchaseOrder object """
|
""" Serializer for a PurchaseOrder object """
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
@ -122,6 +123,8 @@ class AbstractOrderSerializer:
|
|||||||
'status_text',
|
'status_text',
|
||||||
'target_date',
|
'target_date',
|
||||||
'notes',
|
'notes',
|
||||||
|
'total_price',
|
||||||
|
'total_price_string',
|
||||||
]
|
]
|
||||||
|
|
||||||
read_only_fields = [
|
read_only_fields = [
|
||||||
|
Loading…
Reference in New Issue
Block a user