Le 17/02/2010 12:56, Jacopo Cappellato a écrit :

On Feb 17, 2010, at 12:52 PM, Jacopo Cappellato wrote:

My guess is that the issue is in getInvoiceCurrencyConversionRate

Hmmm.... maybe not.

Jacopo


Jacopo,

Here are more information :

when using pure JUnit tests, it's working great
    public void testTotalInvoice1() throws Exception {
        GenericValue invoice = null;
invoice = delegator.findByPrimaryKey("Invoice", UtilMisc.toMap("invoiceId", 8010));
        BigDecimal total = InvoiceWorker.getInvoiceTotal(invoice);
        assertEquals(new BigDecimal("179.97"), total);
    }

when defining the locale with LC_ALL=C, it's working great.

So it seems that the
<set field="amount" value="323.54" type="BigDecimal"/>
in AutoInvoiceTests.xml is having some difficulties...


--
Erwan de FERRIERES
www.nereide.biz

Reply via email to