Skip to content

Commit

Permalink
Resumo finaceiro
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonbruce committed Dec 3, 2021
1 parent c7a4212 commit 6710bd9
Show file tree
Hide file tree
Showing 28 changed files with 164 additions and 8 deletions.
23 changes: 22 additions & 1 deletion help/tes/relComadepGrp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
//Contas Nivel 3, tipo: 1.1.1
$sldN3 = number_format(abs($saldoGrp[$planoCta[$ctaCred]['nivel3']]),2,',','.');
$sldGrupoCta = $saldoGrp[$planoCod[$ctaAtualN3]['nivel3']];//Sld do movimento grupo nível 3
$movSld = number_format(abs($sldGrupoCta),2,',','.');
$movSld = number_format(abs($sldGrupoCta),2,',','.').' ** ctaAtualN3'.$ctaAtualN3.' - '.substr($ctaAtualN3, 0, 1);

if (substr($ctaAtualN3, 0, 1) == '3') {
$saidasCta += $sldGrupoCta;
}

if (substr($ctaAtualN3, 0, 1) == '4') {
$entradasCta += $sldGrupoCta;
}


if ($sldGrupoCta > 0) {
$movSld .= $dev;
} elseif ($sldGrupoCta < 0) {
Expand All @@ -12,6 +22,12 @@
}
$sldGrupoCtaAnte = $saldoAnteGrp[$planoCod[$ctaAtualN3]['nivel3']];//Sld anterior grupo nível 3
$saldoAntr = number_format(abs($sldGrupoCtaAnte),2,',','.');


if (substr($ctaAtualN3, 0, 3) == '1.1') {
$cxAnt += $sldGrupoCtaAnte;
}

if ($sldGrupoCtaAnte > 0 && $saldoAntr != '0,00' ) {
$saldoAntr .= $dev;
} elseif ($sldGrupoCtaAnte < 0 && $saldoAntr != '0,00' ) {
Expand All @@ -21,6 +37,11 @@
}
$sldGrupoAtual = $sldGrupoCta+$sldGrupoCtaAnte;//Sld atual grupo nível 3
$saldoAtual = number_format(abs($sldGrupoAtual),2,',','.');

if (substr($ctaAtualN3, 0, 3) == '1.1') {
$cxBco += $sldGrupoAtual;
}

