简体   繁体   English

水晶报表-如何不求和抑制字段

[英]Crystal report-how to not sum suppressed field

I got a invoice that need to suppress the data if the item-code is not match my suppress condition, then I have to do a running total on the line total! 如果项目代码与我的禁止条件不匹配,我有一张需要取消数据的发票,那么我必须在行总计上进行累计!

I don't know what is the formula to sum only the field where suppressed is false. 我不知道仅对被抑制为假的字段求和的公式是什么。

My current formula is below, I wonder can I "If the LineTotal is not suppressed, then sum the linetotal else 0" 我当前的公式如下,我想知道“如果未抑制LineTotal,则将linetotal总计为0”

IF {OITM.ItmsGrpCod} = 112 then
   sum ({INV1.LineTotal})
else 0

This my invoice, because this is the Haulage Copy, so we don't want show them the item price of each item. 这是我的发票,因为这是运输副本,因此我们不想向他们显示每件商品的价格。

Best way to achive this requirement is to: 达到此要求的最佳方法是:

Create the running total for all `item - code' and write a supress condition for the section to supress the code which doesn't need to display. 为所有“项目-代码”创建运行总计,并为该部分写一个限制条件以限制不需要显示的代码。

your idea of summing only if not supressed will complicate the report , So try the way suggested your idea of summing only if not supressed will complicate the report ,因此请尝试建议的方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM