|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
<INDICATOR title="Chiffrier"
|
|
|
name="iCTI_activite_chiffrier_comptable"
|
|
|
softCode="iCTI_activite"
|
|
|
eisOnly="false"
|
|
|
type="CTIsql"
|
|
|
indicatorKey=""
|
|
|
linkView="ACTI000092">
|
|
|
<reportTitle><![CDATA[Chiffrier [CONTEXT] [STATUT]]]></reportTitle>
|
|
|
<reportDescription></reportDescription>
|
|
|
<SQL database="iCTI">
|
|
|
<select><![CDATA[
|
|
|
SELECT now() AS date,
|
|
|
COUNT(DISTINCT date(date_trunc('month', date_comptable))) AS count_mois,
|
|
|
COUNT(DISTINCT CASE WHEN valide <> 1 THEN date(date_trunc('month', date_comptable)) ELSE NULL END) AS count_mois_erreur
|
|
|
FROM activite.t_controle_chiffrier
|
|
|
WHERE date_comptable >= '20090101'
|
|
|
]]></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>
|