Subversion Repositories SmartDukaan

Rev

Rev 32163 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import java.time.LocalDate;

import com.spice.profitmandi.dao.enumuration.inventory.VendorCatalogPricingStatus;

public class VendorPriceCircularModel {

    private int id;;
    private int vendorId;
    private int catalogId;
    private float transferPrice;
    private float dealerPrice;
    private float mop;
    private LocalDate effectedOn;
    private String status;


    public VendorPriceCircularModel(int id, int vendorId, int catalogId, float transferPrice, float dealerPrice, float mop, LocalDate effectedOn, String status) {
        super();
        this.id = id;
        this.vendorId = vendorId;
        this.catalogId = catalogId;
        this.transferPrice = transferPrice;
        this.dealerPrice = dealerPrice;
        this.mop = mop;
        this.effectedOn = effectedOn;
        this.status = status;
    }


    public int getId() {
        return id;
    }


    public void setId(int id) {
        this.id = id;
    }


    public int getVendorId() {
        return vendorId;
    }


    public void setVendorId(int vendorId) {
        this.vendorId = vendorId;
    }


    public int getCatalogId() {
        return catalogId;
    }


    public void setCatalogId(int catalogId) {
        this.catalogId = catalogId;
    }


    public float getTransferPrice() {
        return transferPrice;
    }


    public void setTransferPrice(float transferPrice) {
        this.transferPrice = transferPrice;
    }


    public float getDealerPrice() {
        return dealerPrice;
    }


    public void setDealerPrice(float dealerPrice) {
        this.dealerPrice = dealerPrice;
    }


    public float getMop() {
        return mop;
    }


    public void setMop(float mop) {
        this.mop = mop;
    }


    public LocalDate getEffectedOn() {
        return effectedOn;
    }


    public void setEffectedOn(LocalDate effectedOn) {
        this.effectedOn = effectedOn;
    }


    public String getStatus() {
        return status;
    }


    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + catalogId;
        result = prime * result + Float.floatToIntBits(dealerPrice);
        result = prime * result + ((effectedOn == null) ? 0 : effectedOn.hashCode());
        result = prime * result + id;
        result = prime * result + Float.floatToIntBits(mop);
        result = prime * result + ((status == null) ? 0 : status.hashCode());
        result = prime * result + Float.floatToIntBits(transferPrice);
        result = prime * result + vendorId;
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        VendorPriceCircularModel other = (VendorPriceCircularModel) obj;
        if (catalogId != other.catalogId) return false;
        if (Float.floatToIntBits(dealerPrice) != Float.floatToIntBits(other.dealerPrice)) return false;
        if (effectedOn == null) {
            if (other.effectedOn != null) return false;
        } else if (!effectedOn.equals(other.effectedOn)) return false;
        if (id != other.id) return false;
        if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop)) return false;
        if (status != other.status) return false;
        if (Float.floatToIntBits(transferPrice) != Float.floatToIntBits(other.transferPrice)) return false;
        if (vendorId != other.vendorId) return false;
        return true;
    }

    @Override
    public String toString() {
        return "VendorPriceCircularModel{" +
                "id=" + id +
                ", vendorId=" + vendorId +
                ", catalogId=" + catalogId +
                ", transferPrice=" + transferPrice +
                ", dealerPrice=" + dealerPrice +
                ", mop=" + mop +
                ", effectedOn=" + effectedOn +
                ", status='" + status + '\'' +
                '}';
    }
}