Package org.jallinone.accounting.movements.java

Examples of org.jallinone.accounting.movements.java.JournalHeaderWithVatVO.addJournalRow()


        jrVO.setCreditAmountACC06(rowVatVO.getTaxableIncome().setScale(detailFrame.getCurrencyDecimals(),BigDecimal.ROUND_HALF_UP));
      else
        jrVO.setDebitAmountACC06(rowVatVO.getTaxableIncome().setScale(detailFrame.getCurrencyDecimals(),BigDecimal.ROUND_HALF_UP));
      jrVO.setItemYearAcc05ACC06(jhVO.getItemYearACC05());
      jrVO.setDescriptionACC06(rowVatVO.getDescriptionACC06());
      jhVO.addJournalRow(jrVO);

      totalValue = totalValue.add(rowVatVO.getTaxableIncome().setScale(detailFrame.getCurrencyDecimals(),BigDecimal.ROUND_HALF_UP));

      // 2. prepare vat row for the specified register...
      vatVO = new VatRowVO();
View Full Code Here


        jrVO.setCreditAmountACC06(vatValue);
      else
        jrVO.setDebitAmountACC06(vatValue);
      jrVO.setDescriptionACC06("");
      jrVO.setItemYearAcc05ACC06(jhVO.getItemYearACC05());
      jhVO.addJournalRow(jrVO);

      // 4. add total credit/debit value to the accounting item...
      jrVO = new JournalRowVO();
      jrVO.setCompanyCodeSys01ACC06(jhVO.getCompanyCodeSys01ACC05());
      if (jhVO.getAccountCodeTypeACC06().equals(ApplicationConsts.ACCOUNT_TYPE_CUSTOMER)) {
View Full Code Here

        jrVO.setAccountCodeTypeACC06(ApplicationConsts.ACCOUNT_TYPE_SUPPLIER);
        jrVO.setCreditAmountACC06(rowVatVO.getTaxableIncome().add(vatValue).setScale(detailFrame.getCurrencyDecimals(),BigDecimal.ROUND_HALF_UP));
      }
      jrVO.setDescriptionACC06("");
      jrVO.setItemYearAcc05ACC06(jhVO.getItemYearACC05());
      jhVO.addJournalRow(jrVO);
    }
    jhVO.setTotalValue(totalValue);

    Response response = ClientUtils.getData("insertJournalItem",jhVO);
    if (!response.isError()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.