{% set isprocessCnt = 0 %} {% if data.import_info|length >0 %} {% set error_message = '' %} {% for key, import in data.import_info %} {% set error_message = import.error_message%} {% set error_count = import.error_count %} {% if import.status == 'file_uploaded' %} {% set status = 'File Uploaded' %} {% elseif import.status == 'temp_table_created' %} {% set status = 'Temporary table created' %} {% elseif import.status == 'temp_table_created' %} {% set status = 'Temporary table created' %} {% elseif import.status == 'procedure_call' %} {% set status = 'Import data processing' %} {% elseif import.status == 'done' %} {% set status = 'Done' %} {% else %} {% set status = 'Error' %} {% endif %} {% if(not(import.status == 'done' or import.status == 'error')) %} {% set isprocessCnt = isprocessCnt + 1 %} {% endif %} {% endfor %} {% else %} {% endif %}
{{ 'product_import_export.import_id'|trans }} {{ 'product_import_export.file_name'|trans }} {{ 'product_import_export.country'|trans }} {{ 'product_import_export.culture'|trans }} {{ 'product_import_export.status'|trans }} {{ 'product_import_export.error_count'|trans }} {{ 'product_import_export.error_message'|trans }} {{ 'product_import_export.date'|trans }}
{{ import.import_id }} {{ import.import_filename }} {{ import.country_name }} {{ import.culture_name }} {{ status }} {{ error_count }} {% if error_count >0 %} {% set error_file_url = path('officebrain_product_import_error_log',{'import_id':import.import_id}) %} {% if error_message|trim|length == 0 %} {% set error_message = 'Process data error' %} {% endif %} {% endif %} {{ error_message }} {{ import.created_at }}
{{ 'product_import_export.import_not_found'|trans }}