From aa8122ef12f313afdceaaff7ff446c48ea7f2e86 Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Sun, 5 Nov 2017 21:30:51 +0100 Subject: [PATCH] Module Core, clss Sale et LightweightSale : suppression des attributs de type Date --- .../com/pqt/core/entities/sale/LightweightSale.java | 11 +---------- .../main/java/com/pqt/core/entities/sale/Sale.java | 12 +----------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/sale/LightweightSale.java b/Workspace/core/src/main/java/com/pqt/core/entities/sale/LightweightSale.java index 4f4db0a9..4c0cd0db 100644 --- a/Workspace/core/src/main/java/com/pqt/core/entities/sale/LightweightSale.java +++ b/Workspace/core/src/main/java/com/pqt/core/entities/sale/LightweightSale.java @@ -14,19 +14,18 @@ public class LightweightSale { private int id; private Map products; - private Date orderedAt; private Client orderedWith; private Account orderedBy; private Account orderedFor; private SaleType type; private SaleStatus status; + private Double worth; public LightweightSale() { } public LightweightSale(Sale sale) { this.id = sale.getId(); - this.orderedAt = sale.getOrderedAt(); this.orderedWith = sale.getOrderedWith(); this.orderedBy = sale.getOrderedBy(); this.orderedFor = sale.getOrderedFor(); @@ -54,14 +53,6 @@ public class LightweightSale { this.products = products; } - public Date getOrderedAt() { - return orderedAt; - } - - public void setOrderedAt(Date orderedAt) { - this.orderedAt = orderedAt; - } - public Client getOrderedWith() { return orderedWith; } diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/sale/Sale.java b/Workspace/core/src/main/java/com/pqt/core/entities/sale/Sale.java index 127ca7c1..2eb1455f 100644 --- a/Workspace/core/src/main/java/com/pqt/core/entities/sale/Sale.java +++ b/Workspace/core/src/main/java/com/pqt/core/entities/sale/Sale.java @@ -17,7 +17,6 @@ public class Sale implements ILoggable, Serializable{ private int id; private Map products; - private Date orderedAt; private Client orderedWith; private Account orderedBy; private Account orderedFor; @@ -27,10 +26,9 @@ public class Sale implements ILoggable, Serializable{ public Sale() { } - public Sale(int id, Map products, Date orderedAt, Client orderedWith, Account orderedBy, Account orderedFor, SaleType type, SaleStatus status) { + public Sale(int id, Map products, Client orderedWith, Account orderedBy, Account orderedFor, SaleType type, SaleStatus status) { this.id = id; this.products = products; - this.orderedAt = orderedAt; this.orderedWith = orderedWith; this.orderedBy = orderedBy; this.orderedFor = orderedFor; @@ -54,14 +52,6 @@ public class Sale implements ILoggable, Serializable{ this.products = products; } - public Date getOrderedAt() { - return orderedAt; - } - - public void setOrderedAt(Date orderedAt) { - this.orderedAt = orderedAt; - } - public Client getOrderedWith() { return orderedWith; }