How do I copy a booking field to an invoice field?
It is possible to use custom fields on booking and/or invoice level. These fields can be used seperate from each other. In some cases you want to copy the content of a booking field tot an invoice field.
Example: you handle meeting room bookings. You ask the user if a PO-number (Purchase Order) is required, which is set as a custom field on booking level. I.e. "Custom 01". After the booking has taken place, your admin is creating an invoice based on that booking. Now the PO-number has to be copied to invoice field "Custom 02".
What do we need to setup?
We make the setup on booking level, so at the source instead of the target.
1. Go to Configuration -> Forms -> Booking form
2. At the source field, click on Advanced.
3. Add a new key/value pari by clicking on "Add parameter".
4. Enter the key in the format "target_invoice_<<FIELDNAME>>"
5. Enter a value of "1". (Note: as long as a value is entered it is fine. An empty value will cause the field to not be saved).
In our example this will be "target_invoice_custom02:. Where "custom02" is the "Custom 02" field.
The key has to be exactly like this. It is the technical name of the field.
Note: one source field can be mapped to multiple targets.