|
标准动作修改querAction的SELECT为(select AO_OrderDetail.*,AO_Order.fDate as fDate,AO_Order.fAgreementNO as fAgreementNO,AO_Order.fShortName as fShortName,customSub1.fQuantity as fCgQuantity from AO_OrderDetail AO_OrderDetail optional
join AO_Order AO_Order on AO_Order = AO_OrderDetail.fMainID optional
join (select AO_OrderDetail.fOrderDetailFID as fOrderDetailFID, sum(customSub2.fQuantity) as fQuantity from AO_OrderDetail AO_OrderDetail optional
join AO_Order AO_Order on AO_Order = AO_OrderDetail.fMainID optional
join (select AO_OrderDetail.fOrderDetailFID as fOrderDetailFID, AO_OrderDetail.fQuantity as fQuantity from AO_OrderDetail AO_OrderDetail optional
join AO_Order AO_Order on AO_Order = AO_OrderDetail.fMainID
where AO_Order.fSheetType = '采购订单' )customSub2 on AO_OrderDetail = customSub2.fOrderDetailFID where AO_Order.fSheetType = '销售订单'
group by AO_OrderDetail.fOrderDetailFID) customSub1 on AO_OrderDetail.fOrderDetailFID = customSub1.fOrderDetailFID where AO_Order.fSheetType = '采购合同')
修改完成点测试结果正确。可在页面运行总报错,回标准动作处查看发现上面Select中红色括号没有了,加上保存后再查看SELECT语句发现红色的括号又没有了,求解?在BEX5 3.6中
|
|