毛利润报表--单项详情

接口地址:/shop/gpdetail
get方式
参数及格式如下:
phone:用户登录时的手机号
shop_id:门店id
item_id:该项条目的id
type:1-5分别对应‘课程’,‘私教’,‘会员’,‘商品售卖’,‘其他’。
返回格式:
Last updated
Was this helpful?

phone:用户登录时的手机号
shop_id:门店id
item_id:该项条目的id
type:1-5分别对应‘课程’,‘私教’,‘会员’,‘商品售卖’,‘其他’。
Last updated
Was this helpful?
Was this helpful?
若请求成功msg返回success;否则msg为相应报错信息
type=1时
{
"code": 1,
"data": {
"gross_income": 5000,
"amount": 12,
"discount": 1523.25,
"teacher_salary": "-1500.00(12.14%)",
"ts_detail": "车容(50元*4小时)",
"material_fee": "-800(6.47%)",
"mf_detail": "榉木料(10),砂纸(10)",
"tool_rent": "0.00(0.00%)",
"tool_detail": "木工刀(10把)",
~~删除开始
"no_sign": "-1000(9.87%)",
"ns_detail": "未签到2个" ~~删除结束
},
"msg": "success"
}
-------------------------
type=2时
{
"code": 1,
"data": {
"gross_income": 800,
"discount": 20,
"private_teacher_salary": "-300.00(12.14%)",
"material_fee": "0.00(0.00%)",
"mf_detail": "榉木料(10)"
},
"msg": "success"
}
-------------------------
type=3时
{
"code": 1,
"data": {
"price": 5998.00,
"discount": 200,
"insurance_fee": "-300.00(12.14%)"
},
"msg": "success"
}
-------------------------
type=4时
{
"code": 1,
"data": {
"all_income": 5000,
"discount": 120,
"amount": 20,
"all_cost": "-3800.00(76.00%)"
},
"msg": "success"
}
-------------------------
type=5时
{
"code": 1,
"data": {
"member_type": "基础会员 节假日 年卡",
"transfer_fee": 50,
(当为会员转让时返回上面这两个字段;当为课程退款时返回下面的字段)
"title": "设备教学课程",
"schedule": "2018-02-23 19:30-20:30",
"order_num": 100,
"refund_num": -50,
"refund_fee": 50
},
"msg": "success"
}