Views

tm.voucher

1min
a voucher gives right to something, e g a free ticket or a reduction fields field type description id int unique id typeid int type id name mlstring name of the voucher description mlstring description of the voucher validity vouchervalidity definition of the validity of this voucher depends on the typeid paymentmethodid int paymentmethod to use when creating payments for vouchers of type payment this field is required when a payment voucher is created the paymentmethod that is referred to should be of a voucher type nbrofcodes int the number of codes that were created for this voucher codeformatid int format used when generating codes for the voucher possible values 27001 12 digits 27002 16 digits 27003 8 alphanumerical characters 27004 12 alphanumerical characters 27005 16 alphanumerical characters 27099 specified from list, not autogenerated codeprefix string if set, the codes that are generated are padded with this prefix this can be used to ensure that vouchercodes are unique the prefix can be max 10 characters long ordervalidationscript string a validation script that is used for vouchers of type order for each order with a voucher of this type attached, the script will be run to validate the contents createdts timestamp created timestamp lastupdatets timestamp last updated timestamp isarchived bool whether or not this item is archived