Open prod-cnd opened 9 months ago
I suppose you changed this file https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/core/modules/facture/doc/pdf_sponge.modules.php around line 1381 ?
Just 13 lines down under there is a getFullAddress used. Have you tried changing linie 1381 to something like this?
$pdf->MultiCell($posxend - $this->marge_gauche, 3, $outputlangs->convToOutputCharset($account->getFullAddress()), 0, 'L', 0);
Bug
On the
pdf_sponge_modules.php
(display an invoice), the information on check delivery is incomplete for the owner contact.Environment Version
18.0.4
Environment OS
No response
Environment Web server
WAMP
Environment PHP
7.4.33
Environment Database
mysql 8.0.32
Environment URL(s)
Localhost
Expected and actual behavior
On the
pdf_sponge_modules.php
(display an invoice), the information on check delivery is complete when you configure Dolibarr by displaying the company's contact details, but when you request the owner contact, we retrieve the first and last name of the account holder and owner_address. However, theowner_zip
andowner_town
are missingif (empty($conf->global->MAIN_PDF_HIDE_CHQ_ADDRESS)) { $pdf->SetXY($this->marge_gauche, $posy); $pdf->SetFont('', '', $default_font_size - $diffsizetitle); $pdf->MultiCell($posxend - $this->marge_gauche, 3, $outputlangs->convToOutputCharset($account->owner_address), 0, 'L', 0); $posy = $pdf->GetY() + 2; }
A function like
getFullAddress()
is missing but to display the full contact details of the owner entered in the BankIn the meantime, I added in my invoicing model
Steps to reproduce the behavior
No response
Attached files
No response