Wednesday, March 13, 2019

Custom voucher or tickets

Semi automatic custom voucher or tickets that I use for pfSense Captive portal.

This is how I format list data in Scribus using ScribusGenerator script.
The script can be used for any type of batch import to Scribus and there is a video on how to do that over here
https://youtu.be/kMsRn38TOiQ
I find these vouchers a bit more appealing then the plain tickets I see from label printer scripts, but may not be all that practical if you need large volumes and plan to cut them yourself.
For starters I exported the data from pfSense and formatted the CSV with one column per voucher and one row per page like below:

 
 
 
code1,code2,code3,code4,code5,code6,code7,code8
ac28M,d68VE5,YyviK4,JwBiA3,uFki25, BFSiB4,7HpiV,edipC5
evi5s3,DyDib3,ZwiMs4,zkit63,fLbit3,FbiCm4,4Chic,Zvqic3
KM4Xb4,rdv4N,u4q4R,ZuYjF5,xCkuM5,AuVAE5,Li8Vt,Ytiwr5
7u2j33,Lj5Lf3,iZjds5,BejPJ,Z4j6J,ve7jA5,nbhr54,hNhdW4
7ru4x,5Wunp,a8xum4,FeYuB,idurN4,S4hVY3,EZhdd4,LahaU4



 
 
 
The numbers of columns (code1, code2, etc.)
corresponds to the number of different vouchers you print on each page.

The number of rows determine how many pages you get.  
”code1” etc. corresponds to the text that will be replaced in the Scribus document ”%VAR_code1%” etc.

In the voucher design you type
%VAR_corresponding column header%
in the same position, font, colour and size you like the final code to be.
 
 
 
 For the actual ticket you can design
anything you fancy.
 
One good practice can be to add a
best before date or a valid until date.
That way you can delete old rolls even if
there are unused vouchers hiding somewhere.
 
 
 
 
 
 

No comments:

Blog Archive