discount 表无 discount 字段(值在 discount_detail 表)。原 select d.id, d.discount 导致 reseller 级通用折扣(customerid=NULL)查询永远报 Unknown column 错误, 被上层 try/except 兜住后 fallback 到 1.0,通用折扣形同虚设。
40 lines
901 B
JSON
40 lines
901 B
JSON
{
|
|
"tblname": "discount",
|
|
"title": "折扣管理",
|
|
"params": {
|
|
"sortby": [
|
|
"enabled_date desc"
|
|
],
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id",
|
|
"resellerid"
|
|
],
|
|
"alters": {
|
|
"customerid": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_customer_list.dspy')}}",
|
|
"datamethod": "GET"
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": [
|
|
"id",
|
|
"resellerid"
|
|
],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/discount_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/discount_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/discount_delete.dspy')}}"
|
|
},
|
|
"logined_userorgid": "resellerid",
|
|
"subtables": [
|
|
{
|
|
"field": "discountid",
|
|
"title": "设置产品折扣",
|
|
"subtable": "discount_setting"
|
|
}
|
|
]
|
|
}
|
|
}
|