19 package org.turro.financials.product;
21 import java.util.Date;
22 import org.turro.financials.entity.Contract;
32 private double coefficient, quantity, price;
33 private String concept;
35 public Movement(
Contract contract, Date date,
double coefficient,
double quantity,
double price, String concept) {
36 this.contract = contract;
38 this.coefficient = coefficient;
39 this.quantity = quantity;
41 this.concept = concept;
44 public Movement(String concept,
double quantity,
double price) {
45 this.quantity = quantity;
47 this.concept = concept;
71 if(contract ==
null) {
74 return quantity * coefficient;
79 if(contract ==
null) {
87 this.coefficient = coefficient;
91 this.concept = concept;
95 this.contract = contract;
107 this.quantity = quantity;
void setContract(Contract contract)
Movement(Contract contract, Date date, double coefficient, double quantity, double price, String concept)
void setConcept(String concept)
void setPrice(double price)
void setQuantity(double quantity)
Movement(String concept, double quantity, double price)
void setCoefficient(double coefficient)