{% extends 'base.html.twig' %} {% set titleName = "Jumia Products" %} {% block title %} POWER DATA | {{titleName}} {% endblock %} {% block page %}{{titleName}}{% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %} {% block content %}
Total imported : {{ count }}
{%for plan in plans %} {% if plan.action == 'GetProducts' %} {% set background = 'style=background:lightgreen;"' %} {% elseif plan.action == 'SetStock' %} {% set background = 'style=background:#20c997;"' %} {% elseif plan.action == 'SetPrice' %} {% set background = 'style=background:#c9646e;' %} {% endif %} {% endfor %}
Id Action Date : After Date : Before Status Item Existed Item Founded Item Imported Last ID Created At Updated At Import
{{ plan.id }} {{ plan.action }} {{ plan.createdAfter is not null ? plan.createdAfter|date('Y-m-d') }} {{ plan.createdBefore is not null ? plan.createdBefore|date('Y-m-d') }} {% if plan.action == 'GetProducts' %} {{ plan.status == true? 'Imported': 'Not Yet' }} {% elseif plan.action == 'SetStock' or plan.action == 'SetPrice' %} {{ plan.status == true? 'Updated': 'Not Yet' }} {% endif %} {{ plan.existed }} {{ plan.founded }} {{ plan.qty }} {{ plan.lastId }} {{ plan.createdAt is not null ? plan.createdAt|date }} {{ plan.updatedAt is not null ? plan.updatedAt|date }} {% if plan.action != 'SetStock' and plan.action != 'SetPrice' %} {% if plan.status == true and ( plan.existed == plan.founded or plan.founded == plan.qty or plan.founded == (plan.qty + plan.existed) ) %} {% else %} {% endif %} {% endif %} {% if plan.action == 'SetStock' %} {% endif %}
{% endblock %} {% block script %} {% endblock %}