wip recap groupe

This commit is contained in:
Tiavina 2025-01-23 13:13:25 +03:00
parent e8ccdb8367
commit b835b3cb40
2 changed files with 11 additions and 2 deletions

View File

@ -3425,7 +3425,7 @@ class Bdd {
} }
public function getClientGroupFacturations(){ public function getClientGroupFacturations(){
$sql = "SELECT * as client_type FROM ".$this->tableprefix."client_group_facturation as client_group_facturation ORDER BY client_group_facturation.id DESC;"; $sql = "SELECT * FROM ".$this->tableprefix."client_group_facturation as client_group_facturation ORDER BY client_group_facturation.id DESC;";
$clientGroupFacturations = $this->execSQL($sql,[]); $clientGroupFacturations = $this->execSQL($sql,[]);
return $clientGroupFacturations; return $clientGroupFacturations;
} }

View File

@ -333,12 +333,21 @@ class InvoiceRecapService {
$num_page++; $num_page++;
} }
$ff_pdf = html_entity_decode($defaultConfig[0]->path).'/DOCUMENTS RECAPITULATIFS/'.$key_annee.'/'.$key_mois.' '.strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])).'/GROUPE_OGF_RECAP_FACTURE_'.strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])).'_'.$key_annee.'.pdf'; $ff_pdf = html_entity_decode(
$defaultConfig[0]->path).
'/DOCUMENTS RECAPITULATIFS/'.$key_annee.'/'.$key_mois.' '.
strtoupper(
FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])
).
'/GROUPE_/'.$groupName.'_RECAP_FACTURE_'.strtoupper(
FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])
).'_'.$key_annee.'.pdf';
$storage->newFile($ff_pdf); $storage->newFile($ff_pdf);
$pdfContent = $pdf->Output('','S'); $pdfContent = $pdf->Output('','S');
$file_pdf = $storage->get($ff_pdf); $file_pdf = $storage->get($ff_pdf);
$file_pdf->putContent($pdfContent); $file_pdf->putContent($pdfContent);
return $ff_pdf;
} }
} }
} }