if ($sldGrupoCtaAnte > 0 && $saldoAtual != '0,00' ) {
$saldoAtual .= $dev;
} elseif ($sldGrupoCtaAnte < 0 && $saldoAtual != '0,00' ) {
Expand Down
2 changes: 1 addition & 1 deletion help/tes/relComadepLin.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
require 'help/tes/relComadepGrp.php';
$nivel3 .= $nivel2;
}elseif ($rec=='16') {
//impress�o
//impressão
require '../help/tes/relComadepG2.php';
require '../help/tes/relComadepG3.php';
require '../help/tes/relComadepGrp.php';
Expand Down
Binary file removed img/90_anos.jpg
Binary file not shown.
Binary file removed img/90_anos.png
Binary file not shown.
Binary file removed img/90_anos_200x165.gif
Binary file not shown.
Binary file removed img/90_anos_200x165.png
Binary file not shown.
Binary file removed img/95anosJPtransp.jpg
Binary file not shown.
Binary file removed img/LogoAD.png
Binary file not shown.
Binary file removed img/LogoADSombra.png
Binary file not shown.
Empty file modified img/LogoCarta.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/br_igreja.jpg
Binary file not shown.
Binary file removed img/log. 70anos.jpg
Binary file not shown.
Binary file removed img/logo - Cópia.png
Binary file not shown.
Binary file removed img/logo-add-ons-half.png
Binary file not shown.
Binary file modified img/logo.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/logoADParaiba.xcf
Binary file not shown.
Binary file removed img/logo_adby.jpg
Binary file not shown.
Binary file removed img/logo_comadep.jpg
Binary file not shown.
Binary file removed img/logoadby.ico
Binary file not shown.
Binary file removed img/lupa_32x32.png
Binary file not shown.
Empty file modified img/mais.gif
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/marcaBKP.png
Binary file not shown.
Binary file removed img/marca__.png
Binary file not shown.
Binary file removed img/meninobkp.jpg
Binary file not shown.
4 changes: 2 additions & 2 deletions relatorio/carta_print.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function __autoload ($classe) {
<tr>
<td>
<br>
<img src="../img/logoCarta.png" alt="Bras�oo Assembleia de Deus" width='387' height='125' >
<img src="../img/logoCarta.png" alt="Brasão Assembleia de Deus" width='387' height='125' >
</td>
<td class="text-right" style="vertical-align: text-top;">
<h4><?php echo NOMEIGR;?></h4>
Expand Down Expand Up @@ -143,7 +143,7 @@ function __autoload ($classe) {
}

if ($carta->tipo()!=="3") {
$intr .= '<div class="panel panel-default text-center">';
$intr .= '<div class="panel-default text-center">';
$intr .= ' <div class="panel-body">';
$intr .= ' DESTINO: '.$carta->igreja().', em '.$destino;
$intr .= ' </div>';
Expand Down
17 changes: 15 additions & 2 deletions relatorio/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
*{ margin: 0; padding: 0; }

body { margin: 0; padding: 0; font: 85% tahoma, sans-serif; text-align: center; color: #505367; background-color: #fff;font-family:"Times New Roman", Times, serif; }
body { margin: 0;
padding: 0;
font: 85% tahoma, sans-serif;
text-align: center;
color: #505367;
background-color: #fff;
font-family:"Times New Roman", Times, serif;
}

#container { margin: 1em auto; width: 800px; text-align: left; background: url(../img/log_70anos.jpg) no-repeat 50%; }
#container {
margin: 1em auto;
width: 800px;
text-align: left;
background: url(../img/logo.jpg) no-repeat 50%;
background-position: bottom;
}

#header { width: 900px; height: 100px; margin: 0; padding: 0 20px 0 120px;
text-align:center; font-family:"Times New Roman", Times, serif;}
Expand Down
122 changes: 122 additions & 0 deletions views/saldosComadep.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,125 @@
echo $fontFimCom;
echo $imprimir;
?>

<div style='page-break-after:always'></div>

<div class="col-md-8">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Receita <span class="small">versus</span> Despesas</h3>
</div>
<div class="panel-body">
<table class="table table-bordered">
<thead>
<tr>
<th class="text-center"></th>Total das Saídas</th>
<th class="text-center">Total das Entradas</th>
<th class="text-center">Diferença de Saldos</th>
<th class="text-center">Situação</th>
</tr>
</thead>
<tbody>
<tr class='
<?php
if (abs($entradasCta) - abs($saidasCta)>0) {
echo 'success';
} elseif (abs($entradasCta) - abs($saidasCta)<0){
echo 'danger';
} else {
echo 'muted';
}
?>
'>
<td class="text-right">
<?php
echo number_format(abs($saidasCta),2,',','.');
?>
</td>
<td class="text-right">
<?php
echo number_format(abs($entradasCta),2,',','.');
?>
</td>
<td class="text-right">
<?php
echo number_format(abs($entradasCta) - abs($saidasCta),2,',','.');
?>
</td>
<td class="text-center">
<?php
if (abs($entradasCta) - abs($saidasCta)>0) {
echo '<span class="lead">Superavit</span>';
} elseif (abs($entradasCta) - abs($saidasCta)<0){
echo '<span class="lead">Deficit</span> ';
} else {
echo 'Nulo';
}
?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>

<div class="col-md-8">
<div class="panel panel-info md-2">
<div class="panel-heading">Saldo Disponível</div>
<div class="panel-body">

<table class="table table-bordered">
<thead>
<tr>
<th class="text-center">Saldo do mês Anterior</th>
<th class="text-center">Saldo do mês Atual</th>
<th class="text-center">diferença entre os saldos</th>
<th class="text-center">Situação</th>
</tr>
</thead>
<tbody>
<tr class='
<?php
if (abs($cxBco) - abs($cxAnt)>0) {
echo 'success';
} elseif (abs($cxBco) - abs($cxAnt)<0){
echo 'danger';
} else {
echo 'muted';
}
?>
'>
<td class="text-right">
<?php
echo number_format(abs($cxAnt),2,',','.');
?>
</td>
<td class="text-right">
<?php
echo number_format(abs($cxBco),2,',','.');
?>
</td>
<td class="text-right">
<?php
echo number_format(abs($cxBco) - abs($cxAnt),2,',','.');
?>
</td>
<td class="text-center">
<?php
if (abs($cxBco) - abs($cxAnt)>0) {
echo '<span class="lead">Superavit</span>';
} elseif (abs($cxBco) - abs($cxAnt)<0){
echo '<span class="lead">Deficit</span> ';
} else {
echo 'Nulo';
}
?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions views/tesouraria/saldoMesFinPrint.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
$mes = intval($_GET['mes']);
require_once '../models/tes/histFinIgreja.php';//Tabela com saldos por igreja e semanal

$tabThead = $nivelSem; //Cabe�alho da tabela
$mesPeriodo = sprintf('%02s',$mes);//M�s por extenso
$tabThead = $nivelSem; //Cabeçalho da tabela
$mesPeriodo = sprintf('%02s',$mes);//Mês por extenso
$mesExt = arrayMeses ();
$mesPorExt = $mesExt[$mesPeriodo];
$totSubTotal = $totDizimo+$totOfertaExtra+$totOfertaCultos;
Expand Down

0 comments on commit 6710bd9

Please sign in to comment.