Jump to content

Type field in tblinvoiceitems - Custom values?


Recommended Posts

I'm trying to figure out *specifically* the values in the tblinvoiceitems type column come from. The values I see as being in use are the following, including a blank:

 

 

AddFunds

Addon

Domain

DomainRegister

DomainTransfer

Hosting

Invoice

Item

LateFee

PromoDomain

PromoHosting

Upgrade

 

Is there a way to add additional types? If so where?

Link to comment
Share on other sites

That's fine, but my question falls more along the lines of what is the logic that auto-fills those fields right now? Is it just hard-coded into whmcs? How do I know what will fill that field when I add a line item to an invoice?

 

Sure, I get that I can just use direct sql queries to add anything that falls withing the constraints of varchar(30). I was hoping I could use some logic to do reports down the line that tells me what kind of product is producing what kind of revenue.

Link to comment
Share on other sites

Is it hard-coded?

 

Yes.

 

If you need to generate reports based on this table, use "type" along with "relid" columns to query information.

 

If "tblinvoiceitems.type" = "Item", then "tblinvoiceitems.relid" = "tblbillableitems.id"

If "tblinvoiceitems.type" = "Hosting", then "tblinvoiceitems.relid" = "tblhosting.id"

 

is it clear, or I missed what you mean :)

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