// Show recipient information
$pdf->SetFont('','', $default_font_size - 1);
//$pdf->SetXY($posx+2,$posy+4+(dol_nboflines_bis($carac_client_name,50)*4));
// Check if the company name is longer than 35 char. If yes, set the address pos to start lower.
if ( strlen ($carac_client_name) > 35 ) {
$pdf->SetXY($posx+2,$posy+12);
}
else
{
$pdf->SetXY($posx+2,$posy+8);
}
$pdf->MultiCell(100,4, $carac_client, 0, 'L');
}
}
It starts on line 1074 in htdocs/core/modules/propale/doc/pdf_azur.modules.php
Many thanks saxa,
I applied the codes as you mentioned and it worked for the recepient adress. The same fault exist also for the sender and I think we can use some codes like you sent for the sender.
Please see below the snapshot of the output of pdf_azur.modules. The sender (customer area is ok) name overwrites the sender address. I tried too much to solve it but no success. Please give some more help for this bug. I am sorry for annoying you too much.
The function dol_nboflines_bis is located in core/lib/functions.lib.php but in the file modules/propale/doc/pdf_azur.modules.php it is not included.
The pdf_azur.modules.php includes the file functions2.lib.php which has not the required function in it.
Ok this solution is not the one which works at least for me not. It seems that
on the old contacts I have I get the name of the contact overwritten, but on new companies the company name does not overwrite the address.
It seems now the company name overwrites the contacts name. This is in 3.2.2
This issue is not solved also in 3.3.2
I don’t understand why it is not being solved by the developers. If the developers decide to solve this issue please also add the codes for the state to be displayed on the address.
I am trying the 3.4.0 beta version and overwriting issue is still going on. Please solve this issue. This is the only reason why I don’t use the software in production. Please find the overwriting image attached.
Overlapping will be fixed with 3.4 stable.
Also for state/region, information are added only for countries where this is required into a postal address, so for country:
‘AU’,‘US’,‘IN’,‘GB’,‘ES’,‘UK’
It seems for turkey this information is not required:
Hi, yesterday i installed 3.4.0 and I can say that this bug is still not solved. Tried to generate an quote and the company name overwrtes the persons name immediately after the company name.