-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidationNotes.txt
32 lines (25 loc) · 1005 Bytes
/
validationNotes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This file contains notes on form validations needed for the
'Add a Package' form component.
These validations allow user inputs to align with data types defined on the
PostgreSQL database schema for these form fields:
'Customer'
Data Type: pre-defined by drop menu
Validation: NOT NULL
'Widget'
Data Type: pre-defined by drop menu
Validation: NOT NULL
'Packaging'
Data Type: pre-defined by drop menu
Validation: NOT NULL
'Qty in Pkg'
Data Type: SMALLINT
Range: An integer in the inclusive range -32,768 to 32,767
Validation: The input validates as isInteger && >= -32,768 && <= 32,767
'Price'
Data Type: NUMERIC(8,2)
Range: A real number <= 999999.99
Validation: User can only enter nearest whole dollar amount
The input validates as isInteger && <= 999999
'Pkg = Customer + Widget + Packaging + Qty in Pkg + Price'
Data Type: None
Validation: The input package (all fields) does not already exist