Odoo Help

Welcome!

This community 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.

0

JasperReports won't evaluate null nor 0

v6
By
peterm
on 2/21/13, 10:49 AM 580 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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