{% if (pagination |length > 0) %}
{{ knp_pagination_sortable(pagination, 'Seller', 'seller') }} | {{ knp_pagination_sortable(pagination, 'File name', 'fileName') }} | {{ knp_pagination_sortable(pagination, 'Import date', 'importDate') }} | {{ knp_pagination_sortable(pagination, 'Products count', 'numProducts') }} | Download uploaded file | Import status | Apply status | {{ knp_pagination_sortable(pagination, 'Type', 'type') }} | Actions | |
---|---|---|---|---|---|---|---|---|---|
{{ import.seller }} | {{ import.fileName }} | {{ import.importDate |date("F j, Y, g:i a") }} | {{ import.numProducts }} | {% if import.fileName == 'No apply' %}No apply | {% else %}Download | {% endif %}{% if import.importStatus == 'error' %} Warning{% else %}Success{% endif %} | {% if import.appliedStatus == 'error' %} Warning {% elseif import.appliedStatus == 'not_applied' %} {% if import.importStatus == 'error' %} Fix the import {% else %} {% endif %} {% elseif import.appliedStatus == 'success' %} Stocks applied {% else %} Not defined {% endif %} | {% if import.type == 'initial' %} Initial {% elseif import.type == 'restock' %} Restock {% elseif import.type == 'increment' %} Increment {% else %} Not defined {% endif %} | {% if import.status is same as(false) %} {% endif %} |
No stock import registered for the given seller
{% endif %}