Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3931 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 17
13733
2
thg 12 23
22720
1
thg 3 15
6393
1
thg 3 15
4273
2
thg 1 24
13746