forked from erp-dev/erp
fin
This commit is contained in:
@@ -368,6 +368,7 @@ class PrintingJobListSerializer(serializers.ModelSerializer):
|
||||
|
||||
printing_order_id = serializers.CharField(source='printing_order.human_id', read_only=True)
|
||||
external_order_id = serializers.CharField(source='printing_order.external_order_id', read_only=True)
|
||||
customer_name = serializers.CharField(source='printing_order.customer.name', read_only=True, allow_null=True)
|
||||
product_name = serializers.CharField(source='product.name', read_only=True)
|
||||
product_image_url = serializers.SerializerMethodField()
|
||||
status = serializers.CharField(read_only=True)
|
||||
@@ -388,7 +389,8 @@ class PrintingJobListSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = models.PrintingJob
|
||||
fields = [
|
||||
'id', 'original_id', 'sub_id', 'merchant_id', 'printing_order', 'printing_order_id', 'external_order_id', 'product', 'product_name',
|
||||
'id', 'original_id', 'sub_id', 'merchant_id', 'printing_order', 'printing_order_id', 'external_order_id',
|
||||
'customer_name', 'product', 'product_name',
|
||||
'product_image_url', 'has_started',
|
||||
'quantity', 'billed_quantity', 'unit', 'size', 'pieces', 'description',
|
||||
'work_state', 'work_state_display',
|
||||
|
||||
Reference in New Issue
Block a user