Jump to content

Report Credit Balance


web2008

Recommended Posts

15 hours ago, web2008 said:

OK, but I'm making a custom report and then I may have to use a formula as first thought?

aah you never mentioned wanting to use it in your own report... even so, there is no formula needed - you would just need to retrieve the 'credit' value from the tblclients database table.

that's why the above report works as it's just querying the tblclients table and then offering various fields to display and filter by.

Link to comment
Share on other sites

If you have a $client object in the report, which you likely should have, then you can get the credit via $client-.credit .  If you need like a total of all credits for all clients, then $TotalCredits += $client->credit should do - presuming you're looping through clients. 

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