Jump to content

relid in tblinvoiceitems for custom invoice


talhaarif

Recommended Posts

Hi,

When i go through the invoiceitems table,   both type  and relid are empty for custom invoices.

Is there any way to create relid for custom invoices or to know which product is this invoice item related, 

so i can track from which product this specific invoice belongs to.

thanks

Link to comment
Share on other sites

If it's a custom item, what's the point of specifying a relid? Anyway just don't do that. WHMCS uses tblinvoiceitems.relid and tblinvoiceitems.type to run automations. For example Type -> DomainRegister & Relid -> 100 will register domain with ID 100. Type -> Hosting & Relid -> 100 will renew hosting package with ID 100... I lost the count of how many "types" WHMCS uses (late fees, domain, domain renewal, addons, billing items, configurable options...).

Link to comment
Share on other sites

On 22/01/2020 at 10:46, talhaarif said:

Is there any way to create relid for custom invoices or to know which product is this invoice item related,  so i can track from which product this specific invoice belongs to.

you could use the Notes tab on the invoices page to remind you what the items in each invoice are related to...

mnHXmgs.png

but if these notes are for your (admin) use only (e.g you don't want the clients to see them), then you will have to remove them from the invoice templates (both html and pdf) - either by editing the templates, or in the case of the html invoice template, by optionally using a action hook.

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.

×
×
  • 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