Page 1 of 1
UM mass vouchers printed
Posted: Tue Aug 30, 2022 11:40 am
by Saraj
Hello. I’m able to print mass vouchers, but without identifying those vouchers belong to which profile, and belong to which month, also if i create new vouchers, the old vouchers will be included in the printed new vouchers
What criteria should we used in order to print the right vouchers that include:
1- date the vouchers created to avoid print old vouchers.
2- actual profile set as i have three profiles,1 month, 1week, 1day
Like for example
- print only the vouchers i create for date august 30, 2022 and profile 1 month that i set when i create those vouchers
- used same date and profile 1 week and print it and so on
Thanks in advance
Re: UM mass vouchers printed
Posted: Tue Aug 30, 2022 2:53 pm
by Saraj
in old version, I did upgrade to v7.5, as there is no admin portal, Any help about my initial post please?
Re: UM mass vouchers printed
Posted: Tue Aug 30, 2022 4:59 pm
by rextended
Sorry, not because I do not use that feature, but I know than only old v6 usermanager have web interface
Re: UM mass vouchers printed
Posted: Tue Aug 30, 2022 6:13 pm
by Saraj
How to modify below code, to include profile, time vouchers created to sort users to meet my criteria above. Thanks
/user-manager/user/generate-voucher [f] voucher-template=printable_vouchers.html
Re: UM mass vouchers printed
Posted: Thu Sep 01, 2022 4:49 pm
by Saraj
@rextended, hi
/user-manager/user/generate-voucher [f] voucher-template=printable_vouchers.html numbers= [find group=montlyseptemper]
Works fine, but how can i add more criteria to above code to include profile too please?
/user-manager/user/generate-voucher [f] voucher-template=printable_vouchers.html numbers= [find group=montlyseptemper] & [find profile=monthlyseptember]
but return error, appreciate your feedback
Re: UM mass vouchers printed
Posted: Thu Sep 01, 2022 10:25 pm
by rextended
I can't test and can not guarantee anything, but following routeros syntax can be:
/user-manager/user/generate-voucher [f] voucher-template=printable_vouchers.html numbers=[find where group=montlyseptemper and profile=monthlyseptember]
Re: UM mass vouchers printed
Posted: Sat Sep 03, 2022 8:19 pm
by Saraj
Thank you for your kind reply. It’s not intend to work because of profile tag as it’s return error, seems the profile name have different name approach in MT database. Thank you again