Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3946 Zobrazení

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 17
13759
2
pro 23
22756
1
bře 15
6417
1
bře 15
4300
2
led 24
13780