wip recap groupe
This commit is contained in:
parent
e8ccdb8367
commit
b835b3cb40
@ -3425,7 +3425,7 @@ class Bdd {
|
||||
}
|
||||
|
||||
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,[]);
|
||||
return $clientGroupFacturations;
|
||||
}
|
||||
|
||||
@ -333,12 +333,21 @@ class InvoiceRecapService {
|
||||
$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);
|
||||
$pdfContent = $pdf->Output('','S');
|
||||
|
||||
$file_pdf = $storage->get($ff_pdf);
|
||||
$file_pdf->putContent($pdfContent);
|
||||
return $ff_pdf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user