test
This commit is contained in:
@@ -1,18 +1,19 @@
|
|||||||
from apps.product.services.services import quota_live_stock_allocation_info, quota_incentive_plans_info, \
|
from django.db import models
|
||||||
quota_attribute_value, quota_pricing_items_by_type
|
from rest_framework import serializers
|
||||||
|
from rest_framework.exceptions import APIException
|
||||||
|
|
||||||
|
from apps.core.models import SystemConfig
|
||||||
from apps.herd.services.services import get_rancher_statistics, rancher_quota_weight
|
from apps.herd.services.services import get_rancher_statistics, rancher_quota_weight
|
||||||
from apps.pos_device.services.services import pos_organizations_sharing_information
|
from apps.pos_device.services.services import pos_organizations_sharing_information
|
||||||
from rest_framework.exceptions import APIException
|
|
||||||
from apps.product import models as product_models
|
from apps.product import models as product_models
|
||||||
from apps.core.models import SystemConfig
|
|
||||||
from rest_framework import serializers
|
|
||||||
from apps.product.exceptions import (
|
from apps.product.exceptions import (
|
||||||
QuotaWeightException,
|
QuotaWeightException,
|
||||||
QuotaClosedException,
|
QuotaClosedException,
|
||||||
QuotaExpiredTimeException,
|
QuotaExpiredTimeException,
|
||||||
QuotaLimitByOrganizationException
|
QuotaLimitByOrganizationException
|
||||||
)
|
)
|
||||||
from django.db import models
|
from apps.product.services.services import quota_live_stock_allocation_info, quota_incentive_plans_info, \
|
||||||
|
quota_attribute_value, quota_pricing_items_by_type
|
||||||
|
|
||||||
|
|
||||||
class QuotaDistributionSerializer(serializers.ModelSerializer):
|
class QuotaDistributionSerializer(serializers.ModelSerializer):
|
||||||
@@ -147,3 +148,5 @@ class QuotaDistributionSerializer(serializers.ModelSerializer):
|
|||||||
}
|
}
|
||||||
|
|
||||||
return representation
|
return representation
|
||||||
|
|
||||||
|
# ssssss
|
||||||
|
|||||||
Reference in New Issue
Block a user