Jump to content

Add extra fields to admin invoice summary section


zoomout

Recommended Posts

Hi, i was wondering if there is a way to add an extra field at the admin invoice view page at the summary tab. Or if this is not possible anywhere in this page.

I want to add Vat id and perhaps email under client name. See attached screenshot.

 

example:

image.png.a39dd516212b6cc9e8b865e8c48385f2.png

 

Thanks in advance

 

 

image.png

Screenshot 2023-11-05 132706 (1).jpg

Link to comment
Share on other sites

Not trying this before, I can just share some thoughts, but hope it could provide a good starting point.

Assumed the VAT ID and Emails are already stored in the system.

You can make use of this hook to perform JS actions to add the needed details/fields.

Here's the hook that could help: 
https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#viewinvoicedetailspage

You will need to combine the localAPI calls to gather information and construct a js action later.

Link to comment
Share on other sites

5 minutes ago, Nelson Neoh said:

Not trying this before, I can just share some thoughts, but hope it could provide a good starting point.

Assumed the VAT ID and Emails are already stored in the system.

You can make use of this hook to perform JS actions to add the needed details/fields.

Here's the hook that could help: 
https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#viewinvoicedetailspage

You will need to combine the localAPI calls to gather information and construct a js action later.

Thank you so much. The problem ist that i don't have enough coding skills to do that. can you help me with a code example?

Link to comment
Share on other sites

7 minutes ago, SimpleSonic said:

Why not just add a custom field and name it "VAT ID" and choose "Show on Invoice"?

I think you didn't understand exactly what i need. I already have custom fields and showing on invoice and everything. 

 

I want this field to show specifically at the admin invoice view page at the summary tab.

 

Please see the screenshots

 

Thanks

Link to comment
Share on other sites

On 11/10/2023 at 2:52 PM, zoomout said:

I think you didn't understand exactly what i need. I already have custom fields and showing on invoice and everything. 

 

I want this field to show specifically at the admin invoice view page at the summary tab.

 

Please see the screenshots

 

Thanks

I honestly can't see where showing the VAT ID on the admin invoice view page would be helpful and/or necessary, but to each his own.

That said, there is no easy way to do it and it would require hiring a developer to create a hook for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated