AladdinJ Posted Sunday at 09:35 PM Share Posted Sunday at 09:35 PM 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! 🙏 0 Quote Link to comment Share on other sites More sharing options...
DristiTechnologies Posted 21 hours ago Share Posted 21 hours ago Hey AladdinJ, There are two options I can think of: 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. 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. 0 Quote Link to comment Share on other sites More sharing options...
AladdinJ Posted 17 hours ago Author Share Posted 17 hours ago Hello @DristiTechnologies thanks for your thoughts there is no hook called "CreditAdded" but tblactivitylog  seems good idea to start with , 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.