BrightSide Workbench Full Report + Source Code
CashRegister.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.financials.pos;
20 
21 import java.io.Serializable;
22 import java.util.Date;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import javax.persistence.IdClass;
26 import javax.persistence.ManyToOne;
27 import org.turro.financials.entity.Contract;
28 
33 @Entity
34 @IdClass(CashRegisterPK.class)
35 public class CashRegister implements Serializable {
36 
37  @Id @ManyToOne private Contract contract;
38  @Id private int pos;
39  @Id private Date registerDate;
40 
41  private double exitVouchers, entryVouchers, creditCards, bankDeposit,
42  remunerations, expenses, subsistenceAllowance, cash, finalChange;
43 
44  public Contract getContract() {
45  return contract;
46  }
47 
48  public void setContract(Contract contract) {
49  this.contract = contract;
50  }
51 
52  public int getPos() {
53  return pos;
54  }
55 
56  public void setPos(int pos) {
57  this.pos = pos;
58  }
59 
60  public Date getRegisterDate() {
61  return registerDate;
62  }
63 
64  public void setRegisterDate(Date registerDate) {
65  this.registerDate = registerDate;
66  }
67 
68  public double getExitVouchers() {
69  return exitVouchers;
70  }
71 
72  public void setExitVouchers(double exitVouchers) {
73  this.exitVouchers = exitVouchers;
74  }
75 
76  public double getEntryVouchers() {
77  return entryVouchers;
78  }
79 
80  public void setEntryVouchers(double entryVouchers) {
81  this.entryVouchers = entryVouchers;
82  }
83 
84  public double getCreditCards() {
85  return creditCards;
86  }
87 
88  public void setCreditCards(double creditCards) {
89  this.creditCards = creditCards;
90  }
91 
92  public double getBankDeposit() {
93  return bankDeposit;
94  }
95 
96  public void setBankDeposit(double bankDeposit) {
97  this.bankDeposit = bankDeposit;
98  }
99 
100  public double getRemunerations() {
101  return remunerations;
102  }
103 
104  public void setRemunerations(double remunerations) {
105  this.remunerations = remunerations;
106  }
107 
108  public double getExpenses() {
109  return expenses;
110  }
111 
112  public void setExpenses(double expenses) {
113  this.expenses = expenses;
114  }
115 
116  public double getSubsistenceAllowance() {
117  return subsistenceAllowance;
118  }
119 
120  public void setSubsistenceAllowance(double subsistenceAllowance) {
121  this.subsistenceAllowance = subsistenceAllowance;
122  }
123 
124  public double getCash() {
125  return cash;
126  }
127 
128  public void setCash(double cash) {
129  this.cash = cash;
130  }
131 
132  public double getFinalChange() {
133  return finalChange;
134  }
135 
136  public void setFinalChange(double finalChange) {
137  this.finalChange = finalChange;
138  }
139 
140 }
void setSubsistenceAllowance(double subsistenceAllowance)
void setRegisterDate(Date registerDate)
void setEntryVouchers(double entryVouchers)
void setBankDeposit(double bankDeposit)
void setExitVouchers(double exitVouchers)
void setRemunerations(double remunerations)
void setFinalChange(double finalChange)
void setContract(Contract contract)
void setCreditCards(double creditCards)