[Flask] Simple ERP for a farm.
1
# -*- mode: python; -*-
2
3
4
from flask_wtf import FlaskForm
5
from wtforms import (
6
SubmitField,
7
SelectField,
8
HiddenField,
9
StringField,
10
PasswordField,
11
IntegerField,
12
FloatField,
13
BooleanField,
14
DateTimeField,
15
)
16
from wtforms.validators import InputRequired, Length, NumberRange
17
18
19
classAddCustomer(FlaskForm):
20
name = ("Customer name",validators=[()])
21
name_alternative = ("Alternative name")
22
# date_time_created = DateTimeField("Creation date")
23
code_customer = ("Customer code")
24
code_accounting = ("Accounting code")
25
address = ("Address")
26
postal_code = ("Postal Code")
27
city = ("City")
28
country = ("Country")
29
phone = ("Phone")
30
website = ("Website")
31
email = ("E-mail")
32
professional_id_1 = ("Professional ID 1")
33
professional_id_2 = ("Professional ID 2")
34
tax_id = ("Tax ID")
35
payment_terms = ("Payment Terms",default="Tu vas payer sale chien!")
36
submit = ("Add/Update Product")
37