{% if (notificationsUser | length) > 0 %}
Notificación al usuario
{% for notification in notificationsUserForShow %}
{% if notification.typeAction %} {% if notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::STOCK_MINIMUN_REPLENISHMENT') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION')%}
{{ notification.description }} {% endif %} {% if notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::STOCK_SOLD_OTHER_LOCATION') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION')%}
{{ notification.description }} {% endif %} {% if notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::SALE_OFFLINE_ERROR_SYNC') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION')%}
{{ notification.description }} {% endif %} {% endif %}
{% endfor %}
{% endif %}
Notificación a la tienda
{% for notification in notificationForShow %}
{% if notification.typeAction %} {% if notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::TRANSFER') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION') %}
{{ notification.description }} {{ notification.shopReceivig.name }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::ARTICLE_MASSIVE_PRICE') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION') %}
{{ notification.description }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::SALE_RESERVED_1ST_NOTIFICATION') or notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::SALE_RESERVED_LAST_NOTIFICATION') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION') %}
{{ notification.description }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::DISCOUNTS_STARTS_TODAY_NOTIFICATION') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION') %}
{{ notification.description }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::WEB_ORDER_DESIGNED_SHOP_OUT') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION') %}
{{ notification.description }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::STOCK_OPTIMIZATION_PREPARATION') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION')%}
{{ notification.description }} {% elseif notification.typeAction.id == constant('CoreBundle\\Entity\\TypeAction::STOCK_RECEPTION_WAREHOUSE') and notification.typeAdviceNotification.id == constant('CoreBundle\\Entity\\TypeAdviceNotification::NOTIFICATION')%}
{{ notification.description }} {% else %} {{ notification.description }} {% endif %} {% endif %}
{% endfor %}