Odoo Help

0

JasperReports won't evaluate null nor 0

v6
By
peterm
on 2/21/13, 10:49 AM 768 views

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/21/13, 10:49 AM
Seen: 768 times
Last updated: 3/16/15, 8:10 AM