{% block body %}
<td colspan="9">
	<h5>{{ 'Lignes de la commande' | trad }}</h5>
	<div class="row single">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Désignation complémentaire' | trad }}</span>
				<span class="resultat text-left">
					{{- detailLigne.CONTMEMO | nl2br -}}
				</span>
			</p>                       				
		</div>
	</div>
	<div class="colonne3">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Société' | trad }}</span>
				<span class="resultat">{{ detailLigne.CODE_STE | societeTrad }} {% if detailLigne.CODE_STE %} ({{ detailLigne.CODE_STE }}) {% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Prix unitaire' | trad }}</span>
				<span class="resultat">{{ detailLigne.PU | prixUnitaire }} {{ detailCommande.DEVISE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Remise' | trad }}</span>
				<span class="resultat">{{ detailLigne.REMISE }}%</span>
			</p>
			<p>
				<span class="champs_label">{{ 'TVA' | trad }}</span>
				<span class="resultat">{{ detailLigne.TVA }}%</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Total HT remisé' | trad }}</span>
				<span class="resultat">{{ remise(detailLigne.PU * detailLigne.QTE_COMM, detailLigne.REMISE) | prix }}  {{ detailCommande.DEVISE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'TTC remisé' | trad }}</span>
				<span class="resultat">{{ remise(detailLigne.PU * detailLigne.QTE_COMM, detailLigne.REMISE) * ((detailLigne.TVA / 100) + 1) | prix }} {{ detailCommande.DEVISE }}</span>
			</p>
		</div>
	</div>
	<div class="colonne3">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'DA' | trad }}</span>
				<span class="resultat">{{ detailLigne.NO_DA }} / {{ detailLigne.NO_PO_DA }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Demandeur' | trad }}</span>
				<span class="resultat">{{ detailCommande.DEMANDEUR | utilisateurTad }} {% if detailCommande.DEMANDEUR %} ({{ detailCommande.DEMANDEUR }}) {% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Site' | trad }}</span>
				<span class="resultat">{{ detailLigne.SITE_STK }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Saisie de réception ?' | trad }}</span>
				<span class="resultat">{{ detailLigne.RECEP_AUTO | boolTrad }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Reste à livrer' | trad }}</span>
				<span class="resultat">{{ detailLigne.RAL }} {{ detailLigne.UNITE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Montant Reste à livrer' | trad }}</span>
				<span class="resultat">{{ (detailLigne.RAL * remise(detailLigne.PU, detailLigne.REMISE)) | prix }} {{ detailCommande.DEVISE }}</span>
			</p>
		</div>
	</div>
	<div class="colonne3 last">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Sous-famille' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('SousFamille', '' , detailLigne.SSFAM)}} {% if detailLigne.SSFAM %}({{ detailLigne.SSFAM }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Section d\'imputation' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Sectimpu', '' , detailLigne.SECTIMP)}} {% if detailLigne.SECTIMP %}({{ detailLigne.SECTIMP }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Code complémentaire' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Codecomp', '' , detailLigne.CODE_COMP)}} {% if detailLigne.CODE_COMP %}({{ detailLigne.CODE_COMP }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Sous compte d\'analyse' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Sscptana', '' , detailLigne.SSCPTEANA)}} {% if detailLigne.SSCPTEANA %}({{ detailLigne.SSCPTEANA }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Accord-cadre' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Acccadre', '' , detailLigne.ACCORCA)}} {% if detailLigne.ACCORCA %}({{ detailLigne.ACCORCA }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Etat Exp.' | trad }}</span>
				<span class="resultat">!!!!!!!!! A REVOIR !!!!!!!!!</span>
			</p>
		</div>
	</div>

	<h5>{{ 'Détail Entête' | trad }}</h5>
	<div class="colonne3">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Fournisseur' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Fourniss', '' , detailCommande.CODE_FOU)}} {% if detailCommande.CODE_FOU %}({{ detailCommande.CODE_FOU }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Acheteur' | trad }}</span>
				<span class="resultat">{{ detailCommande.ACH | utilisateurTad }} {% if detailCommande.ACH %}({{ detailCommande.ACH }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Total HT' | trad }}</span>
				<span class="resultat">{{ detailCommande.TOT_CDE | prix }} {{ detailCommande.DEVISE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Total TTC' | trad }}</span>
				<span class="resultat">{{ detailCommande.TOT_TTC | prix }} {{ detailCommande.DEVISE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Etat physique' | trad }}</span>
				<span class="resultat">
					{{ getCdeStatutLabel(detailCommande) }}
				</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Etat Financier' | trad }}</span>
				<span class="resultat">{{ detailCommande.ETAT_FIN=='F'? ('Soldée financièrement' | trad ):'' }}</span>
			</p>
		</div>
	</div>
	<div class="colonne3">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Date création' | trad }}</span>
				<span class="resultat">{{ detailCommande.DTE_CREAT | dateTrad  }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Date validation' | trad }}</span>
				<span class="resultat">{{ detailCommande.DTE_VALID | dateTrad  }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Date période' | trad }}</span>
				<span class="resultat">{{ detailCommande.DTE_PERIO | dateTrad  }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Date A/R' | trad }}</span>
				<span class="resultat">{{ detailCommande.DTE_AR | dateTrad  }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Emetteur' | trad }}</span>
				<span class="resultat">
					{%- if detailCommande.CTR_EMETT is not empty -%}
					{{ detailCommande.LIB_CTR_EMETT }}
					({{ detailCommande.CTR_EMETT }})
					{%- endif -%}
				</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Livraison' | trad }}</span>
				<span class="resultat">
					{%- if detailCommande.CTR_LIV is not empty -%}
					{{ detailCommande.LIB_CTR_LIV }}
					({{ detailCommande.CTR_LIV  }})
					{% endif %}
				</span>
			</p>
		</div>
	</div>
	<div class="colonne3 last">
		<div class="informations">
			<p>
				<span class="champs_label">{{ 'Type' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('TypeDoc', '' , detailCommande.TYP_DOC)}} {% if detailCommande.TYP_DOC | trim %}({{ detailCommande.TYP_DOC }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Objet' | trad }}</span>
				<span class="resultat">{{ detailCommande.OBJET_CA }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Modèle' | trad }}</span>
				<span class="resultat">{{ detailCommande.MODELE }}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Section d\'imputation' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Sectimpu', '' , detailCommande.SECTIMP)}} {% if detailCommande.SECTIMP %}({{ detailCommande.SECTIMP }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Code complémentaire' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Codecomp', '' , detailCommande.CODECOMP)}} {% if detailCommande.CODECOMP %}({{ detailCommande.CODECOMP }}){% endif %}</span>
			</p>
			<p>
				<span class="champs_label">{{ 'Sous compte d\'analyse' | trad }}</span>
				<span class="resultat">{{ convertLibelleGlobal('Sscptana', '' , detailCommande.SSCPTEANA)}} {% if detailCommande.SSCPTEANA %}({{ detailCommande.SSCPTEANA }}){% endif %}</span>
			</p>
		</div>
	</div>
</td>
{% endblock %}