/* * eGov suite of products aim to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) <2015> eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * is available at http://www.egovernments.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/ or * http://www.gnu.org/licenses/gpl.html . * * In addition to the terms of the GPL license to be adhered to in using this * program, the following additional terms are to be complied with: * * 1) All versions of this program, verbatim or modified must carry this * Legal Notice. * * 2) Any misrepresentation of the origin of the material is prohibited. It * is required that all modified versions of this material be marked in * reasonable ways as different from the original version. * * 3) This license does not grant any rights to any user of the program * with regards to rights under trademark law for use of the trade names * or trademarks of eGovernments Foundation. * * In case of any queries, you can reach eGovernments Foundation at contact@egovernments.org. */ /* * Created on April 24, 2006 * @author Tilak */ package com.exilant.eGov.src.reports; import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class TrialBalanceBean { String accCode; String accName; String debit; String credit; String fundId; String openingBal; String closingBal; String serialNo; Map<String, String> fundWiseMap; String fromAmountMap; BigDecimal closingBalance; BigDecimal creditOPB; BigDecimal debitOPB; BigDecimal tillDateCreditOPB; BigDecimal tillDateDebitOPB; BigDecimal debitAmount; BigDecimal creditAmount; BigDecimal amount; String amount1; String amount2; String amount3; String amount4; String amount5; String amount6; String amount7; String amount8; String amount9; String amount10; public String getAmount1() { return amount1; } public String getAmount2() { return amount2; } public String getAmount3() { return amount3; } public String getAmount4() { return amount4; } public String getAmount5() { return amount5; } public String getAmount6() { return amount6; } public String getAmount7() { return amount7; } public String getAmount8() { return amount8; } public String getAmount9() { return amount9; } public String getAmount10() { return amount10; } public void setAmount1(final String amount1) { this.amount1 = amount1; } public void setAmount2(final String amount2) { this.amount2 = amount2; } public void setAmount3(final String amount3) { this.amount3 = amount3; } public void setAmount4(final String amount4) { this.amount4 = amount4; } public void setAmount5(final String amount5) { this.amount5 = amount5; } public void setAmount6(final String amount6) { this.amount6 = amount6; } public void setAmount7(final String amount7) { this.amount7 = amount7; } public void setAmount8(final String amount8) { this.amount8 = amount8; } public void setAmount9(final String amount9) { this.amount9 = amount9; } public void setAmount10(final String amount10) { this.amount10 = amount10; } List<BigDecimal> amoutList = new ArrayList<BigDecimal>(); public List<BigDecimal> getAmoutList() { return amoutList; } public void setAmoutList(final List<BigDecimal> amoutList) { this.amoutList = amoutList; } public Map<String, String> getFundWiseMap() { return fundWiseMap; } public void setFundWiseMap(final Map<String, String> fundWiseMap) { this.fundWiseMap = fundWiseMap; } // Below are used for Enhancement BigDecimal openingBalance; public BigDecimal getOpeningBalance() { return openingBalance; } public void setOpeningBalance(final BigDecimal openingBalance) { this.openingBalance = openingBalance; } public BigDecimal getClosingBalance() { return closingBalance; } public void setClosingBalance(final BigDecimal closingBalance) { this.closingBalance = closingBalance; } public BigDecimal getAmount() { return amount; } public void setAmount(final BigDecimal amount) { this.amount = amount; } public BigDecimal getCreditOPB() { return creditOPB; } public void setCreditOPB(final BigDecimal creditOPB) { this.creditOPB = creditOPB; } public BigDecimal getDebitOPB() { return debitOPB; } public void setDebitOPB(final BigDecimal debitOPB) { this.debitOPB = debitOPB; } public BigDecimal getTillDateCreditOPB() { return tillDateCreditOPB; } public void setTillDateCreditOPB(final BigDecimal tillDateCreditOPB) { this.tillDateCreditOPB = tillDateCreditOPB; } public BigDecimal getTillDateDebitOPB() { return tillDateDebitOPB; } public void setTillDateDebitOPB(final BigDecimal tillDateDebitOPB) { this.tillDateDebitOPB = tillDateDebitOPB; } public BigDecimal getDebitAmount() { return debitAmount; } public void setDebitAmount(final BigDecimal debitAmount) { this.debitAmount = debitAmount; } public BigDecimal getCreditAmount() { return creditAmount; } public void setCreditAmount(final BigDecimal creditAmount) { this.creditAmount = creditAmount; } public void setFundId(final String fundId) { this.fundId = fundId; } public String getFundId() { return fundId; } public void setSerialNo(final String serialNo) { this.serialNo = serialNo; } public String getSerialNo() { return serialNo; } public void setAccCode(final String accCode) { this.accCode = accCode; } public String getAccCode() { return accCode; } public void setAccName(final String accName) { this.accName = accName; } public String getAccName() { return accName; } public String getDebit() { return debit; } public void setDebit(final String dr) { debit = dr; } public String getCredit() { return credit; } public void setCredit(final String cr) { credit = cr; } public String getOpeningBal() { return openingBal; } public void setOpeningBal(final String openingBal) { this.openingBal = openingBal; } public String getClosingBal() { return closingBal; } public void setClosingBal(final String closingBal) { this.closingBal = closingBal; } public void addToAmountMap(final String fundWiseKey, final String amount2) { if (fundWiseMap == null) fundWiseMap = new HashMap<String, String>(); fundWiseMap.put(fundWiseKey, amount2); } public String getFromAmountMap(final String fundWiseKey) { if (fundWiseMap == null) return "0.0"; else if (fundWiseMap.get(fundWiseKey) != null) return fundWiseMap.get(fundWiseKey); else return "0.0"; } @Override public String toString() { final StringBuffer str = new StringBuffer(1024); str.append(accCode).append(":").append(accName).append(":").append(amount).append(":").append(creditAmount) .append(":").append(debitAmount).append(":").append(fundWiseMap); return str.toString(); } }