Company name overwrites address text

I think so. You are welcome.

Hi saxa,

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.

Thanks in advance.

I do not see your snapshot. But you can safely use the same code slightly modified for the sender too. It is a bit before the customer part.

His saxa,
I changed the line 1027 of the file pdf_azur.modules (in C:\dolibarr\www\dolibarr\htdocs\core\modules\propale\doc) as below:

$pdf->SetXY($posx+2,$posy+4+(dol_nboflines_bis($carac_emetteur,50)*4));

and the overwriting stopped.

Good to hear that.

Hi it seems that this bug still persists in my 3.2.1 install. Anybody can confirm that ?

Can you reproduce pb in demo.dolibarr.org ?

It seems that demo is creating ok the company name. Although I get some other error, not relevant now.

But my version is 3.2.1 and does overwrite the address.

Ok I figured out why it does not work.

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.

This is the reason why it can not work.

Sollution is to add the following line to pdf_azur.modules.php file at the beginning:

require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';

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

I still haveing this problem. Anybody can confirm this in 3.2.2 ?

I’m still getting the overwrite of the persons contact name with the company name. This is in 3.3.1. See attached screenshot.

overwrite.png

overwrite.png

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:

Address format for Turkey is as the following:

Name (Company or Contact)
Address (Street name, Building No, etc)
Postal Code, Town (Town corresponds State)
City (City corresponds Region)
Country

Sample:
KIZILTANLAR Pompa Imalat Sanayi Ltd.
Sanayi Sitesi B23/5
33040 Akdeniz
Mersin
Turkey

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.

I also tried 3.4.0, yes, it is not solved yet.

Thanks for confirming it. For me this is not a so big issue as I solve this with modifying the pdf creation file of the model. I modify it the way i described it earlier in this thread.