Jump to content

is there a way to add datetime to tblcredit?


AladdinJ

Recommended Posts

Hello everyone đź‘‹

I noticed that in WHMCS, the tblcredit table only stores the date of each credit transaction, without the time — it’s just a DATE field.

For my business, it’s important to see both the date and exact time when credit is added or removed.

Is there a safe and recommended way to achieve this, while still keeping WHMCS upgradable and compatible with future updates?

I’d appreciate any advice or best practices from others who faced the same need.

Thanks in advance! 🙏

Link to comment
Share on other sites

Hey AladdinJ,

There are two options I can think of:

  1. Create a custom table (e.g., mod_credit_log) with the fields you need, and update it using hooks like CreditAdded. You can then use this table wherever you require timestamped credit history.

  2. Use the tblactivitylog table. WHMCS logs credit additions and removals in this table, which includes a timestamp field. You can leverage this for tracking purposes as well.

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