package com.reallinkbilling.DAO;

public class CustomerCreditReportDAO implements Comparable<Object> {
	
	private int srNo;
	private String custometName;
	private String customerMobile;
	private String customerAddress;
	private String totalBillAmount;
	private Float totalCreditAmount;
	private String totalPaymentAmount;
	private String smsData;
	private Float openingBalance;
	private String details;
	
	private String key;

	public String getKey() {
	    return key;
	}

	public void setKey(String key) {
	    this.key = key;
	}
	
	public String getSmsData() {
		return smsData;
	}
	public void setSmsData(String smsData) {
		this.smsData = smsData;
	}
	public int getSrNo() {
		return srNo;
	}
	public void setSrNo(int srNo) {
		this.srNo = srNo;
	}
	public String getCustometName() {
		return custometName;
	}
	public void setCustometName(String custometName) {
		this.custometName = custometName;
	}
	public String getCustomerMobile() {
		return customerMobile;
	}
	public void setCustomerMobile(String customerMobile) {
		this.customerMobile = customerMobile;
	}
	public String getCustomerAddress() {
		return customerAddress;
	}
	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}
	public String getTotalBillAmount() {
		return totalBillAmount;
	}
	public void setTotalBillAmount(String totalBillAmount) {
		this.totalBillAmount = totalBillAmount;
	}
	
	public float getTotalCreditAmount() {
		return totalCreditAmount;
	}
	public void setTotalCreditAmount(float totalCreditAmount) {
		this.totalCreditAmount = totalCreditAmount;
	}
	public String getTotalPaymentAmount() {
		return totalPaymentAmount;
	}
	public void setTotalPaymentAmount(String totalPaymentAmount) {
		this.totalPaymentAmount = totalPaymentAmount;
	}
	public float compareTo(CustomerCreditReportDAO dao) {
		float balanceAmount=((CustomerCreditReportDAO)dao).getTotalCreditAmount();
        /* For Ascending order*/
        return this.totalCreditAmount-balanceAmount;

	}

	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}
	public Float getOpeningBalance() {
		return openingBalance;
	}
	public void setOpeningBalance(Float openingBalance) {
		this.openingBalance = openingBalance;
	}
	public void setTotalCreditAmount(Float totalCreditAmount) {
		this.totalCreditAmount = totalCreditAmount;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	
	
	

}
