-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDESIGN
101 lines (78 loc) · 3.07 KB
/
DESIGN
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Abstract:
Create an inventory system that allows for synchronization between users.
Two systems are in mind.
One is for the users, they will have a dashboard which congregates all the useful info. They will be able to link themselves to orders, be able to post about orders or alert another user to an order. Messaging between users would be great.
Two is the inventory system. It will catogorize invoice objects into relevant data and organize it. It must be searchable and decently fast. Most of the data on the website will be taken from the database. Can start off using cl-conspack since it shouldn't affect much til then.
Implementation:
One user will be the root user who can access all orders with full permissions. Examples include
- Committing an order as completed
- Assigning orders to users
- Assigning batches of pictures that need to be written up
- Reviewing orders that have been checked in
- Printing
Non-root users will be able to:
- Search the database for all order information
- Receive requests to write orders
- Check in orders
- Messaging other users
- Printing
Steps that need to be accomplished:
- Get users and user datastructures defined
- Write a homepage and work towards a dashboard
- Get invoices and item data structures defined
- Try to abstract latex generation
- Work on getting an Iframe for checking pdf's without leaving the page
- Work on dynamic pages for typing up orders
Data Structures for invoices:
show (object)
contact-name -> string
phone-number -> string
order-amount -> int
list-of-invoices -> listof invoice objects
name -> string
invoice (object)
id-number -> int
set-name -> string
date-out -> int
show-name -> string
contact-name -> string
check-in-accounting -> listof check-in objects
item-list -> listof item objects
pdf-location -> pathname pdf
check-in (object)
date -> int
invoice-refer -> invoice (object)
checked-by -> string
show-name -> show (object)
checks -> listof item objects
item (object)
price -> int
quantity -> int
description -> string
invoices-on -> listof invoice names/ids
shows-on -> listof show names/ids
user (object)
name -> string
rank -> or/c root user
shows-checked -> listof show names/ids
invoice-history -> listof invoice names/ids
points -> int
messages -> listof message objects
status -> string
message (object)
sender -> user name
recipient -> listof user names
date -> int
content -> string
reply -> message (object)
read -> boolean
read-on -> int
private -> boolean
connect-to-show-or-invoice -> boolean
show-name -> show id/name
invoice-name -> invoice id/name
item-name -> listof item objects
dashboard (object)
posts -> listof message
current-date -> int
Later datastructures will need to be defined for Latex abstraction.