折扣精确到 product_id(discount_detail.productid),三类折扣取最优惠(min): - 客户折扣 get_min_product_discount(pid, resellerid, customerid) - 分销商折扣 get_min_distributor_discount(pid, resellerid, distributorid) - 供应商折扣 get_min_supplier_discount(pid, resellerid, supplierid) resellerid=product.org_id, supplierid=product.providerid, distributorid 从 discount_customer_bind 按 customerid 查。
19 lines
1.0 KiB
XML
19 lines
1.0 KiB
XML
{
|
|
"widgettype": "Menu",
|
|
"options": {
|
|
"target": "PopupWindow",
|
|
"popup_options": {"archor": "cc", "width": "70%", "height": "70%"},
|
|
"cwidth": 10,
|
|
"items": [
|
|
{% if get_user() %}
|
|
{"name": "category", "label": "产品类别管理", "url": "{{entire_url('/product_management/product_category')}}"},
|
|
{"name": "product", "label": "产品管理", "url": "{{entire_url('/product_management/product')}}"},
|
|
{"name": "resource", "label": "产品资源绑定", "url": "{{entire_url('/product_management/product_resource')}}"},
|
|
{"name": "supplier", "label": "资源供应商关联", "url": "{{entire_url('/product_management/product_resource_supplier')}}"},
|
|
{"name": "subscription", "label": "客户订购管理", "url": "{{entire_url('/product_management/product_subscription')}}"},
|
|
{"name": "usage", "label": "产品消费记录", "url": "{{entire_url('/product_management/product_usage_log')}}"},
|
|
{% endif %}
|
|
]
|
|
}
|
|
}
|