-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtask.txt
143 lines (118 loc) · 4.67 KB
/
task.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
138
139
140
141
142
Pending tasks:
* UI
- try to apply Dashboard in Admin element
* admin-on-rest lib
- datagrid styles={margin: 1em}
- filter unicode value
- add default filter at 1st time
<Filter {...props} filterValues={{"maSP": "AL"}}/>
- remove redundant import package
- after creating, it doesn't browse to List page
- apply built-in login screen from admin-on-rest
- Fix endless spinning Save button after log in
* logical
- fix failed tests
- fix webpack cannot using -p with redux-form 6.2.0
* javascript-boilerplate
- sagas: dispath action
- redux-form
* general
- remove commented code snippet
================================================================================
History:
2016-12-02
ui-setup
- use material ui
- setup webpack for react
- setup to run webpack before debug in vs code
2016-12-03/04
ui-setup
- study react router
- study admin-on-rest
2016-12-05
ui-setup
- setup webpack for @import css, use 'css-raw-loader'
- mongoose: use 'virtual' to alias 'id' from '_id'
- config to display Sanpham table on UI
2016-12-06
ui-setup
- disable auth when config.auth === false
- add Delete action
- group props, increase font size
- use ChipField
2016-12-07
ui-setup
- define style in separate module to use globally
- add KhachHang, SanPhamNhap resource (all crud ops)
2016-12-08
ui-setup
- fix import wrong component (LongTextInput)
- setup heroku
2016-12-09
ui-setup
- refactor code for controller, model, router
2016-12-12
ui-setup
- filtering, paging, sorting
2016-12-19
ui-setup
- tabs
2017-01-03
ui-setup
- setup sign-in/sign-out page (from javascript-boilerplate)
- restructuring layout, put side-menu outside tab
2017-01-07
ux
- upgrade admin-on-rest to 0.7.0
- upgrade admin-on-rest to use NumberField
- row odd/even color
- Datetime as vi-VN locale
- add filter for KhachHang
- add default options in SanPham.js
2017-01-21 -> 2017-01-28
logical business
- install 'cron'
- create 'sanphamtonkhohistory' table and fake data
- create job to backup 'sanphamtonkho' to 'sanphamtonkhohistory' everyday, except Sunday
- add default filters to 'sanphamnhaps'
- create more real data for 'sanphams'
- create data for 'donhangs' by using 'async.serial'
- create data for 'donhangchitiets' by using 'async.waterfall'
- add ui for 'donhangs' and 'donhangchitiets'
2017-01-29 -> 2017-01-30
logical business
- donhangchitiets: default UI filter [maDH]
- donhangs: default UI filter [ngayTaoDH]
- mongoose: use 'populate' to populate ref fields, return ref fields to UI, in order to reduce using ReferenceField
- set autoFocus to 'username' at SignIn form
- use lodash to clone object, to show left menu
2017-01-31 -> 2017-02-02
- upgrade mongoose to 4.8.0
- add default filter and default sort to 'maDH'
- add Edit, Create for 'donhangchitiet'
- donhangchitiets: pre('save'), calculate 'thanhTien' automatically
+ solve issue: how to get sanpham.donGia in model.js
- add validation to 'donhangchitiet' in server-side(soLuongXuat) and client-side(chietKhau, xuatXuLy)
- add Delete button to all 'List's
2017-02-02 -> 2017-02-05
- donhangchitiets: pre('remove'), update 'tongTien' in 'donhangs'
- add Edit, Create for 'donhang'
- refactor maDH to random number, eg. HD2457/01/01/2017
- donhang, post('remove'), remove all related 'donhangchitiet', update 'soLuong' in 'sanphamtonkho'
- calculate thanhToan, duNo, VAT
- create new 'sanphams' postSave -> insert new 'sanphamtonkhos' with soLuong=0
- separate mongoose model and middleware to different files
- update/create 'sanphamnhaps' -> update 'sanphamtonkhos'
+ ex: create: 1500 -> current + 1500
+ ex: update: (1500 -> 1600) -> (current + 100), not (current + 1600)
- add reference-value filter to KhoHang.js
2017-02-06 -> 2017-02-13
- only able remove one 'sanpham' once its 'soLuong' in 'sanphamtonkho' is 0
- fix react-router 'history' by degrade from 3.0.0 to 2.8.1
- delete page, cannot click No
2017-02-25 -> 2017-??
- Restructure project to add dashboard
- Refactor code to add dashboard
- Add redirect event for onClick in BieuDo and QuanLy
- Using Flex to make responsive layout, remove scroll bar
- todo: fix sending double request