sb-github / cookdrive-sb-gh

Other
6 stars 2 forks source link

Sorting users by balance #8

Open sb-github opened 6 years ago

sb-github commented 6 years ago
  1. UI 33316642-4c98bd4e-d43d-11e7-90f0-3fc49b4db51e

Users balance page includes:

  1. take data from the table "history" (group by user, order by sum).

  2. add a field (balance) to the "user" table - the default value 0.00 (double) to store balance in this field, and then admin just insert it manually (for now), when the money is paid by user. Calculation for user.balance = balance (user table) - sum (history table). (it would depends on future payment history of transactions). Data can be modified, and viewed by admin only.