InovacaoMediaBrasil/ProcessWorkflowsAndDatabaseScripts

View on GitHub
Src/Sankhya/Construtores de Componentes de BI/42.FINANCEIRO_CR_RECEITA_DESP

Summary

Maintainability
Test Coverage
<gadget>
    <prompt-parameters>
        <parameter id="DATA" description="Data" metadata="date" required="true" keep-last="true"/>
    </prompt-parameters>
    <level id="lvl_f1xa7e" description="Principal">
        <chart id="cht_f1xa8m" type="bar">
            <title>
                <![CDATA[CR Receitas]]>
            </title>
            <expression type="sql" data-source="MGEDS">
                <![CDATA[ SELECT          SUM(VLRCHEQUE) AS VALOR,          cus.DESCRCENCUS AS CENTRO_RESULTADO  FROM          TGFFIN fin         INNER JOIN TSICUS cus ON (fin.CODCENCUS = cus.CODCENCUS)  WHERE DHBAIXA = :DATA          AND fin.CODCTABCOINT IN (4, 5, 6, 7, 11, 16)    AND FIN.RECDESP = 1 GROUP BY          cus.DESCRCENCUS]]>
            </expression>
            <metadata>
                <field name="VALOR" label="VALOR" type="F" visible="true" useFooter="false" mask="R$ #.##0,00"/>
                <field name="CENTRO_RESULTADO" label="CENTRO_RESULTADO" type="S" visible="true" useFooter="false"/>
            </metadata>
            <horizontal-axis>
                <linear>
                    <mask/>
                    <title>Valor</title>
                </linear>
            </horizontal-axis>
            <vertical-axis>
                <category field="" rotation="0" dropLabel="false">
                    <title>Centro de Resultado</title>
                </category>
            </vertical-axis>
            <series>
                <serie type="bar" show-tip="false">
                    <xField>$VALOR</xField>
                    <yField>$CENTRO_RESULTADO</yField>
                    <display>CR Receitas</display>
                    <color>0x66ff</color>
                </serie>
            </series>
        </chart>
        <chart id="cht_lcun05" type="bar">
            <title>
                <![CDATA[CR Despesas]]>
            </title>
            <expression type="sql" data-source="MGEDS">
                <![CDATA[ SELECT          SUM(VLRCHEQUE) AS VALOR,          cus.DESCRCENCUS AS CENTRO_RESULTADO  FROM          TGFFIN fin         INNER JOIN TSICUS cus ON (fin.CODCENCUS = cus.CODCENCUS)  WHERE DHBAIXA = :DATA          AND fin.CODCTABCOINT IN (4, 5, 6, 7, 11, 16)    AND FIN.RECDESP = -1 GROUP BY          cus.DESCRCENCUS]]>
            </expression>
            <metadata>
                <field name="VALOR" label="VALOR" type="F" visible="true" useFooter="false"/>
                <field name="CENTRO_RESULTADO" label="CENTRO_RESULTADO" type="S" visible="true" useFooter="false"/>
            </metadata>
            <horizontal-axis>
                <linear>
                    <mask/>
                    <title>Valor</title>
                </linear>
            </horizontal-axis>
            <vertical-axis>
                <category field="" rotation="0" dropLabel="false">
                    <title>Centro de Resultado</title>
                </category>
            </vertical-axis>
            <series>
                <serie type="bar" show-tip="false">
                    <xField>$VALOR</xField>
                    <yField>$CENTRO_RESULTADO</yField>
                    <display>CR Despesas</display>
                    <color>0x990000</color>
                </serie>
            </series>
        </chart>
    </level>
</gadget>