/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.arrebol.apc.model.views;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author David Rodriguez
 */
// @Entity
// @Table(name = "APC_PAYROLL_STATS_VIEW")
public class StatsSummaryView implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    @Column(name = "id", length = 36)
    private String id;

    @Column(name = "id_user", length = 36)
    private String idUser;
    
    @Column(name = "Name")
    private String userName;

    @Column(name = "opening_fee")
    private BigDecimal openingFee;

    @Column(name = "deposits")
    private BigDecimal deposits;
    
    @Column(name = "payment")
    private BigDecimal payment;
    
    @Column(name = "payroll")
    private BigDecimal payroll;
    
    @Column(name = "gasoline")
    private BigDecimal gasoline;
    
    @Column(name = "advances")
    private BigDecimal advances;
    
    @Column(name = "expenses")
    private BigDecimal expenses;
    
    @Column(name = "trasfer_transmitter")
    private BigDecimal trasferTransmitter;

    @Column(name = "trasfer_receiver")
    private BigDecimal trasferReceiver;

    public String getId() {
        return id;
    }

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

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public BigDecimal getOpeningFee() {
        return openingFee;
    }

    public void setOpeningFee(BigDecimal openingFee) {
        this.openingFee = openingFee;
    }

    public BigDecimal getDeposits() {
        return deposits;
    }

    public void setDeposits(BigDecimal deposits) {
        this.deposits = deposits;
    }

    public BigDecimal getPayment() {
        return payment;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public BigDecimal getPayroll() {
        return payroll;
    }

    public void setPayroll(BigDecimal payroll) {
        this.payroll = payroll;
    }

    public BigDecimal getGasoline() {
        return gasoline;
    }

    public void setGasoline(BigDecimal gasoline) {
        this.gasoline = gasoline;
    }

    public BigDecimal getAdvances() {
        return advances;
    }

    public void setAdvances(BigDecimal advances) {
        this.advances = advances;
    }

    public BigDecimal getExpenses() {
        return expenses;
    }

    public void setExpenses(BigDecimal expenses) {
        this.expenses = expenses;
    }

    public BigDecimal getTrasferTransmitter() {
        return trasferTransmitter;
    }

    public void setTrasferTransmitter(BigDecimal trasferTransmitter) {
        this.trasferTransmitter = trasferTransmitter;
    }

    public BigDecimal getTrasferReceiver() {
        return trasferReceiver;
    }

    public void setTrasferReceiver(BigDecimal trasferReceiver) {
        this.trasferReceiver = trasferReceiver;
    }
    
    public String getIdUser() {
        return idUser;
    }

    public void setIdUser(String idUser) {
        this.idUser = idUser;
    }

    public BigDecimal getTotalCobros(){
        return advances.add(payment).add(deposits).add(openingFee);
    }
    
    @Override
    public String toString() {
        return "";
    }
}
