You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2020/01/10 11:33:00 UTC

[jira] [Assigned] (OFBIZ-11316) Bug when order contains adjustments with NULL amount

     [ https://issues.apache.org/jira/browse/OFBIZ-11316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-11316:
---------------------------------------

    Assignee: Jacques Le Roux

> Bug when order contains adjustments with NULL amount
> ----------------------------------------------------
>
>                 Key: OFBIZ-11316
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11316
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Trunk
>            Reporter: Amine Azzi
>            Assignee: Jacques Le Roux
>            Priority: Major
>
> On org/apache/ofbiz/accounting/invoice/InvoiceServices.java:561.
> The condition evaluation gives an error when the adjustment has a null amount even when isTaxIncludedInPrice is FALSE.
>  
> The condition should be re-written to
>  
> if (isTaxIncludedInPrice && (adj.getBigDecimal("amount").signum() == 0))



--
This message was sent by Atlassian Jira
(v8.3.4#803005)