avoir name
This commit is contained in:
parent
3eb59aab8e
commit
3c5e61f52e
@ -3155,6 +3155,7 @@ class Bdd {
|
||||
return null;
|
||||
}
|
||||
$products = $this->getDevisProduits($factureData["devis_id"]);
|
||||
$isDevisNegative = $this->isDevisNegative($factureData['devis_id'],$factureData['client_id']);
|
||||
$factureData = $this->setDevisStartAndEndTime($factureData);
|
||||
|
||||
$factureData["products"] = $products;
|
||||
@ -3173,6 +3174,7 @@ class Bdd {
|
||||
$factureData["client_real_adress"] = $clientAdresses["address"];
|
||||
$factureData["client_adress_city"] = $clientAdresses["city"];
|
||||
}
|
||||
$factureData['is_negative'] = $isDevisNegative;
|
||||
|
||||
$configurationAdresses = FileExportHelpers::GetAddressAndCityFromAddress($configuration->adresse);
|
||||
$factureData["configuration_adresse"] = $configurationAdresses["address"];
|
||||
@ -3522,6 +3524,7 @@ class Bdd {
|
||||
devis.comment as devis_comment,
|
||||
devis.order_number as order_number,
|
||||
devis.case_number as case_number,
|
||||
client.id as client_id,
|
||||
client.nom as client_nom,
|
||||
client.entreprise as client_entreprise,
|
||||
client.adresse as client_adresse,
|
||||
|
||||
@ -144,7 +144,7 @@ class InvoicePdfHandler extends FPDF
|
||||
$factureNum = $this->factureData['num'];
|
||||
$factureNum = str_replace('/', '-', $factureNum);
|
||||
$defuntNom = str_replace(' ', ' ', $this->factureData['defunt_nom']);
|
||||
return $this->factureData['configuration']->facture_prefixe . '_' . $factureNum . '_' . mb_strtoupper($defuntNom, 'UTF-8');
|
||||
return $factureNum . '_' . mb_strtoupper($defuntNom, 'UTF-8');
|
||||
}
|
||||
|
||||
private function DrawInvoiceCompanyInfo()
|
||||
|
||||
@ -99,6 +99,11 @@ class InvoicePdfService {
|
||||
$pdf->SetFactureContent();
|
||||
$pdfContent = $pdf->Output('','S');
|
||||
$pdfFilename = $pdf->GetInvoiceFilename();
|
||||
$prefixPdf = "FACTURE";
|
||||
if($invoicePdfData['is_negative']){
|
||||
$prefixPdf = "AVOIR";
|
||||
}
|
||||
$pdfFilename = $prefixPdf."_".$pdfFilename;
|
||||
$filenames = [];
|
||||
foreach($factureFolders as $folder){
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user