通过订单 number 找到邮寄号码
作者: moonsoft(http://moonsoft.itpub.net)发表于: 2006.07.20 23:44
分类: 分销
出处: http://moonsoft.itpub.net/post/15182/152565
---------------------------------------------------------------
select wda.delivery_id,ol.shipment_number , ol.unit_cost,ol.*-- delivery_id 邮寄号码 :80514
from
oe_order_headers_all oh,
oe_order_lines_all ol,
wsh_delivery_assignments wda,
wsh_delivery_details wdd
where
oh.header_id=ol.header_id
and
ol.line_id=wdd.source_line_id
and wdd.delivery_detail_id=wda.delivery_detail_id
and oh.order_number=1206400049


