diff --git a/json/discount_detail_list.json b/json/discount_detail_list.json index 491d39b..020267b 100644 --- a/json/discount_detail_list.json +++ b/json/discount_detail_list.json @@ -11,30 +11,7 @@ "exclouded": [ "id", "resellerid" - ], - "alters": { - "discountid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=discount&table=discount&tblvalue=id&tbltext=name&valueField=discountid&textField=discountid_text", - "datamethod": "GET", - "valueField": "discountid", - "textField": "discountid_text" - }, - "prodtypeid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=product_management&table=prodtype&tblvalue=id&tbltext=name&valueField=prodtypeid&textField=prodtypeid_text", - "datamethod": "GET", - "valueField": "prodtypeid", - "textField": "prodtypeid_text" - }, - "productid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=product_management&table=product&tblvalue=id&tbltext=name&valueField=productid&textField=productid_text", - "datamethod": "GET", - "valueField": "productid", - "textField": "productid_text" - } - } + ] }, "editexclouded": [ "id", diff --git a/models/discount_detail.json b/models/discount_detail.json index 2693cf6..f099dcc 100644 --- a/models/discount_detail.json +++ b/models/discount_detail.json @@ -74,6 +74,18 @@ "table": "organization", "valuefield": "id", "textfield": "orgname" + }, + { + "field": "prodtypeid", + "table": "prodtype", + "valuefield": "id", + "textfield": "name" + }, + { + "field": "productid", + "table": "product", + "valuefield": "id", + "textfield": "name" } ] }