跳至内容
菜单
此问题已终结
4204 查看

I have a JasperReport report of the sales document. I want to print "inclusive" if the price of the detail line is zero. For that purpose I put a static text field and in the print when expression :

$F{Unit_Price-price_unit}.equals(0.0)

$F{Unit_Price-price_unit} is the unit price report field ( it prints fine on the detail lines).

If I do the reverse

!$F{Unit_Price-price_unit}.equals(0.0)

the static text get printed on lines with a price != 0.

But in both cases the static text is never printed on the line where the price is zero.

形象
丢弃
相关帖文 回复 查看 活动
1
12月 17
14051
2
12月 23
23160
1
3月 15
6677
1
3月 15
4545
2
1月 24
14092