zoomout Posted November 6, 2023 Share Posted November 6, 2023 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: Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted November 10, 2023 Share Posted November 10, 2023 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. 0 Quote Link to comment Share on other sites More sharing options...
zoomout Posted November 10, 2023 Author Share Posted November 10, 2023 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? 0 Quote Link to comment Share on other sites More sharing options...
SimpleSonic Posted November 10, 2023 Share Posted November 10, 2023 Why not just add a custom field and name it "VAT ID" and choose "Show on Invoice"? 0 Quote Link to comment Share on other sites More sharing options...
zoomout Posted November 10, 2023 Author Share Posted November 10, 2023 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 0 Quote Link to comment Share on other sites More sharing options...
SimpleSonic Posted November 13, 2023 Share Posted November 13, 2023 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.