gplsek / fitmoostore

fitmostore
GNU General Public License v2.0
0 stars 0 forks source link

Calculate Net Profit for Seller #11

Closed gplsek closed 10 years ago

gplsek commented 10 years ago

Calculate profit for seller (use issue #1 as example) Seller gets 80% of total Buyer get 5% back in credits Fitmoo gets 15%

jg77merten commented 10 years ago

==========SCORE========== POST http://fitmoostore.loc/fit_store/score Cookie: SESSb22f1e1c07a26da425a441410bf4eb41=YCPUSAaAC49C0i3ehSOdEMfDxiP_DK08FFUwlSQbnIk X-CSRF-Token: -vpEiEtaUz7YmhzMnu1NvXRHOprODH5W53ZiVjtjReE Content-Type: application/json { "group": "orderID", <- group by field "type": "seller", <- type of the lines (seller buyer fitmoo) "status": "pending", <-status of the line "from": "1396053684", <- timestamp from "till": "1396054178" <- timestamp till "uid": "1" <- user_id (work only if you admin, else gets logged user's uid)

"orderID" : (int)"order_id_num", "productID" : (int)"product_id_num", }

all fields are optional -- response --

[{"ammount":"20","type":"seller","orderID":"43","productID":"1115"},{"ammount":"0.1599999964237213","type":"seller","orderID":"44","productID":"124"}]