Gerando planilha

This commit is contained in:
Kenio 2025-09-02 17:46:56 -03:00
parent 5a3872fe06
commit 7f1150755b

View file

@ -161,7 +161,7 @@ try{
$worksheet->write($line, $col++, $Result->movement_reference, $body);
$worksheet->write($line, $col++, date('d/m/Y', strtotime($Result->movement_date_scheduled)), $body);
$worksheet->write($line, $col++, (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' : '')), $body);
$worksheet->write($line, $col++, $Result->description, $body);
$worksheet->write($line, $col++, iconv("utf-8","iso-8859-1",utf8_encode($Result->description)), $body);
$worksheet->write($line, $col++, $Result->cns, $body);
$worksheet->write($line, $col++, ( isset($Result->note) ? $Result->note : '' ), $body);
$worksheet->write($line, $col++, number_format($Result->movement_value, 2, ',', '.'), $body);