|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
<INDICATOR title="Chiffrier Comptabilité"
|
|
|
name="iCTI_compta_chiffrier_comptable"
|
|
|
softCode="iCTI_compta"
|
|
|
eisOnly="false"
|
|
|
type="CTIsql"
|
|
|
indicatorKey=""
|
|
|
linkView="COMPTA000021">
|
|
|
<reportTitle><![CDATA[Chiffrier [CONTEXT] [STATUT]]]></reportTitle>
|
|
|
<reportDescription></reportDescription>
|
|
|
<SQL database="iCTI">
|
|
|
<select><![CDATA[
|
|
|
SELECT now() AS date,
|
|
|
COUNT(DISTINCT mois_comptable) AS count_mois,
|
|
|
COUNT(DISTINCT CASE WHEN valide <> 1 THEN mois_comptable ELSE NULL END) AS count_mois_erreur
|
|
|
FROM compta.t_controle_chiffrier
|
|
|
WHERE mois_comptable >= 200901
|
|
|
]]></select>
|
|
|
</SQL>
|
|
|
<ALERT rule_compareField="count_mois_erreur" rule_compareOperator=">" rule_compareValue="0" result="WARNING" resultText="Au moins un mois comptable présente une ANOMALIE" />
|
|
|
<ALERT rule_compareField="count_mois_erreur" rule_compareOperator="=" rule_compareValue="0" result="OK" resultText="Tous les mois comptables sont CORRECTS" />
|
|
|
|
|
|
</INDICATOR>
|