Postal Code of the Company taken from Client

Version v5.11.66, self-hosted
Hello. We discovered the problem that on every invoice the Postal Code of the Company is taken from Client.

In instance if Client has 70191 Postal Code (70191 Stuttgart), it shows the same postal code 70191 in the Company header but with correct city - 70191 Munchen. Correct is 80335 Munchen.

The postal code is always taken from Client, but the City is correctly taken from Company profile.

I tried and this applies on all templates. We didn’t notice that earlier, but we have it since we started to use Invoice Ninja on every invoice = one month.

Hi,

Hmmm… odd one. Can you try removing then adding back the fields on Settings > Invoice Design > Company Details.

Hello and thank you very much for your answer!

I tried but it didn’t help. Interesting is also that it happens only in one company, second one works well.

I have used custom field now to put what I need there, but it is really weird.

It seems likely to be a configuration issue, I haven’t heard other reports of this.

If you choose the client’s setting option and then review the company details address are all fields blank?

Hello, they are filled well as expected.

:thinking:

What do you see if click settings for the client and then viewing the company address?

Aha, that could be related, right?

We are using API to create the clients and invoices.
I am sure we don’t set any additional settings to the Client.

Question is maybe if openapi auto-generated java lib is not sending something wrong , we needed to change few things already there.

Yes, that most likely explains your problem.

I suggest reviewing your API requests.

OK, tomorrow we’ll check up the API and test, how this setting gets there because we don’t even create the Setting Object on the Client, it is pretty straightforward there.

Thank you very much!