Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a payment history of transactions #5

Open
3 tasks done
sb-github opened this issue Jan 10, 2018 · 0 comments
Open
3 tasks done

Create a payment history of transactions #5

sb-github opened this issue Jan 10, 2018 · 0 comments
Assignees

Comments

@sb-github
Copy link
Owner

Create a payment history of transactions

Develop the feature which should allow:

  • users to receive a detailed history of payment transactions (operations, summs money, dates) and balance, but can't mdify these
  • admins to view history payment transactions (operations, summs money, dates) for each user
  • admins to replenish balance, to withdraw money from balance, to refund money to balance and to return the debt.

This task will be achieved if the above conditions are met.

Achievement of this task will allow users controls theirs balance and money.

This task can be completed in 10 hours.

UI

Four main views designed for history of payment transactions:

  1. close admin view — view hidden table of data for all clients (shows only name, logo and balance of user)
    33306533-a4d6f132-d41b-11e7-99fc-e5cf4b529b69

  2. open admin view — view table history of payment transactions for all clients (shows all data: user name and logo, operations, summs, dates, balance)
    33306549-aff651de-d41b-11e7-8b73-d674c7bd8c5e
    Button Редагувати баланс allow admin to manage balance of users.

  3. client view — view for table of payment transactions by client (shows all data for current user)
    33306627-fe446fc4-d41b-11e7-9989-dd7aa408418e
    Button Редагувати баланс allow admin to manage balance of users.

  4. Edit balance view — view for managing user's balance.
    33311866-d232b234-d42e-11e7-9ba7-f4965cd46474

Data Structure

Table for history of payment transactions has next structure:

  • User id. User for whom operations are performed.
  • Operation. Type of operation. Can be 1(order payment), 2(replenish the balance), 3(withdraw money from the balance), 4(refund money to balance).
  • Summa. Total amount money of operation.
  • Order id. Order made by operation(if type of operation is 1).
  • Date. Date of made operation.

In addition, need to calculate balance for each user.

Logic or Flow information

To get a history of payment transactions user must be registered in and logged in.

Then he can visit his personal cabinet and view your own history and balance of money.

Admin can be view and modify history and balance when he authorized and will go to the edit panel.

For modify user's balance need enter summ of money and type of operation. Admins can replenish the balance, withdraw money from the balance, refund money to balance and return the debt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants