Mate2xo/Creeons_la_coop

Member attributes update

Closed this issue · 0 comments

Background

Members (or a family of members) are associated with a unique cash register ID number. This ID is set a the shop, on the cash register. All members of a family share the same cash register ID
This ID will be used to track worked hours (for the member, or the family of members), to track the yearly subscription validity, and track how much money has been given to the shop.
Also a few statistics are desired on members

Must have

  • form to invite new members : add a cash_register_id field
  • gender attribute (enum)
  • subscribed_at attribute (date)
  • birth_date attribute (date)
  • cash_register_id attribute (integer)
  • members of the same family share the same cash_register_id

To design

Payments done by members to the shop regarding subscriptions, must be tracked according to the type of payment, and the date of payment. A SubscriptionPayment model associated with Member might be appropriate.
Needed attributes:

  • member_id (foreign key)
  • cash_register_id (foreign key)
  • paid_at
  • type : cash, cheque or bank_transfer (use enums?)
  • amount