diff options
author | Marius Peter <marius.peter@tutanota.com> | 2022-07-03 20:21:02 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2022-07-03 20:21:02 +0200 |
commit | eba4c1a3113d24319bccc5c52d4d93838334bd31 (patch) | |
tree | fe95881d42a0b4191a9371f82eaf66b9390af047 /app/modules/forms.py | |
parent | 5160b8a3ac9fc27c2b31206aed735a15de0099e9 (diff) |
db now in models; modules.
Diffstat (limited to 'app/modules/forms.py')
-rw-r--r-- | app/modules/forms.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/modules/forms.py b/app/modules/forms.py index 7e4acde..001557a 100644 --- a/app/modules/forms.py +++ b/app/modules/forms.py @@ -9,3 +9,22 @@ from .customers.forms import AddCustomer from .ferti.forms import AddFertiLog, AddFertiTarget from .invoices.forms import AddInvoice from .products.forms import AddProduct + + +# class AddUser(FlaskForm): +# customer_id = SelectField("Customer", choices=[]) +# invoice_id_alt = StringField("Alternative invoice ID") +# customer_reference = StringField("Customer reference") +# date_billed = DateField('Date billed', format='%Y-%m-%d') +# date_due = DateField('Date due', format='%Y-%m-%d') +# amount_net = FloatField("Amount without tax", default=0) +# amount_gross = FloatField("Amount with tax", default=0) +# amount_tax = FloatField("Amount of tax", default=0) +# submit = SubmitField("Add Invoice") + +# def __init__(self, **kwargs): +# super().__init__() +# self.customer_id.choices = [ +# (cus.primary_key, cus.name) for cus in Customer.query.all() +# ] + |