diff --git a/hb_server/apps/pm/views.py b/hb_server/apps/pm/views.py index fcf6388..0fea0a7 100644 --- a/hb_server/apps/pm/views.py +++ b/hb_server/apps/pm/views.py @@ -236,7 +236,7 @@ class ResourceViewSet(GenericViewSet): res.append({'id':m['material__id'], 'name':m['material__name'], 'type':m['material__type'], 'number':m['material__number'], 'count':m['count']*i['count'], 'inv_count':m['material__count'], - 'count_safe':'material__count_safe'}) + 'count_safe':m['material__count_safe']}) return Response(res) @action(methods=['post'], detail=False, perms_map={'post':'*'}, serializer_class=ResourceCalListSerializer)