import - distributioin stat type for distribution tab
This commit is contained in:
@@ -126,7 +126,11 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
|
||||
'id': instance.rancher.id,
|
||||
'national_code': instance.rancher.national_code
|
||||
}
|
||||
|
||||
if instance.pos_device:
|
||||
representation['pos_device'] = {
|
||||
'device_identity': instance.pos_device.device_identity,
|
||||
'serial': instance.pos_device.serial
|
||||
}
|
||||
if instance.seller_organization:
|
||||
representation['seller_organization'] = {
|
||||
'id': instance.seller_organization.id,
|
||||
|
||||
Reference in New Issue
Block a user