Ajustando relatorio de movimentações

This commit is contained in:
Kenio 2025-09-02 15:08:47 -03:00
parent d558db9966
commit 1eda76de7b

View file

@ -137,6 +137,7 @@ try{
$header .= ' <table width="100%" style="margin:none; font-size:11px; font-family:Arial, Helvetica, sans-serif; border-collapse: collapse;">';
$header .= ' <tr style="background-color: #333;">';
$header .= ' <td style="color: #FFF; padding: 4px; text-align: center; width: 10px"></td>';
$header .= ' <td style="color: #FFF; padding: 4px; text-align: center; width: 90px">REFERÊNCIA</td>';
$header .= ' <td style="color: #FFF; padding: 4px; text-align: center; width: 90px">VENCIMENTO</td>';
$header .= ' <td style="color: #FFF; padding: 4px; text-align: center; width: 90px">PAGAMENTO</td>';
@ -186,6 +187,7 @@ try{
$body .= ' <tr style="'.($i % 2 == 0 ? 'background-color: #f2f2f2;' : '').'">';
$body .= ' <td style="text-align: center; width: 10px; border-bottom: #333 solid 1px; padding: 2px">'.$i.'</td>';
$body .= ' <td style="text-align: center; width: 90px; border-bottom: #333 solid 1px; padding: 2px">'.$Result->movement_reference.'</td>';
$body .= ' <td style="text-align: center; width: 90px; border-bottom: #333 solid 1px; padding: 2px">'.date('d/m/Y', strtotime($Result->movement_date_scheduled)).'</td>';
$body .= ' <td style="text-align: center; width: '.($FinancialMovementsValidate->getStatusSearch() == 1 ? '120' : '90').'px; border-bottom: #333 solid 1px; padding: 2px">'.(isset($Result->movement_date_paid) ? date('d/m/Y', strtotime($Result->movement_date_paid)) : ($Main->CheckDay($Result->movement_date_scheduled) > 1 ? $Main->diffDate($Result->movement_date_scheduled, date('Y-m-d')).' dia(s) de atraso' : '')).'</td>';