{% extends 'App/Pdf/_include/_layout.pdf.html.twig' %} {% trans_default_domain 'rapport' %} {% if sort_by == constant('App\\Services\\App\\Pdf\\PdfManagerService::SORT_FOURNISSEUR') %} {% set sort_by_libelle = 'rapport.sort.fournisseur'|trans %} {% elseif sort_by == constant('App\\Services\\App\\Pdf\\PdfManagerService::SORT_SEC_CLI') %} {% set sort_by_libelle = 'rapport.sort.section_cli'|trans %} {% elseif sort_by == constant('App\\Services\\App\\Pdf\\PdfManagerService::SORT_SEC_FOUR') %} {% set sort_by_libelle = 'rapport.sort.section_four'|trans %} {% elseif sort_by == constant('App\\Services\\App\\Pdf\\PdfManagerService::SORT_FAM_ART') %} {% set sort_by_libelle = 'rapport.sort.article_fam'|trans %} {% endif %} {% if kb_type == constant('App\\Entity\\Kanban\\KanbanType::APPRO') %} {% set kanban_type = 'code_kanban_appro'|trans({},'messages') %} {% elseif kb_type == constant('App\\Entity\\Kanban\\KanbanType::FAB') %} {% set kanban_type = 'code_kanban_fab'|trans({},'messages') %} {% elseif kb_type == constant('App\\Entity\\Kanban\\KanbanType::FS') %} {% set kanban_type = 'code_kanban_fs'|trans({},'messages') %} {% endif %} {% block content %}
{% for key, fournisseur_row in data %}
{% if fournisseur_row.articles|length > 0 %} {# {% for i in 0..60 %}#} {% for article_row in fournisseur_row.articles %} {% endfor %} {# {% endfor %}#}

{{ 'rapport.color_helper.title'|trans }} {{ kanban_type }} ({{ 'rapport.word.by'|trans }} {{ sort_by_libelle }})

{{ sort_by_libelle }} : {{ fournisseur_row.sort_code }} ({{ fournisseur_row.sort_name }})
{{ 'rapport.color_helper.table.header.reference'|trans }} {{ 'rapport.color_helper.table.header.designation'|trans }} {{ 'rapport.color_helper.table.header.nb_batch_kb'|trans }} {{ 'rapport.color_helper.table.header.nb_kb'|trans }} {{ 'rapport.color_helper.table.header.color_etiq_achat'|trans }} {{ 'rapport.color_helper.table.header.color_etiq_fab'|trans }} {{ 'rapport.color_helper.table.header.color_etiq_liv'|trans }} {{ 'rapport.color_helper.table.header.color_etiq_mag'|trans }} {{ 'rapport.color_helper.table.header.etiq_supp'|trans }}
{{ 'rapport.color_helper.table.header.etiq'|trans }} {{ 'rapport.color_helper.table.header.dot_left'|trans }} {{ 'rapport.color_helper.table.header.dot_right'|trans }} {{ 'rapport.color_helper.table.header.bevel'|trans }} {{ 'rapport.color_helper.table.header.etiq_comp'|trans }} {{ 'rapport.color_helper.table.header.etiq'|trans }} {{ 'rapport.color_helper.table.header.dot_left'|trans }} {{ 'rapport.color_helper.table.header.dot_right'|trans }} {{ 'rapport.color_helper.table.header.bevel'|trans }} {{ 'rapport.color_helper.table.header.etiq_comp'|trans }} {{ 'rapport.color_helper.table.header.etiq'|trans }} {{ 'rapport.color_helper.table.header.dot_left'|trans }} {{ 'rapport.color_helper.table.header.dot_right'|trans }} {{ 'rapport.color_helper.table.header.bevel'|trans }} {{ 'rapport.color_helper.table.header.etiq_comp'|trans }} {{ 'rapport.color_helper.table.header.etiq'|trans }} {{ 'rapport.color_helper.table.header.dot_left'|trans }} {{ 'rapport.color_helper.table.header.dot_right'|trans }} {{ 'rapport.color_helper.table.header.bevel'|trans }} {{ 'rapport.color_helper.table.header.etiq_comp'|trans }} {{ 'rapport.color_helper.table.header.title'|trans }} {{ 'rapport.color_helper.table.header.prog'|trans }} {{ 'rapport.color_helper.table.header.pick'|trans }}
{{ article_row.kanban_id }} - {{ article_row.article_reference }} {{ article_row.article_designation }} {{ article_row.kanban_nb_etiq_kb|number_format(2,',',' ') }} {{ article_row.totalKb|number_format(2,',',' ') }} {{ article_row.etiq_achat_color }} {{ article_row.etiq_achat_dot_left }} {{ article_row.etiq_achat_dot_right }} {{ article_row.etiq_achat_bevel }} {{ article_row.etiq_achat_etiq_compl }} {{ article_row.etiq_fab_color }} {{ article_row.etiq_fab_dot_left }} {{ article_row.etiq_fab_dot_right }} {{ article_row.etiq_fab_bevel }} {{ article_row.etiq_fab_etiq_compl }} {{ article_row.etiq_liv_color }} {{ article_row.etiq_liv_dot_left }} {{ article_row.etiq_liv_dot_right }} {{ article_row.etiq_liv_bevel }} {{ article_row.etiq_liv_etiq_compl }} {{ article_row.etiq_mag_color }} {{ article_row.etiq_mag_dot_left }} {{ article_row.etiq_mag_dot_right }} {{ article_row.etiq_mag_bevel }} {{ article_row.etiq_mag_etiq_compl }} {{ article_row.nb_etiq_title|number_format(2,',',' ') }} {{ article_row.nb_etiq_prog|number_format(2,',',' ') }} {{ article_row.nb_etiq_pick|number_format(2,',',' ') }}
{% endif %} {% if fournisseur_row.colors|length > 0 and fournisseur_row.colors.etiq|length > 0 %} {% for color_name, count in fournisseur_row.colors.etiq %} {% endfor %}
{{ 'rapport.color_helper.recap.color.etiq_title'|trans }}
{{ 'rapport.color_helper.recap.color.color'|trans }} {{ 'rapport.color_helper.recap.color.number'|trans }}
{{ color_name }} {{ count|number_format(2,',',' ') }}
{% endif %} {% if fournisseur_row.colors|length > 0 and fournisseur_row.colors.dot|length > 0 %} {% for color_name, count in fournisseur_row.colors.dot %} {% endfor %}
{{ 'rapport.color_helper.recap.color.dot_title'|trans }}
{{ 'rapport.color_helper.recap.color.color'|trans }} {{ 'rapport.color_helper.recap.color.number'|trans }}
{{ color_name }} {{ count|number_format(2,',',' ') }}
{% endif %} {% if fournisseur_row.total|length > 0 %}
{{ 'rapport.color_helper.recap.global.nb_batch_kb'|trans }} {{ fournisseur_row.total.nb_kb|number_format(2,',',' ') }}
{{ 'rapport.color_helper.recap.global.nb_etiq_kb'|trans }} {{ fournisseur_row.total.nb_etiq_kb|number_format(2,',',' ') }}
{{ 'rapport.color_helper.recap.global.nb_etiq_out_kb'|trans }} {{ fournisseur_row.total.nb_etiq_no_kb|number_format(2,',',' ') }}
{{ 'rapport.color_helper.recap.global.nb_etiq'|trans }} {{ fournisseur_row.total.nb_etiq|number_format(2,',',' ') }}
{% endif %}
{% endfor %}
{% endblock %} {% block javascript_footer %} {{ parent() }} {% endblock %}