Invoices are a legal statement for tax deduction in our country.
We need these values to generate and print invoices:
- Next Invoice Number
- Authorization Number
- Expiration Date
These three values impose 3 different problems that we are not sure how to solve with SambaPOS yet:
- Next Invoice Number should increase every time we issue an invoice (once the invoice is printed)
- Authorization Number is fixed and should be displayed in the invoice
- Expiration Date should be checked daily. When the current date is close to the Expiration Date the manager should be warned about it to collect a new set of these three values from the Tax Office.
Not all tickets will have a corresponding invoice. It would be great if we can filter and search tickets where users did requested an invoice and query these values (at least the Authorization Number and Invoice Number). We already have a button to print an invoice for a ticket when desired.
We have tried to understand the concepts behind Entities, Ticket Tags, Ticket Logs, Actions and Rules to see how we can tackle this problem. We still don’t see how.
So far we believe that we should create an Entity Type Dosage with the three values so that the manager can add a new Dosage Entity every time the last one expires. We also believe that we could add these values to a ticket tag when required.
Can anyone please help us?