Name of contact as company name if not entered (private customers)

Good morning,

I have just noticed that for customers who have not entered a company name, the name of the first contact also appears as the company name on the invoice.

So the whole thing looks like this:

Max Mustermann
Max Mustermann
Sample street 1
12345 Sample city

In my opinion, however, if no company name is entered, the whole thing should only be optional, or am I wrong?

If you can give me a trick in the design I will gladly use it :wink:

Steps To Reproduce

  • Creates a customer without a name (i.e. only the contact without the company name)
  • Uses “Full name of contact” in addition to “Company name” in the invoice template

Hi,

I suggest asking in a discussion on GitHub

Done: Name of contact as company name if not entered (private customers) ¡ invoiceninja/invoiceninja ¡ Discussion #10552 ¡ GitHub

1 Like

Now a customer of mine / yours has also contacted me and asked if there has been a change.
I am also sure that this problem did not exist until recently.

No company name then only showed the name of the contact and not the name of the contact twice.

Please restore this to the way it was.

See Issue Name of contact as company name if not entered (private customers) ¡ Issue #10557 ¡ invoiceninja/invoiceninja ¡ GitHub

So it’s really annoying when @david thinks that a bug is not a bug and just turns it into a discussion again, especially when this discussion already exists.

Above all, I can narrow down exactly the time.
Between January 01 and January 09, 2025 something has been changed that leads to this problem.

So between 5.11.7 and 5.11.17

@ITSAW

Follow the issue templates, fill in every piece of information. Without a proper issue template, I usually close the issue immediately, or push it back to a discussion.

FWIW, i rolled back to 5.11.0 and the same functionality exists there.

Here, the bill on January 01, 2025

Here, the invoice in the payment reminder on January 09, 2025

Only the updates on Invoiceninja were saved.

So for me clearly a bug!

Here is your Template

So the whole thing is a farce.
The problem CONTINUES and there is no sign of a solution.

The mere fact that the requirement to simply hide the duplicate names has existed since 2022 and you have to make do with a Javascript is a farce in my opinion.

The installation of an if-then statement really shouldn’t be a problem:

If company name empty → hide field on entities

Otherwise, you really manage to scare away a customer who has been satisfied up to this point (since 2018).

Sorry for the trouble!

I think the fact that there was a workaround probably made this less of an issue, now that the workaround has stopped working it’s more important.

I still have problems with getting Company Name (of there’s any) and Client Name in there.

In the settings I chose to display:
Client Name
Contact Full Name
Street
City

But this always includes the contact’s name which I don’t always want to include.

There is a toggle in the Client Editing panel at “Contacts” called “Add to invoices” but when toggled on, it’s not added (in case the Contact Full Name is not included in the settings) and it’s not removed (in case Contact Full Name is included in the settings as described).

Any way to make this dynamic/customer dependent if the client contact in included?

Edit:
The toggle always stays on, no matter if the contact is saved with it being switched off (not that it did what I thought it would do in the first place)

Temoprary solution:
When nothing works, it’s woraround time. I now added the contact name in the website field and use that instead as I don’t need it anyway. Not elegant but it works.