Here’s the hypothetical situation.
- I have a collection called books
- a salesman (registered user) can sell a customer books. When a book is sold a receipt is emailed by the salesman to the customer.
- the salesman can resend a receipt only, not update or remove and can only view receipts they have submitted
- managers need to be able to see ALL receipts that have been sent by all users.
What is the best practice for relating the salesman to their receipts? Do I add the receipts as a child of the user document? Or insert a new document in the receipt collection adding the salesman’s user id?
I’m using autoform if that makes any difference. Just starting out it seems to make a difference to me because getting into document children seems a little intimidating in regards to autoform.