mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add PO serializer
This commit is contained in:
parent
2ae038a006
commit
c69fdf90d9
@ -272,6 +272,15 @@ class POLineItemSerializer(InvenTreeModelSerializer):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
class POAdditionalLineItemSerializer(AbstractAdditionalLineItemSerializer, InvenTreeModelSerializer):
|
||||||
|
""" Serializer for a PurchaseOrderAdditionalLineItem object """
|
||||||
|
|
||||||
|
order_detail = POSerializer(source='order', many=False, read_only=True)
|
||||||
|
|
||||||
|
class Meta(AbstractAdditionalLineItemMeta):
|
||||||
|
model = order.models.PurchaseOrderAdditionalLineItem
|
||||||
|
|
||||||
|
|
||||||
class POLineItemReceiveSerializer(serializers.Serializer):
|
class POLineItemReceiveSerializer(serializers.Serializer):
|
||||||
"""
|
"""
|
||||||
A serializer for receiving a single purchase order line item against a purchase order
|
A serializer for receiving a single purchase order line item against a purchase order
|
||||||
|
Loading…
Reference in New Issue
Block a user