[GH-ISSUE #59] Voucher duration in days #28

Closed
opened 2026-05-07 00:17:57 +02:00 by BreizhHardware · 4 comments

Originally created by @dwmayr on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/59

Originally assigned to: @glenndehaan on GitHub.

The feature

Hi,
I'd like to see an option to set default duration - not in minutes, but by days. In some environments it's better than per-minute vouchers :)

Originally created by @dwmayr on GitHub (Jan 20, 2025). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/59 Originally assigned to: @glenndehaan on GitHub. ### The feature Hi, I'd like to see an option to set default duration - not in minutes, but by days. In some environments it's better than per-minute vouchers :)
BreizhHardware 2026-05-07 00:17:58 +02:00
Author
Owner

@aroundmyroom commented on GitHub (Jan 21, 2025):

Uh isn't that available already?

Image

this is what is shown

I have configured that by using:

VOUCHER_TYPES='480,0,,,;1440,1,,,;10080,1,,,;525600,1,,,;'

<!-- gh-comment-id:2604423382 --> @aroundmyroom commented on GitHub (Jan 21, 2025): Uh isn't that available already? ![Image](https://github.com/user-attachments/assets/9b005166-926c-4545-aa9a-7c428ee27516) this is what is shown I have configured that by using: VOUCHER_TYPES='480,0,,,;1440,1,,,;10080,1,,,;525600,1,,,;'
Author
Owner

@dwmayr commented on GitHub (Jan 21, 2025):

I mean when you go to custom:
Then you can specify duration, but you can specify it only in minutes.
Image

And I'd like to see an option to specify it in days (so you don't have to type: 14400 for 10 day voucher :))

<!-- gh-comment-id:2604447548 --> @dwmayr commented on GitHub (Jan 21, 2025): I mean when you go to custom: Then you can specify duration, but you can specify it only in minutes. ![Image](https://github.com/user-attachments/assets/2892efd9-e100-4102-81ab-d5e927212e9c) And I'd like to see an option to specify it in days (so you don't have to type: 14400 for 10 day voucher :))
Author
Owner

@aroundmyroom commented on GitHub (Jan 21, 2025):

Ok, clear.
I would opt to create some extra pre-defined based on what is common, But if needed: than another pull down option should be present

Image

Like in the controller.

<!-- gh-comment-id:2604462106 --> @aroundmyroom commented on GitHub (Jan 21, 2025): Ok, clear. I would opt to create some extra pre-defined based on what is common, But if needed: than another pull down option should be present ![Image](https://github.com/user-attachments/assets/cc1018c2-2f55-4aa7-9535-94ca62be8cc8) Like in the controller.
Author
Owner

@glenndehaan commented on GitHub (Jan 21, 2025):

Hi @dwmayr,

I have just released version 4.7.0 that improves the custom voucher creation with an additional dropdown:

Image

<!-- gh-comment-id:2605238770 --> @glenndehaan commented on GitHub (Jan 21, 2025): Hi @dwmayr, I have just released version 4.7.0 that improves the custom voucher creation with an additional dropdown: ![Image](https://github.com/user-attachments/assets/bbecce5a-ce6a-40b2-9b45-adafa8f0d2e8)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#28
No description provided.