package main_package;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

import org.primefaces.context.RequestContext;

@ManagedBean(name="printProfitAndLoss")
@ViewScoped

public class PrintProfitAndLossBean implements Serializable
{
	double applicantFee=0, ddInterest, totalDepositPaidInterest, totalDepositAccruedInterest,loanInterestAmount=0,fdrInterestAmount=0,fdrAmount=0,otherIncome=0,rdInterest=0,fdInterest=0,savingsInterest=0,
			paidRdInterest,paidFdInterest,otherExpense=0,paidRdAmount=0,paidFdAmount=0,totalIncome=0,totalExpense=0,totalRdInterest=0
			,totalFdInterest=0,totalProfit=0,goodsAmount=0,goodsDepreciationAmount=0, salaryExp=0,paidDdInterest, preMatCharge, stationaryCharge, otherCharge;
	double totalAccruedLoanInterset=0;
	String strEndDate,strStartDate;
	
	
	
	
	
	public PrintProfitAndLossBean() 
	{
		HttpSession ss=(HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
		savingsInterest=(double)ss.getAttribute("savingsInterest");
		totalDepositPaidInterest=(double)ss.getAttribute("totalDepositPaidInterest");
		loanInterestAmount=(double)ss.getAttribute("loanInterestAmount");
		totalDepositAccruedInterest=(double)ss.getAttribute("totalDepositAccruedInterest");
		totalAccruedLoanInterset=(double)ss.getAttribute("totalAccruedLoanInterset");
		otherExpense=(double)ss.getAttribute("otherExpense");
		otherIncome=(double)ss.getAttribute("otherIncome");
		goodsAmount=(double)ss.getAttribute("goodsAmount");
		fdrInterestAmount=(double)ss.getAttribute("fdrInterestAmount");
		otherExpense=(double)ss.getAttribute("otherExpense");
		otherExpense=(double)ss.getAttribute("otherExpense");
		totalIncome=(double)ss.getAttribute("totalIncome");
		totalExpense=(double)ss.getAttribute("totalExpense");
		strStartDate=(String)ss.getAttribute("strStartDate");
		strEndDate=(String)ss.getAttribute("strEndDate");
		totalProfit=(double)ss.getAttribute("totalProfit");
	}

	public double getApplicantFee() {
		return applicantFee;
	}

	public void setApplicantFee(double applicantFee) {
		this.applicantFee = applicantFee;
	}

	public double getDdInterest() {
		return ddInterest;
	}

	public void setDdInterest(double ddInterest) {
		this.ddInterest = ddInterest;
	}

	public double getTotalDepositPaidInterest() {
		return totalDepositPaidInterest;
	}

	public void setTotalDepositPaidInterest(double totalDepositPaidInterest) {
		this.totalDepositPaidInterest = totalDepositPaidInterest;
	}

	public double getTotalDepositAccruedInterest() {
		return totalDepositAccruedInterest;
	}

	public void setTotalDepositAccruedInterest(double totalDepositAccruedInterest) {
		this.totalDepositAccruedInterest = totalDepositAccruedInterest;
	}

	public double getLoanInterestAmount() {
		return loanInterestAmount;
	}

	public void setLoanInterestAmount(double loanInterestAmount) {
		this.loanInterestAmount = loanInterestAmount;
	}

	public double getFdrInterestAmount() {
		return fdrInterestAmount;
	}

	public void setFdrInterestAmount(double fdrInterestAmount) {
		this.fdrInterestAmount = fdrInterestAmount;
	}

	public double getFdrAmount() {
		return fdrAmount;
	}

	public void setFdrAmount(double fdrAmount) {
		this.fdrAmount = fdrAmount;
	}

	public double getOtherIncome() {
		return otherIncome;
	}

	public void setOtherIncome(double otherIncome) {
		this.otherIncome = otherIncome;
	}

	public double getRdInterest() {
		return rdInterest;
	}

	public void setRdInterest(double rdInterest) {
		this.rdInterest = rdInterest;
	}

	public double getFdInterest() {
		return fdInterest;
	}

	public void setFdInterest(double fdInterest) {
		this.fdInterest = fdInterest;
	}

	public double getSavingsInterest() {
		return savingsInterest;
	}

	public void setSavingsInterest(double savingsInterest) {
		this.savingsInterest = savingsInterest;
	}

	public double getPaidRdInterest() {
		return paidRdInterest;
	}

	public void setPaidRdInterest(double paidRdInterest) {
		this.paidRdInterest = paidRdInterest;
	}

	public double getPaidFdInterest() {
		return paidFdInterest;
	}

	public void setPaidFdInterest(double paidFdInterest) {
		this.paidFdInterest = paidFdInterest;
	}

	public double getOtherExpense() {
		return otherExpense;
	}

	public void setOtherExpense(double otherExpense) {
		this.otherExpense = otherExpense;
	}

	public double getPaidRdAmount() {
		return paidRdAmount;
	}

	public void setPaidRdAmount(double paidRdAmount) {
		this.paidRdAmount = paidRdAmount;
	}

	public double getPaidFdAmount() {
		return paidFdAmount;
	}

	public void setPaidFdAmount(double paidFdAmount) {
		this.paidFdAmount = paidFdAmount;
	}

	public double getTotalIncome() {
		return totalIncome;
	}

	public void setTotalIncome(double totalIncome) {
		this.totalIncome = totalIncome;
	}

	public double getTotalExpense() {
		return totalExpense;
	}

	public void setTotalExpense(double totalExpense) {
		this.totalExpense = totalExpense;
	}

	public double getTotalRdInterest() {
		return totalRdInterest;
	}

	public void setTotalRdInterest(double totalRdInterest) {
		this.totalRdInterest = totalRdInterest;
	}

	public double getTotalFdInterest() {
		return totalFdInterest;
	}

	public void setTotalFdInterest(double totalFdInterest) {
		this.totalFdInterest = totalFdInterest;
	}

	public double getTotalProfit() {
		return totalProfit;
	}

	public void setTotalProfit(double totalProfit) {
		this.totalProfit = totalProfit;
	}

	public double getGoodsAmount() {
		return goodsAmount;
	}

	public void setGoodsAmount(double goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	public double getGoodsDepreciationAmount() {
		return goodsDepreciationAmount;
	}

	public void setGoodsDepreciationAmount(double goodsDepreciationAmount) {
		this.goodsDepreciationAmount = goodsDepreciationAmount;
	}

	public double getSalaryExp() {
		return salaryExp;
	}

	public void setSalaryExp(double salaryExp) {
		this.salaryExp = salaryExp;
	}

	public double getPaidDdInterest() {
		return paidDdInterest;
	}

	public void setPaidDdInterest(double paidDdInterest) {
		this.paidDdInterest = paidDdInterest;
	}

	public double getPreMatCharge() {
		return preMatCharge;
	}

	public void setPreMatCharge(double preMatCharge) {
		this.preMatCharge = preMatCharge;
	}

	public double getStationaryCharge() {
		return stationaryCharge;
	}

	public void setStationaryCharge(double stationaryCharge) {
		this.stationaryCharge = stationaryCharge;
	}

	public double getOtherCharge() {
		return otherCharge;
	}

	public void setOtherCharge(double otherCharge) {
		this.otherCharge = otherCharge;
	}

	public double getTotalAccruedLoanInterset() {
		return totalAccruedLoanInterset;
	}

	public void setTotalAccruedLoanInterset(double totalAccruedLoanInterset) {
		this.totalAccruedLoanInterset = totalAccruedLoanInterset;
	}

	public String getStrEndDate() {
		return strEndDate;
	}

	public void setStrEndDate(String strEndDate) {
		this.strEndDate = strEndDate;
	}

	public String getStrStartDate() {
		return strStartDate;
	}

	public void setStrStartDate(String strStartDate) {
		this.strStartDate = strStartDate;
	}
	
	
	
}
