Jump to content

Transactions Question


Blesta Addons

Recommended Posts

We want to code a private plugin, the idea is to manage what we get as cash .

when we receive payment as cash we don't have any issue with it, sometimes our workers should go to some places and they should pay taxi or the transport fee from the cashbox . we want to centralize the transaction our idea was to make a plugin that write to the transaction table without filling the client_id and account_id . is this will impact the total revenue in the billing widget or any other area in blesta ?

Note; we can create another table to store only the spent money from the cashbox .

 

Link to comment
Share on other sites

transactions.account_id can be NULL, but transactions.client_id cannot. If this is mostly for internal use, you could create a client in Blesta and use it's ID for this purpose.

If you don't want these transactions to appear in the revenue reports/graphs, then make sure to use a transactions.transaction_type_id for a transaction type that is "credit" and not "debit". Settings > System > General > Payment Types. You could create a new payment type just for this purpose, so all transactions using this new type can be traced back to your plugin.

Link to comment
Share on other sites

44 minutes ago, Paul said:

transactions.account_id can be NULL, but transactions.client_id cannot. If this is mostly for internal use, you could create a client in Blesta and use it's ID for this purpose.

If you don't want these transactions to appear in the revenue reports/graphs, then make sure to use a transactions.transaction_type_id for a transaction type that is "credit" and not "debit". Settings > System > General > Payment Types. You could create a new payment type just for this purpose, so all transactions using this new type can be traced back to your plugin.

Thanks for the advice, we have finally take the decision to go away from core table, we have created a new table for the spent money .

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.

Loading...
×
×
  • Create New...