add - rancher national code

This commit is contained in:
2025-12-02 10:02:06 +03:30
parent d50b4a1235
commit 269a749fe2

View File

@@ -121,6 +121,12 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
many=True
).data
if instance.rancher:
representation['rancher'] = {
'id': instance.rancher.id,
'name': instance.rancher.national_code
}
if instance.seller_organization:
representation['seller_organization'] = {
'id': instance.seller_organization.id,