Jump to content
Changes to the Jaspersoft community edition download ×

How to change this java language into ireport expression?


Recommended Posts

        boolean isExistTax = false;
        BigDecimal debit = new BigDecimal(0);
        BigDecimal credit = new BigDecimal(0);
        int cntA = 2;
        for(int cnt2vec=0;cnt2vec<cmObj.vecItems.size();cnt2vec++)
            CreditMemoItemObject cmiObj = (CreditMemoItemObject) cmObj.vecItems.get(cnt2vec);
            if (cmiObj.glCodeDebit.equals("inventory"))
            else if (cmiObj.glCodeCredit.equals("inventoryCost"))
            else if (cmiObj.glCodeCredit.equals(glCode1) || cmiObj.glCodeDebit.equals(glCode1))
                isExistTax = true;
                    debit = debit.add(cmiObj.amount);
                else if(cmiObj.amount.signum()<0)
                    credit = credit.add(cmiObj.amount);

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...