mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
Module Core, clss Sale et LightweightSale : suppression des attributs de type Date
This commit is contained in:
parent
6a8cb9292d
commit
aa8122ef12
@ -14,19 +14,18 @@ public class LightweightSale {
|
|||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private Map<Long, Integer> products;
|
private Map<Long, Integer> products;
|
||||||
private Date orderedAt;
|
|
||||||
private Client orderedWith;
|
private Client orderedWith;
|
||||||
private Account orderedBy;
|
private Account orderedBy;
|
||||||
private Account orderedFor;
|
private Account orderedFor;
|
||||||
private SaleType type;
|
private SaleType type;
|
||||||
private SaleStatus status;
|
private SaleStatus status;
|
||||||
|
private Double worth;
|
||||||
|
|
||||||
public LightweightSale() {
|
public LightweightSale() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public LightweightSale(Sale sale) {
|
public LightweightSale(Sale sale) {
|
||||||
this.id = sale.getId();
|
this.id = sale.getId();
|
||||||
this.orderedAt = sale.getOrderedAt();
|
|
||||||
this.orderedWith = sale.getOrderedWith();
|
this.orderedWith = sale.getOrderedWith();
|
||||||
this.orderedBy = sale.getOrderedBy();
|
this.orderedBy = sale.getOrderedBy();
|
||||||
this.orderedFor = sale.getOrderedFor();
|
this.orderedFor = sale.getOrderedFor();
|
||||||
@ -54,14 +53,6 @@ public class LightweightSale {
|
|||||||
this.products = products;
|
this.products = products;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getOrderedAt() {
|
|
||||||
return orderedAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrderedAt(Date orderedAt) {
|
|
||||||
this.orderedAt = orderedAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Client getOrderedWith() {
|
public Client getOrderedWith() {
|
||||||
return orderedWith;
|
return orderedWith;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ public class Sale implements ILoggable, Serializable{
|
|||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private Map<Product, Integer> products;
|
private Map<Product, Integer> products;
|
||||||
private Date orderedAt;
|
|
||||||
private Client orderedWith;
|
private Client orderedWith;
|
||||||
private Account orderedBy;
|
private Account orderedBy;
|
||||||
private Account orderedFor;
|
private Account orderedFor;
|
||||||
@ -27,10 +26,9 @@ public class Sale implements ILoggable, Serializable{
|
|||||||
public Sale() {
|
public Sale() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Sale(int id, Map<Product, Integer> products, Date orderedAt, Client orderedWith, Account orderedBy, Account orderedFor, SaleType type, SaleStatus status) {
|
public Sale(int id, Map<Product, Integer> products, Client orderedWith, Account orderedBy, Account orderedFor, SaleType type, SaleStatus status) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.products = products;
|
this.products = products;
|
||||||
this.orderedAt = orderedAt;
|
|
||||||
this.orderedWith = orderedWith;
|
this.orderedWith = orderedWith;
|
||||||
this.orderedBy = orderedBy;
|
this.orderedBy = orderedBy;
|
||||||
this.orderedFor = orderedFor;
|
this.orderedFor = orderedFor;
|
||||||
@ -54,14 +52,6 @@ public class Sale implements ILoggable, Serializable{
|
|||||||
this.products = products;
|
this.products = products;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getOrderedAt() {
|
|
||||||
return orderedAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrderedAt(Date orderedAt) {
|
|
||||||
this.orderedAt = orderedAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Client getOrderedWith() {
|
public Client getOrderedWith() {
|
||||||
return orderedWith;
|
return orderedWith;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user