我试图获得一个摘要输出,该输出显示基于具有不同CwaOrderType的Product的数据。
<?for-each-group:OrderEntry-LineItems[../../CwaChannel='Customer Portal' and ../../Status='Submitted'];Product?>
<?Product?>
<?if:CwaOrderType='PRS Sales'?>
<?count(current-group()/.)?>
<?sum(current-group()/CwaLineTotalAmount2)?>
<?end if?>
<?if:CwaOrderType='PRS Switching'?>
<?count(current-group()/.)?>
<?sum(current-group()/CwaSwitchOutUnits)?>
<?end if?>
<?end for-each-group?>
但是,它会将输出返回空白。如果我删除了if条件,它可以工作但是不准确。你们中的任何一个人能告诉我缺少什么吗?