mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:54:17 -04:00
Implemented missing unifiSsid check for PDF exports
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
/**
|
||||
* Import own modules
|
||||
*/
|
||||
const variables = require('../modules/variables');
|
||||
|
||||
/**
|
||||
* Util function to calculate paper size based on voucher data
|
||||
*/
|
||||
module.exports = (voucher) => {
|
||||
let base = 375;
|
||||
let base = variables.unifiSsid !== '' ? 375 : 260;
|
||||
|
||||
if(voucher.qos_usage_quota) {
|
||||
base += 10;
|
||||
|
||||
Reference in New Issue
Block a user