UPDATE: add request id field to review object

This commit is contained in:
daovietanh99 2024-02-22 09:18:13 +07:00
parent 63aa41cd9f
commit 1bd7f6c81e

View File

@ -679,6 +679,7 @@ class AccuracyViewSet(viewsets.ViewSet):
for field in ['retailername', 'sold_to_party', 'purchase_date', 'imei_number']: for field in ['retailername', 'sold_to_party', 'purchase_date', 'imei_number']:
if not field in reviewed_result.keys(): if not field in reviewed_result.keys():
raise RequiredFieldException(excArgs=f'reviewed_result.{field}') raise RequiredFieldException(excArgs=f'reviewed_result.{field}')
reviewed_result['request_id'] = request_id
for subscription_request_file in subscription_request_files: for subscription_request_file in subscription_request_files:
if subscription_request_file.doc_type == 'invoice': if subscription_request_file.doc_type == 'invoice':