[solved]Hide custom field if empty on invoice pdf?

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 4 months ago - 10 years 4 months ago #53599 by Baptiste
Hi!

I'm using a custom field (in fact, 3 custom fields depending on the category concerned).

In my invoice, i entered custom field code : [CUSTOM1] [CUSTOM2] [CUSTOM3]. Depending on the categoy choosen, only custom1 custom2 or custom3 has a value.

so, here is what is displayed in the invoice, is custom2 is used :

Labelcustom : [CUSTOM1] mycustom [CUSTOM3]

Is there a way to hide CUSTOM1 and CUSTOM3 if they are empty? or another approach?

Thanks a lot!

Baptiste
Last edit: 10 years 4 months ago by Baptiste. Reason: solved

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #53668 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Hi Baptiste

I am sorry. At the moment, we don't have a solution for this problem, so I am afraid of you will need to find a different option. There is not a different approach you can use

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 4 months ago #53713 by Baptiste
Thanks for your answer... i will think of that...

have a good day!

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #53767 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
I think I can customize the code for you to make it works this case. However, this week I am busy, so we will come back to this next week

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 4 months ago #53807 by Baptiste
Thank you very much for this answer, Tuan, this is a real good news for me!

As i have another subject ( here ) and you told me to send a ticket, i think it's better that you work on the two subjects in the same time. Let me tell you if you want me to open a ticket for that work (I understood you can't work on that this week)?

Of course, you can charge me with a bill for this work!

Have a good day,

Baptiste

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #53817 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Hi Baptiste

Yes. Please just use a support ticket. As I mentioned, this week I am very busy, so we will work on it next week

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 4 months ago #53852 by Baptiste
wow, concerning this subject, i solved the problem! i discover that different fields (custom1, custom2, custom3) can have the same name, so i simply have to name them "custom", and to call them [CUSTOM] it doesn't matter if they are different fields. Great!

Concerning the second point ( here ) as you suggest, il will open a ticket.

Great tool, indeed!

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #53868 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Great. Thanks for the update !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc