BrightSide Workbench Full Report + Source Code
DocumentLineStub.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.stub;
20 
21 import org.turro.financials.entity.DocumentLine;
22 import org.turro.reflection.stub.DefaultStub;
23 
28 public class DocumentLineStub extends DefaultStub {
29 
30  private ContractStubmin store;
31  private int lineOrder;
32  private ProductStubmin product;
33  private ProductByContractorStubmin productByContractor;
34  private String concept;
35  private double quantity;
36  private double price;
37  private double tax;
38  private double equivalenceSurcharge;
39  private double discountPerCent;
40  private double discountMoney;
41  private double retention;
42  private LineTypeStubmin lineType;
43  private ContractPreferenceStubmin contractPreference;
44 
45  public DocumentLineStub(DocumentLine documentLine) {
46  silentlyInitializeValues(documentLine);
47  }
48 
50  return store;
51  }
52 
53  public void setStore(ContractStubmin store) {
54  this.store = store;
55  }
56 
57  public int getLineOrder() {
58  return lineOrder;
59  }
60 
61  public void setLineOrder(int lineOrder) {
62  this.lineOrder = lineOrder;
63  }
64 
66  return product;
67  }
68 
69  public void setProduct(ProductStubmin product) {
70  this.product = product;
71  }
72 
74  return productByContractor;
75  }
76 
77  public void setProductByContractor(ProductByContractorStubmin productByContractor) {
78  this.productByContractor = productByContractor;
79  }
80 
81  public String getConcept() {
82  return concept;
83  }
84 
85  public void setConcept(String concept) {
86  this.concept = concept;
87  }
88 
89  public double getQuantity() {
90  return quantity;
91  }
92 
93  public void setQuantity(double quantity) {
94  this.quantity = quantity;
95  }
96 
97  public double getPrice() {
98  return price;
99  }
100 
101  public void setPrice(double price) {
102  this.price = price;
103  }
104 
105  public double getTax() {
106  return tax;
107  }
108 
109  public void setTax(double tax) {
110  this.tax = tax;
111  }
112 
113  public double getEquivalenceSurcharge() {
114  return equivalenceSurcharge;
115  }
116 
117  public void setEquivalenceSurcharge(double equivalenceSurcharge) {
118  this.equivalenceSurcharge = equivalenceSurcharge;
119  }
120 
121  public double getDiscountPerCent() {
122  return discountPerCent;
123  }
124 
125  public void setDiscountPerCent(double discountPerCent) {
126  this.discountPerCent = discountPerCent;
127  }
128 
129  public double getDiscountMoney() {
130  return discountMoney;
131  }
132 
133  public void setDiscountMoney(double discountMoney) {
134  this.discountMoney = discountMoney;
135  }
136 
137  public double getRetention() {
138  return retention;
139  }
140 
141  public void setRetention(double retention) {
142  this.retention = retention;
143  }
144 
146  return lineType;
147  }
148 
149  public void setLineType(LineTypeStubmin lineType) {
150  this.lineType = lineType;
151  }
152 
154  return contractPreference;
155  }
156 
157  public void setContractPreference(ContractPreferenceStubmin contractPreference) {
158  this.contractPreference = contractPreference;
159  }
160 
161 }
void setLineType(LineTypeStubmin lineType)
void setContractPreference(ContractPreferenceStubmin contractPreference)
void setEquivalenceSurcharge(double equivalenceSurcharge)
ContractPreferenceStubmin getContractPreference()
void setProductByContractor(ProductByContractorStubmin productByContractor)
ProductByContractorStubmin getProductByContractor()
void setDiscountPerCent(double discountPerCent)