CoinRoster / slotmachine

fruitgame
0 stars 0 forks source link

Admin Page - Update Dividend Transactions table #52

Closed Patrick-Bay closed 6 years ago

Patrick-Bay commented 6 years ago

Need to add affiliate deduction row so that for each dividend payment two rows will appear in table. New row should have:

Date - transaction date Description: "Affiliate credit - game" Gross Dividend = 0 Affiliate amount (currently missing) = gross affiliate deduction Net Dividend = 0 Rake Amount =0 Balance = investment amount minus gross affiliate deduction

Patrick-Bay commented 6 years ago

This will require an update to the (now external) rpc_payDividends function at the point where the affiliate game play credits are deducted:

https://github.com/CoinRoster/slotmachine/blob/bc10cbb9f01b6442f8b45cde625aeae3e08924a2/node/external_functions/investment_plugin/timer_payDividends.js#L71-L79

This does not seem to be a difficult update (no seeming roadblocks), and should take approximately 1 hour with testing.

Patrick-Bay commented 6 years ago

This issue has been updated with the latest commit (https://github.com/CoinRoster/slotmachine/commit/325e8484e5a042b9bf1aa5652ff46d6904876733), and is available on the dev server immediately for review.

Please note that due to data formatting updates, the current database structure may not correctly render on the front end and certain items (e.g. dividend transaction items on the admin page, some transactions on the account page, etc.) Although these will appear in time it is highly advised that we clear the database so that we can correctly track and display all values.