销售订单-修改量-高级定价关联sql

本文探讨了销售订单在修改量方面的详细情况,结合高级定价策略,通过SQL进行深入的数据关联分析,旨在理解和优化业务流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

修改量消耗明细

--修改量消耗明细
SELECT t.name,
       t.comments,
       t.version_no,
       cux_rebate_pub.get_hou_name(p_organization_id => t.orig_org_id) org_name,
       ac.customer_name,
       --ql.amount "限额",
       -- qlb.limit_balance_id,
       qlb.consumed_amount  "总消耗",
       qlb.available_amount "总可用",
       --qlt.creation_date,
       qlt.price_request_code,
       substr(qlt.price_request_code, 5, 6) header_id,
       substr(qlt.price_request_code, 12, 6) line_id,
       qlt.amount "本次消耗",
       hou.name org_name,
       ooh.order_number,
       
       type.name order_type,
       type.description type_desc,
       b.segment1 || '.' || b.segment2 item_code,
       b.description item_desc,
       decode(ool.line_category_code,
              'ORDER',
              ool.ordered_quantity,
              'RETURN',
              -1 * ool.ordered_quantity,
              ool.ordered_quantity) ordered_quantity
  FROM qp_list_headers_all    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值