Blesta Addons Posted April 6, 2018 Report Posted April 6, 2018 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 . activa and Joseph H 1 1 Quote
Paul Posted April 6, 2018 Report Posted April 6, 2018 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. activa 1 Quote
Blesta Addons Posted April 6, 2018 Author Report Posted April 6, 2018 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 . activa 1 Quote
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.