Print Unused Voucher
-
Under Status: Captive portal: Voucher Rolls: Zone there's a lot of unused vouchers although actual inventory says there's already none left. We could create a function to expire them all, or just print these unused vouchers again.
We can add a column like this:
[" width="17" height="17" border="0" alt="" />](services_captiveportal_vouchers_print.php?zone=<?=$cpzone;?>&id=<?=$i; ?>&stats=true)
And something like this added to services_captiveportal_vouchers_print.php:
if ($unused == 'true') { foreach ($sizes as $k => $v) { if (getvalidity($v) <> 'Expired'){ echo "{$v} ".getvalidity($v).""; $i++;
See attachment image, or visit this blog

