Answers.Body: <p>Create a new custom field set, make sure you select the ‘Does this Custom Field Set allow multiple records?’ option.
  Make sure the display style is ‘Tab with table -</p>
  <p><a href="https://i.sstatic.net/owyD2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/owyD2.png" alt="Custom Data" /></a></p>
  <p>Create the desired custom fields and the data will be displayed as below -</p>
  <p><a href="https://i.sstatic.net/bKkJw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bKkJw.png" alt="Voucher Custom Data" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-02T13:40:31.327Z
Answers.Text: Thank you, I've used that solution and it's working great.
  
  One follow-up question: I'm trying to auto-generate the voucher-id in the format contactId-year-auto_increment_number. Based on the field-editing from, I can create a custom PHP hook for that. However there's not a lot of documentation on that.
  
  I'm assuming I need a hook_civicrm_customPre hook to set the field value based on my "algorithm" ? Where do I register those hooks? (I'm using Civi with wordpress)
  
  Thank you!
Answers.UserDisplayName: Flavio C
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-31T15:40:13.893Z
Answers.LastActivityDate: 2023-01-31T15:40:13.893Z
Answers.UserDisplayName: Anil
Body: <p>Our members receive, based on their membership, vouchers for consumption in a restaurant.
  They receive these vouchers yearly it can be anything from a voucher for $50, to multiple $50 vouchers and different amounts too (either fixed or completly individual).</p>
  <p>Each voucher is assigned to a contact, it has a status (open, spent), has a specific amount, an individual number or other id and a issued-on, valid-from, valid-to- and spent-on-date. A contact can have several vouchers.</p>
  <p>The restaurant will collect the vouchers regularly and send them to us for reimbursement (where we'll change the status to spent).</p>
  <p>Is there an easy way to manage these vouchers in CiviCRM?</p>
  <p>Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-31T18:31:00.260Z
Comments.Text: Another approach to consider would be a custom Activity
Comments.UserDisplayName: petednz - fuzion
Tags: <civimember>
Title: Recording membership benefits (specifically vouchers)
ThreadText: # Recording membership benefits (specifically vouchers)
  
  (Asked by: username_0 on 2023-01-30)
  
  Our members receive, based on their membership, vouchers for consumption in a restaurant.
  They receive these vouchers yearly it can be anything from a voucher for $50, to multiple $50 vouchers and different amounts too (either fixed or completly individual).
  
  Each voucher is assigned to a contact, it has a status (open, spent), has a specific amount, an individual number or other id and a issued-on, valid-from, valid-to- and spent-on-date. A contact can have several vouchers.
  
  The restaurant will collect the vouchers regularly and send them to us for reimbursement (where we'll change the status to spent).
  
  Is there an easy way to manage these vouchers in CiviCRM?
  
  Thank you!
  
  **Tags:** civimember
  
  > **Comments:**
  > **username_1**: Another approach to consider would be a custom Activity  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-01-31. Score: 0 | Accepted answer
  
  Create a new custom field set, make sure you select the ‘Does this Custom Field Set allow multiple records?’ option.
  Make sure the display style is ‘Tab with table -
  
  [![Custom Data](https://i.sstatic.net/owyD2.png)](https://i.sstatic.net/owyD2.png)
  
  Create the desired custom fields and the data will be displayed as below -
  
  [![Voucher Custom Data](https://i.sstatic.net/bKkJw.png)](https://i.sstatic.net/bKkJw.png)
  
  > **Comments:**
  > **username_0**: Thank you, I've used that solution and it's working great.  One follow-up question: I'm trying to auto-generate the voucher-id in the format contactId-year-auto_increment_number. Based on the field-editing from, I can create a custom PHP hook for that. However there's not a lot of documentation on that.  I'm assuming I need a hook_civicrm_customPre hook to set the field value based on my "algorithm" ? Where do I register those hooks? (I'm using Civi with wordpress)  Thank you!  
  
  ---
  
  