Ajuste, aplicando filtro de consulta por conter NF no relatório

This commit is contained in:
Kenio 2025-09-29 10:52:01 -03:00
parent c7ae6022be
commit cd08834336

View file

@ -321,26 +321,36 @@ try{
$body .= ' </tbody>';
$body .= '</table>';
/** Verifica se o status */
if($FinancialMovementsValidate->getStatusSearch() == 3){
/** Verifica o tipo da impressão */
switch($FinancialMovementsValidate->getType()){
case 'E':
$body .= '<br/>';
$body .= 'Total de itens: '.$i.'<br/>';
$body .= 'Total Geral R$ '.number_format(($totalGeneral-$totalFees), 2, ',', '.').'<br/>';
$body .= '<br/>';
$body .= 'Total R$ '.number_format($totalGeneral, 2, ',', '.').'<br/>';
$body .= '<span style="color:red">Total Taxas - R$ '.number_format($totalFees, 2, ',', '.').'</span><br/>';
$body .= 'Total Geral R$ '.number_format(($totalGeneral-$totalFees), 2, ',', '.').'<br/>';
} else {
break;
/** Verifica o tipo da impressão */
switch($FinancialMovementsValidate->getType()){
case 'E':
case 'S':
$body .= '<br/>';
$body .= 'Total R$ '.number_format($totalGeneral, 2, ',', '.').'<br/>';
$body .= '<span style="color:red">Total Taxas - R$ '.number_format($totalFees, 2, ',', '.').'</span><br/>';
$body .= 'Total Geral R$ '.number_format(($totalGeneral-$totalFees), 2, ',', '.').'<br/>';
$body .= '<br/>';
$body .= 'Total R$ '.number_format($totalGeneral, 2, ',', '.').'<br/>';
break;
break;
case 'S':
$body .= '<br/>';
$body .= 'Total R$ '.number_format($totalGeneral, 2, ',', '.').'<br/>';
break;
}
}