this.subaccUsedCodeMap.put(prp.constTypeCode(), PropertyUsed.class); BankAccount ba = new BankAccount(); this.typeCodeMap.put(ba.constTypeCode(), BankAccount.class); this.subaccUsedCodeMap.put(ba.constTypeCode(), BankAccountUsed.class); WageType wt = new WageType();
.getBankAccount().getItsId() + " and DEBIT=" + amountStr + " and ITSDATE >= " + startEnd[0] + " and ITSDATE <= " + startEnd[1]; List<AccountingEntry> entriesFrom = getSrvOrm() .getBankAccount().getItsId() + " and CREDIT=" + amountStr + " and ITSDATE >= " + startEnd[0] + " and ITSDATE <= " + startEnd[1]; List<AccountingEntry> entriesTo = getSrvOrm()
prep.setCustomer(dc); prep.setAccCash(accCash); prep.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName()); prep.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId()); prep.setSubaccCashType(2002); prep.setItsTotal(pBsl.getItsAmount().abs()); prep.setItsDate(itsDate); prep.setAccCash(accCash); prep.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName()); prep.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId()); prep.setSubaccCashType(2002); prep.setItsTotal(pBsl.getItsAmount().abs());
pay.setSalesInvoice(inv); pay.setAccCash(accCash); pay.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName()); pay.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId()); pay.setSubaccCashType(2002); pay.setItsTotal(pBsl.getItsAmount().abs()); pay.setPurchaseInvoice(inv); pay.setAccCash(accCash); pay.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName()); pay.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId()); pay.setSubaccCashType(2002); pay.setItsTotal(pBsl.getItsAmount().abs());
this.subaccUsedCodeMap.put(prp.constTypeCode(), PropertyUsed.class); BankAccount ba = new BankAccount(); this.typeCodeMap.put(ba.constTypeCode(), BankAccount.class); this.subaccUsedCodeMap.put(ba.constTypeCode(), BankAccountUsed.class); WageType wt = new WageType();
if (pBsl.getItsAmount().compareTo(BigDecimal.ZERO) > 0) { accent.setAccDebit(accCash); accent.setSubaccDebit(pBsl.getItsOwner().getBankAccount().getItsName()); accent.setSubaccDebitId(pBsl.getItsOwner().getBankAccount().getItsId()); accent.setSubaccDebitType(2002); accent.setAccCredit(corAcc); accent.setSubaccDebitType(subcorAccType); accent.setAccCredit(accCash); accent.setSubaccCredit(pBsl.getItsOwner().getBankAccount().getItsName()); accent.setSubaccCreditId(pBsl.getItsOwner().getBankAccount().getItsId()); accent.setSubaccCreditType(2002);
.compareTo(prep.getItsTotal().abs()) != 0 || prep.getSubaccCashType() != 2002 || !pBsl.getItsOwner() .getBankAccount().getItsId().equals(prep.getSubaccCashId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching"); .compareTo(prep.getItsTotal().abs()) != 0 || prep.getSubaccCashType() != 2002 || !pBsl.getItsOwner() .getBankAccount().getItsId().equals(prep.getSubaccCashId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching");
.compareTo(pay.getItsTotal()) != 0 || pay.getSubaccCashType() != 2002 || !pBsl.getItsOwner() .getBankAccount().getItsId().equals(pay.getSubaccCashId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching"); .compareTo(pay.getItsTotal()) != 0 || pay.getSubaccCashType() != 2002 || !pBsl.getItsOwner() .getBankAccount().getItsId().equals(pay.getSubaccCashId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching");
.getItsAmount().compareTo(accent.getDebit()) != 0 && accent.getSubaccDebitType() != 2002 && !pBsl.getItsOwner() .getBankAccount().getItsId().equals(accent.getSubaccDebitId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching"); .getItsAmount().abs().compareTo(accent.getCredit()) != 0 && accent.getSubaccCreditType() != 2002 && !pBsl.getItsOwner() .getBankAccount().getItsId().equals(accent.getSubaccCreditId())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "record_is_not_matching");