forked from KamalKaur/kirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
executable file
·141 lines (117 loc) · 5.86 KB
/
todo.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
###################################################
#-----------------Kirt Stack ToDo-----------------#
###################################################
Page 1:
- ** CSS
- Login using only password
Page 2:
- ** Check calculations once again
- * Display the other values after calculating like balance amount,
previous month advance etc in separate columns. -> Can be tough, how to
subtract, what's paid, what's total amount? What' advance? Or so?
For previous months?
- How to start working on it the first time without previous month values?
- Shift JS to separate file
- Show the workers only which are working at that time
- Generate pay slip.
- Update views to validate data :)
- Initial value should not be 0 but null
Thead ?
- http://bl.ocks.org/crstn/3819758
- http://jsbin.com/zurado/1/edit?html,output
- https://gist.github.com/i-scorpion/2948136
Modal:
- http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=activate-modals-via-data-attribute
Page 3:
- Date picker
- Prints, PDFs (PaySlips, Employee list, Employee info, Salary Sheet etc.)
Common:
- Text decoration none? :P
- Sessions
- Run on windows
- Will it run without internet?
- Don't show django error pages.
- Unit tests: https://docs.djangoproject.com/en/dev/topics/testing/
- http://nvie.com/posts/a-successful-git-branching-model/
- rename my branch: http://nvie.com/posts/a-successful-git-branching-model/
- Improve templates https://code.djangoproject.com/ticket/4565
- CDN: http://bootstrapcdn.com/
###################################################
#-----------------Kirt Stack Done-----------------#
###################################################
Page 2
- Delete a worker
- Improve Popup
- CSS: Don't show the fields literally as form fields.
- Days and OT fields are working.
- User can update the previous values for Paid salary and Monthly attendance.
- Only this month values are editable as it checks if current month values
doens't exist, then add a new row (except advance)
- All the previous month values can only be edited by the admin.
- Different popup for all workers.
- Show the Foreign Key value not as a MultiChoice field.
- Show previous advances of current worker while adding more.
- For advance, add new row and update the total for this month.
- @login required
- Refresh the fields after adding new advance.
- Rounding off!
- Success message, repetition for all columns.
- Search form modify
Page 3
- Show all the details(after calculating everything) of particular
worker, for this month.
- CSS: Show as detailed list
Common:
- Validations
- Text in the center of input fields
- Created the tables, separate for the employee basic details.
- Separate table for advance so that if some employee is given advance more than
one time in a month, enteries can be differentiated if needed. At first, we'll display
only sum but details can be shown on click.
- Separate table for attendance connected with WorkerDetails so that there is no
redundancy for worker details and easy to fetch the values.
- Separate table for Paid amount so that the respective values can be summed up
to show full paid amount in a month out of total salary. Its different than that
of advance.
- Balance amount(something not paid out of the total salary) for a month is to
be saved in a different table. It will be saved here after Paid amount is added.
The total amount and paid amount subtracted makes balance amount.
- Rest of the calculated values will be saved in separate table which needed to be
shown if required, in WageDescription table. Here are the alues that are used to
calculate the salary but are shown to user only in employee profile.
- Look for extra code and remove it.
- Don't include base.html in login.html
------------------------FORMS AND VIEWS--------------------
- Cancelled: Had to submit data into tables directly as the models are defined, ModelForms
are used directly. In which From first form, Foreign key value is copied to other
tables using commit = false, we can edit the values as we want and then save them.
Have ignored that field and doesn't appear to the user.
- Custom HTML forms are generated which saves data through AJAX. Yet into the same thing.
- Views are used to save, update the form data.
------------------------TEMPLATE---------------------------
- Solved: Firstly the single form was shown, to copy ForeignKey value to other Forms and
save but now for loop is user that gives same name to all fields in all forms and
it considers only the last form. So here is the problem till now.
- Using one form for Page 2 and one for adding new worker.
------------------------OLD---------------------------
- Make the look proper with single time column name and respetive fields under
it.
- Hide field names from every field and display once instead, either manualy or from DB.
- Why Date is repeated? What to do with it? :P Editable as well as today?
- What will happen to the ForeignKey attribute?
- Get the foreign key value from DB only.
- Save all the forms but yet only last form is being considered.
- How to display, edit and save multiple forms.
- Display the values which are already entered in the Attendance, Paid and Advance fields.
------------------------CONFUSIONS---------------------------
- Date field should be editable or not? It will be kept default for this version.
- Use ModelForms or direct forms? Earlier the default behaviour was lost? So what?
Can keep the model behaviour but ModelForms are not to be used.
- Use formsets or forms actually -> HTML forms for all the customization we need.
- Doing calculations? Need to save? Or only calculate right then?
- Using id or class for CSS or JS?
- Which JS, jQuery files to be included and in what order?
- Search for any month and year's records as "View only".
- In history, only show the clients that existed that time.
- Search with name as well.
- PaySlip with all the details as on Page 3. Already there? Particulars, right?