* fixed empty array bug
simplify code
* add func getCommission()
update order detail view
* try new algorithm