Version 8, last updated by softix at Aug 24 00:01 2008 UTC
3 Data Requirements
[Hung]
3.1 Order Form
3.1.1 The order form contains 2 parts: customer information and content information.
3.1.2 Each completed order form must have a uniquely payment code for further reference.
3.1.3 Payment code is a string of 6 characters containing only digits and upper case characters (A-Z).
3.1.4 The first 2 characters are digits representing year, the second two represent month for easy checking in the future.
3.2 Customer Data
3.2.1 The following data must be recorded for each customer:
(a) Customer name
(b) Customer address
(c) Customer contact number
(d) Customer ID
(e) Order's payment code
3.2.2 The Customer name and Customer address are a string.
3.2.3 The Customer contact information is a string of valid address (after being checked by the system).
3.2.4 The Customer contact number must be a string of 8 digits.
3.2.5 The Customer ID is a string of 9 characters. The first and the last is letters while the others are digits.
3.2.6 The Order's payment code must be a string whose format has already been stated above. This links the customer to the order(s) he made.
3.3 Order Data
3.3.1 The following data must be recorded for each order:
(a) Payment code
(b) Total number of items
(c) Item's description
(d) Each item's number
(e) Date for delivery
(f) Location for delivery
3.3.2 The Payment code has format as stated above.
3.3.3 The Total number of items is an integer not less than zero.
3.3.4 The Item's description must be a string of not more than 100 characters.
3.3.5 The each Item's number is an integer greater than zero but less than total number of items.
3.3.6 The Date for delivery is a string of 12 digits interpreted as YYYYMMDDhhmm, where YYYY is an integer of four-digit, MM is an integer of two-digit from 01 to 12, DD is an integer of two-digit from 01 to 31, hh is an integer of two-digit from 00 to 23, and mm is an integer of two-digit from 00 to 59.
3.3.7 The Location for delivery is a string which contains street name, city or region, building number, and postal code.
3.4 Driver Data
3.4.1 The following data must be recorded for each order:
(a) Driver ID
(b) Current location
(c) Number of orders processing
(d) Order's payment code
3.4.2 The Driver ID is the unique number representing the driver.
3.4.3 The Current location is a string of valid location after confirmation.
3.4.4 The Number of orders processing is an integer not less than zero stating how many orders the driver is delivering.
3.4.5 The payment code is stated as above.
3.5 System Parameter
3.5.1 System parameter include the following items:
(a) Current time
(b) Total number of order
(c) Total payment
(d) Fleet size
3.5.2 The current time is recorded on the server and can't be changed. It consists of both current date and time.
3.5.2.1 The current date content of year, month and day.
3.5.2.2 The current time must be a 24-hour format in the range 0000 to 2359
3.5.3 The Total number of orders consists of total number of orders waiting to be processed, processed successfully, processing, failed to finish and total number of orders as a whole in the period of month and year.
3.5.4 The Total payment consists of total value of all orders, amount received (claimed from the bank issuing the credit/debit card), amount is being processing.
3.5.5 The Fleet size is an integer stating the number of driver currently working in the fleet.
3.6 Failure log
3.6.1 Failure log display the following data:
(a) Failure type.
(b) Failure date and time.
3.6.2 The failure type is a character identifying whether it is login error or database error.
3.6.3 The failure date and time is the string of format YYYYMMDDhhmm
[Jefry]