Skip to content

[Feature] Add "Quantity" as an addable option #8

@DoktorShift

Description

@DoktorShift

Is your feature request related to a problem? Please describe.

Right now the extension behave options to trigger the device restricted by

  1. Opening time
  2. payable x times during the last 24 hours

Describe the solution you'd like

One more option to allow triggering by a quantity check would allow a few more usecases.

I would like it to be possible to specify the quantity of availability for each product/machine. That way, it can no longer be triggered if the product is sold out.

This would allow or improve the "misuse" of the extension, e.g. for the use of vending machines.

This is my solution

Add a "optional int" value field to specify the quantity during configuration/editing of the device.

quantity

Additional context

  1. If the field is empty do not consider this option.
  2. If value 0 give back sold out
  3. if value <1 allow create invoice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions