<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="COMPTA000011" 
	label="Compta. Echéancier fournisseur" 
	title="= 'Echéancier fournisseur' + ' par ' +  SELECT.GROUPBY_LABEL + ' de ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL " 
	database="iCTI" 
	swf="*CTI_view1" 
	softCode="iCTI_compta" 
	globals="COMPTA_globals.XML" 
	dboptimizer="COMPTA_dboptimizer.XML"
	componentsFile="COMPTA_components.XML" >
	
	<VIEWPROPERTIES componentName="MULTICRITERES_PROPERTIES"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value"/>
		
		
	</VIEWPROPERTIES>
	
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<GROUP>
			<FIELD name="PERIODE" label="Période échéance" UI="combo" tree="true" width="200" default="2015-01-01" globalListProvider="DATE_DEBUT">
			</FIELD>
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2015-01-31" globalListProvider="DATE_FIN">
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="PERIODICITE" label="Périodicité" width="100" UI="combo" default="MONTH">
				<OPTION label="Hebdomadaire" data="WEEK2" />
				<OPTION label="Mensuelle" data="MONTH" />
				<OPTION label="Trimestrielle" data="QUARTER" />
			</FIELD>
		</GROUP>
		
		<GROUP>
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" width="200" default="CPX" tree="true">
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION"/>
				<OPTION data="CPX" label="Compte auxiliaire" globalListProvider="CPX_GROUPBY_OPTION"/>
				<OPTION data="JPA" label="Journal Paiement" globalListProvider="JPA_GROUPBY_OPTION"/>
				<OPTION data="MPA" label="Mode Paiement" globalListProvider="MPA_GROUPBY_OPTION"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.GROUPBY_2 != '-1' ">
				<OPTION label="Automatique" data="AUTO"/>
				<OPTION label="Arbre" data="TREE"/>
				<OPTION label="Onglet" data="TAB"/>
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY_2" label="" UI="combo" width="200" default="-1" tree="true">
				<OPTION label="Pas de second niveau" data="-1" treeLevel="1"/>
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION"/>
				<OPTION data="CPX" label="Compte auxiliaire" globalListProvider="CPX_GROUPBY_OPTION"/>
				<OPTION data="JPA" label="Journal Paiement" globalListProvider="JPA_GROUPBY_OPTION"/>
				<OPTION data="MPA" label="Mode Paiement" globalListProvider="MPA_GROUPBY_OPTION"/>
			</FIELD>
			<FIELD name="GROUPBY_3" label="" UI="combo" width="200" default="-1" tree="true">
				<OPTION label="Pas de troisième niveau" data="-1" treeLevel="1"/>
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION"/>
				<OPTION data="CPX" label="Compte auxiliaire" globalListProvider="CPX_GROUPBY_OPTION"/>
				<OPTION data="JPA" label="Journal Paiement" globalListProvider="JPA_GROUPBY_OPTION"/>
				<OPTION data="MPA" label="Mode Paiement" globalListProvider="MPA_GROUPBY_OPTION"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="ECRITURES_FOURNISSEUR_SELECTIONS"/>
	<QUERIES>
		<QUERY label="">
			
			<SQL>
				<select><![CDATA[		
					CTIPREPAR_TREE
						WORKTABLE{COMPTA000011_T}
						GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
						GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
						OPTIONS{NOTZERO=1}
						ORDERBY{indicateurs[1]}
						INDICATORS{
							SUM(montant_credit-montant_debit),,
							SUM(CASE WHEN facture_soldee = '0' AND ecriture_exclue = '1' THEN montant_credit-montant_debit ELSE 0 END),,
							SUM(CASE WHEN facture_soldee = '0' AND ecriture_exclue = '0' THEN montant_credit-montant_debit ELSE 0 END),,
							SUM(CASE WHEN facture_soldee = '0' AND ecriture_exclue = '0' AND v_historique_ecritures_1.date_echeance < '[PERIODE]' THEN montant_credit-montant_debit ELSE 0 END),,
							SUM(CASE WHEN facture_soldee = '0' AND ecriture_exclue = '0' AND v_historique_ecritures_1.date_echeance > '[TOPERIODE]' THEN montant_credit-montant_debit ELSE 0 END),,
							}	
					FROM compta.v_ecriture_fournisseur_1 v_historique_ecritures_1
					WHERE facture_soldee = '0' 
						[VIEW.ECRITURES_SELECT]
				]]></select>
			</SQL>
			
			<SQL>
				<select><![CDATA[		
					CTIPREPAR_TREE
						WORKTABLE{COMPTA000011_D}
						GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
						GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
						COLUMNBY[PERIODICITE]{v_historique_ecritures_1.date_echeance,, '[PERIODE]' ,, '[TOPERIODE]' ,, 20,, [VIEW.COLUMN_OPTION]}
						OPTIONS{NOTZERO=1}
						ORDERBY{indicateurs[1]}
						INDICATORS{
							0,,
							0,,
							0,,
							0,,
							0,,
							}	
						INDICATORS_COLUMNS{SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN facture_soldee = '0' AND ecriture_exclue = '0' THEN montant_credit-montant_debit ELSE 0 END ELSE NULL END),, }
					FROM compta.v_ecriture_fournisseur_1 v_historique_ecritures_1
					WHERE facture_soldee = '0'
						[VIEW.ECRITURES_SELECT]
				]]></select>
			</SQL>
		
			<SQL>
				<select><![CDATA[		

					SELECT oidt, labelt, textet, 
						oid1, code1, 
						oid2, code2, 
						oid3, code3, 
						oid, code, texte, level, 
						SUM(indicateurs[1]), 
						SUM(indicateurs[2]), 
						SUM(indicateurs[3]), 
						SUM(indicateurs[4]), 
						SUM(indicateurs[5]), 
						SUM(indicateurs[6]), 
						SUM(indicateurs[7]), 
						SUM(indicateurs[8]), 
						SUM(indicateurs[9]), 
						SUM(indicateurs[10]), 
						SUM(indicateurs[11]), 
						SUM(indicateurs[12]), 
						SUM(indicateurs[13]), 
						SUM(indicateurs[14]), 
						SUM(indicateurs[15]), 
						SUM(indicateurs[16]), 
						SUM(indicateurs[17]), 
						SUM(indicateurs[18]), 
						SUM(indicateurs[19]), 
						SUM(indicateurs[20])
					FROM (
						SELECT 
							oidt, labelt, textet, 
							oid1, code1, 
							oid2, code2, 
							oid3, code3, 
							oid, code, texte, level, sort,
							indicateurs
							FROM COMPTA000011_T
						UNION ALL
						SELECT 
							oidt, labelt, textet, 
							oid1, code1, 
							oid2, code2, 
							oid3, code3, 
							oid, code, texte, level, sort,
							indicateurs
							FROM COMPTA000011_D
						) subview
					GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13
					HAVING
						(
							SUM(indicateurs[1]) <> 0 OR
							SUM(indicateurs[2]) <> 0 OR
							SUM(indicateurs[3]) <> 0
						)
					ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3
					
					
						
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="TOT"/>
					<FIELD name="TOTERR"/>
					<FIELD name="TOTFAC"/>
					<FIELD name="N00"/>
					<FIELD name="N99"/>
					<FIELD name="N0"/>
					<FIELD name="N1"/>
					<FIELD name="N2"/>
					<FIELD name="N3"/>
					<FIELD name="N4"/>
					<FIELD name="N5"/>
					<FIELD name="N6"/>
					<FIELD name="N7"/>
					<FIELD name="N8"/>
					<FIELD name="N9"/>
					<FIELD name="N10"/>
					<FIELD name="N11"/>
					<FIELD name="N12"/>
					<FIELD name="N13"/>
					<FIELD name="N14"/>
					<FIELD name="N15"/>
					<FIELD name="N16"/>
					<FIELD name="N17"/>
					<FIELD name="N18"/>
					<FIELD name="N19"/>
					<FIELD name="N20"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Liste des écritures" shortLabel="Ecritures" view="COMPTA000012.XML" componentName="ECRITURES_VIEWLINK">
				<ARGS name="EVOL" >
					<value><![CDATA[
					if (COLUMN.NAME == 'N1') {LINKVARIABLES['PERIODE'] = VIEW.COLD1;LINKVARIABLES['TOPERIODE'] = VIEW.COLF1}
					if (COLUMN.NAME == 'N2') {LINKVARIABLES['PERIODE'] = VIEW.COLD2;LINKVARIABLES['TOPERIODE'] = VIEW.COLF2}
					if (COLUMN.NAME == 'N3') {LINKVARIABLES['PERIODE'] = VIEW.COLD3;LINKVARIABLES['TOPERIODE'] = VIEW.COLF3}
					if (COLUMN.NAME == 'N4') {LINKVARIABLES['PERIODE'] = VIEW.COLD4;LINKVARIABLES['TOPERIODE'] = VIEW.COLF4}
					if (COLUMN.NAME == 'N5') {LINKVARIABLES['PERIODE'] = VIEW.COLD5;LINKVARIABLES['TOPERIODE'] = VIEW.COLF5}
					if (COLUMN.NAME == 'N6') {LINKVARIABLES['PERIODE'] = VIEW.COLD6;LINKVARIABLES['TOPERIODE'] = VIEW.COLF6}
					if (COLUMN.NAME == 'N7') {LINKVARIABLES['PERIODE'] = VIEW.COLD7;LINKVARIABLES['TOPERIODE'] = VIEW.COLF7}
					if (COLUMN.NAME == 'N8') {LINKVARIABLES['PERIODE'] = VIEW.COLD8;LINKVARIABLES['TOPERIODE'] = VIEW.COLF8}
					if (COLUMN.NAME == 'N9') {LINKVARIABLES['PERIODE'] = VIEW.COLD9;LINKVARIABLES['TOPERIODE'] = VIEW.COLF9}
					if (COLUMN.NAME == 'N10') {LINKVARIABLES['PERIODE'] = VIEW.COLD10;LINKVARIABLES['TOPERIODE'] = VIEW.COLF10}
					if (COLUMN.NAME == 'N11') {LINKVARIABLES['PERIODE'] = VIEW.COLD11;LINKVARIABLES['TOPERIODE'] = VIEW.COLF11}
					if (COLUMN.NAME == 'N12') {LINKVARIABLES['PERIODE'] = VIEW.COLD12;LINKVARIABLES['TOPERIODE'] = VIEW.COLF12}
					if (COLUMN.NAME == 'N13') {LINKVARIABLES['PERIODE'] = VIEW.COLD13;LINKVARIABLES['TOPERIODE'] = VIEW.COLF13}
					if (COLUMN.NAME == 'N14') {LINKVARIABLES['PERIODE'] = VIEW.COLD14;LINKVARIABLES['TOPERIODE'] = VIEW.COLF14}
					if (COLUMN.NAME == 'N15') {LINKVARIABLES['PERIODE'] = VIEW.COLD15;LINKVARIABLES['TOPERIODE'] = VIEW.COLF15}
					if (COLUMN.NAME == 'N16') {LINKVARIABLES['PERIODE'] = VIEW.COLD16;LINKVARIABLES['TOPERIODE'] = VIEW.COLF16}
					if (COLUMN.NAME == 'N17') {LINKVARIABLES['PERIODE'] = VIEW.COLD17;LINKVARIABLES['TOPERIODE'] = VIEW.COLF17}
					if (COLUMN.NAME == 'N18') {LINKVARIABLES['PERIODE'] = VIEW.COLD18;LINKVARIABLES['TOPERIODE'] = VIEW.COLF18}
					if (COLUMN.NAME == 'N19') {LINKVARIABLES['PERIODE'] = VIEW.COLD19;LINKVARIABLES['TOPERIODE'] = VIEW.COLF19}
					if (COLUMN.NAME == 'N20') {LINKVARIABLES['PERIODE'] = VIEW.COLD20;LINKVARIABLES['TOPERIODE'] = VIEW.COLF20}
					return 'OK';
					]]></value>
				</ARGS>
				
				<ARG name="TRT" value="	if (COLUMN.NAME == 'TOTERR') {return 'X'}
										if (COLUMN.NAME == 'TOTFAC') {return 'P'}
										if (COLUMN.NAME == 'N00') {return 'P'}
										if (COLUMN.NAME == 'N0') {return 'P'}
										if (COLUMN.NAME == 'N1') {return 'P'}
										if (COLUMN.NAME == 'N2') {return 'P'}
										if (COLUMN.NAME == 'N3') {return 'P'}
										if (COLUMN.NAME == 'N4') {return 'P'}
										if (COLUMN.NAME == 'N5') {return 'P'}
										if (COLUMN.NAME == 'N6') {return 'P'}
										if (COLUMN.NAME == 'N7') {return 'P'}
										if (COLUMN.NAME == 'N8') {return 'P'}
										if (COLUMN.NAME == 'N9') {return 'P'}
										if (COLUMN.NAME == 'N10') {return 'P'}
										if (COLUMN.NAME == 'N11') {return 'P'}
										if (COLUMN.NAME == 'N12') {return 'P'}
										if (COLUMN.NAME == 'N99') {return 'P'}
										return '-1'
												"/>
												
				<ARG name="JOURNAL_PAIEMENT_C" value="	
													if (SELECT.GROUPBY == 'JPA' &amp;&amp; ROW.LVL == '1') {return 'JR' + ROW.OID1}
													if (SELECT.GROUPBY == 'JPACLS01' &amp;&amp; ROW.LVL == '1') {return 'LS01' + ROW.OID1}
													if (SELECT.GROUPBY == 'JPACLS02' &amp;&amp; ROW.LVL == '1') {return 'LS02' + ROW.OID1}
													if (SELECT.GROUPBY == 'JPACLS03' &amp;&amp; ROW.LVL == '1') {return 'LS03' + ROW.OID1}
													if (SELECT.GROUPBY_2 == 'JPA' &amp;&amp; ROW.LVL == '2') {return 'JR' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'JPACLS01' &amp;&amp; ROW.LVL == '2') {return 'LS01' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'JPACLS02' &amp;&amp; ROW.LVL == '2') {return 'LS02' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'JPACLS03' &amp;&amp; ROW.LVL == '2') {return 'LS03' + ROW.OID2}
													if (SELECT.GROUPBY_3 == 'JPA' &amp;&amp; ROW.LVL == '3') {return 'JR' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'JPACLS01' &amp;&amp; ROW.LVL == '3') {return 'LS01' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'JPACLS02' &amp;&amp; ROW.LVL == '3') {return 'LS02' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'JPACLS03' &amp;&amp; ROW.LVL == '3') {return 'LS03' + ROW.OID3}
													return SELECT.JOURNAL_PAIEMENT_C;
												"/>
												
				<ARG name="MODE_PAIEMENT_C" value="	
													if (SELECT.GROUPBY == 'MPA' &amp;&amp; ROW.LVL == '1') {return 'MP' + ROW.OID1}
													if (SELECT.GROUPBY == 'MPACLS01' &amp;&amp; ROW.LVL == '1') {return 'LS01' + ROW.OID1}
													if (SELECT.GROUPBY == 'MPACLS02' &amp;&amp; ROW.LVL == '1') {return 'LS02' + ROW.OID1}
													if (SELECT.GROUPBY == 'MPACLS03' &amp;&amp; ROW.LVL == '1') {return 'LS03' + ROW.OID1}
													if (SELECT.GROUPBY_2 == 'MPA' &amp;&amp; ROW.LVL == '2') {return 'MP' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'MPACLS01' &amp;&amp; ROW.LVL == '2') {return 'LS01' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'MPACLS02' &amp;&amp; ROW.LVL == '2') {return 'LS02' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'MPACLS03' &amp;&amp; ROW.LVL == '2') {return 'LS03' + ROW.OID2}
													if (SELECT.GROUPBY_3 == 'MPA' &amp;&amp; ROW.LVL == '3') {return 'MP' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'MPACLS01' &amp;&amp; ROW.LVL == '3') {return 'LS01' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'MPACLS02' &amp;&amp; ROW.LVL == '3') {return 'LS02' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'MPACLS03' &amp;&amp; ROW.LVL == '3') {return 'LS03' + ROW.OID3}
													return SELECT.MODE_PAIEMENT_C;
												"/>
				
				<ARG name="COMPTE_EXTRA_C" value="	
													if (SELECT.GROUPBY == 'CPX' &amp;&amp; ROW.LVL == '1') {return 'CP' + ROW.OID1}
													if (SELECT.GROUPBY == 'CPXCLS01' &amp;&amp; ROW.LVL == '1') {return 'LS01' + ROW.OID1}
													if (SELECT.GROUPBY == 'CPXCLS02' &amp;&amp; ROW.LVL == '1') {return 'LS02' + ROW.OID1}
													if (SELECT.GROUPBY == 'CPXCLS03' &amp;&amp; ROW.LVL == '1') {return 'LS03' + ROW.OID1}
													if (SELECT.GROUPBY_2 == 'CPX' &amp;&amp; ROW.LVL == '2') {return 'CP' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'CPXCLS01' &amp;&amp; ROW.LVL == '2') {return 'LS01' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'CPXCLS02' &amp;&amp; ROW.LVL == '2') {return 'LS02' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'CPXCLS03' &amp;&amp; ROW.LVL == '2') {return 'LS03' + ROW.OID2}
													if (SELECT.GROUPBY_3 == 'CPX' &amp;&amp; ROW.LVL == '3') {return 'CP' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'CPXCLS01' &amp;&amp; ROW.LVL == '3') {return 'LS01' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'CPXCLS02' &amp;&amp; ROW.LVL == '3') {return 'LS02' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'CPXCLS03' &amp;&amp; ROW.LVL == '3') {return 'LS03' + ROW.OID3}
													return SELECT.COMPTE_EXTRA_C;
												"/>
												
				<ARG name="SITE_C" value="	
													if (SELECT.GROUPBY == 'SIT' &amp;&amp; ROW.LVL == '1') {return 'SI' + ROW.OID1}
													if (SELECT.GROUPBY == 'SITCLS01' &amp;&amp; ROW.LVL == '1') {return 'LS01' + ROW.OID1}
													if (SELECT.GROUPBY == 'SITCLS02' &amp;&amp; ROW.LVL == '1') {return 'LS02' + ROW.OID1}
													if (SELECT.GROUPBY == 'SITCLS03' &amp;&amp; ROW.LVL == '1') {return 'LS03' + ROW.OID1}
													if (SELECT.GROUPBY_2 == 'SIT' &amp;&amp; ROW.LVL == '2') {return 'SI' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'SITCLS01' &amp;&amp; ROW.LVL == '2') {return 'LS01' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'SITCLS02' &amp;&amp; ROW.LVL == '2') {return 'LS02' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'SITCLS03' &amp;&amp; ROW.LVL == '2') {return 'LS03' + ROW.OID2}
													if (SELECT.GROUPBY_3 == 'SIT' &amp;&amp; ROW.LVL == '3') {return 'SI' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'SITCLS01' &amp;&amp; ROW.LVL == '3') {return 'LS01' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'SITCLS02' &amp;&amp; ROW.LVL == '3') {return 'LS02' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'SITCLS03' &amp;&amp; ROW.LVL == '3') {return 'LS03' + ROW.OID3}
													return SELECT.SITE_C;
												"/>
				
				<ARG name="PARTENAIRE_C" value="	
													if (SELECT.GROUPBY == 'PAR' &amp;&amp; ROW.LVL == '1') {return 'PA' + ROW.OID1}
													if (SELECT.GROUPBY == 'PARCLS01' &amp;&amp; ROW.LVL == '1') {return 'LS01' + ROW.OID1}
													if (SELECT.GROUPBY == 'PARCLS02' &amp;&amp; ROW.LVL == '1') {return 'LS02' + ROW.OID1}
													if (SELECT.GROUPBY == 'PARCLS03' &amp;&amp; ROW.LVL == '1') {return 'LS03' + ROW.OID1}
													if (SELECT.GROUPBY_2 == 'PAR' &amp;&amp; ROW.LVL == '2') {return 'PA' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'PARCLS01' &amp;&amp; ROW.LVL == '2') {return 'LS01' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'PARCLS02' &amp;&amp; ROW.LVL == '2') {return 'LS02' + ROW.OID2}
													if (SELECT.GROUPBY_2 == 'PARCLS03' &amp;&amp; ROW.LVL == '2') {return 'LS03' + ROW.OID2}
													if (SELECT.GROUPBY_3 == 'PAR' &amp;&amp; ROW.LVL == '3') {return 'PA' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'PARCLS01' &amp;&amp; ROW.LVL == '3') {return 'LS01' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'PARCLS02' &amp;&amp; ROW.LVL == '3') {return 'LS02' + ROW.OID3}
													if (SELECT.GROUPBY_3 == 'PARCLS03' &amp;&amp; ROW.LVL == '3') {return 'LS03' + ROW.OID3}
													return SELECT.PARTENAIRE_C;
												"/>
												
				
			</VIEWLINK>
		</VIEWLINKS>
			
		<ONGLET excelLabel="Evolution mensuelle" label="Evolution mensuelle" multiTab="true">
			<CHARTx title="Evolution temporelle" type="lineChart" serieIsCategory="true" fromTotal="true" >
				<CATEGORY field="CODTXT" type="Char" />
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null" />
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null" />
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null" />
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null" />
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null" />
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null" />
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null" />
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null" />
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null" />
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null" />
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null" />
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null" />
			</CHARTx>
			<CHARTx title="Comparatif (10 premiers)" type="pieChart" maxItems="10" maxItemsSortOn="TOT" maxItemsSortSeq="D" sortField="TOT" sortSeq="D" condition="ROW.LVL == '1'">
				<CATEGORY field="CODTXT" type="Char" />
				<SERIE field="TOT" displayName="SELECT.DATA_LABEL" displayNameCalc="true" />
			</CHARTx>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="36" variableRowHeight="true" sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
				</COLUMN>
				<COLUMN dataField="COD" width="90" type="Char" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="50" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="CODTXT" type="Char" visible="false" totalFunction="text" otherFunction="text" calc="true">
					<CALC formula="ROW.TXT" condition="ROW.COD == ROW.TXT"/>
					<CALC formula="ROW.COD + ' - ' + ROW.TXT" condition="ROW.COD != ROW.TXT"/>
				</COLUMN>
				<COLUMN dataField="TOT" width="80" visible="true" type="Number" outputFormat="#" headerText="Solde fournissseur" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="TOTERR" width="80" visible="true" type="Number" outputFormat="#" selectable="true" headerText="Dont exclues" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="TOTFAC" width="80" visible="true" type="Number" outputFormat="#" selectable="true" headerText="Dont factures à payer" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="N00" width="70" visible="true" type="Number" outputFormat="#" fixed="false" headerText="&lt;&lt;&lt;&lt;" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N0" width="70" visibleCondition="VIEW.COLH0 != null" type="Number" outputFormat="#" fixed="false" headerText="&lt;&lt;" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N1" width="70" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N2" width="70" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N3" width="70" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N4" width="70" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N5" width="70" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N6" width="70" visibleCondition="VIEW.COLH6 != null" type="Number" selectable="true" outputFormat="#" fixed="false" headerText="VIEW.COLH6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N7" width="70" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N8" width="70" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N9" width="70" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N10" width="70" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N11" width="70" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N12" width="70" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N13" width="70" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N14" width="70" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N15" width="70" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N16" width="70" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N17" width="70" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N18" width="70" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N19" width="70" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N20" width="70" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N99" width="70" visible="true" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="&gt;&gt;&gt;&gt;"  textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
