mirror of
				https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
				synced 2025-10-31 09:03:08 +00:00 
			
		
		
		
	Module Core, clss Sale et LightweightSale : suppression des attributs de type Date
This commit is contained in:
		| @@ -14,19 +14,18 @@ public class LightweightSale { | ||||
|  | ||||
|     private int id; | ||||
|     private Map<Long, Integer> 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; | ||||
|     } | ||||
|   | ||||
| @@ -17,7 +17,6 @@ public class Sale implements ILoggable, Serializable{ | ||||
|  | ||||
|     private int id; | ||||
|     private Map<Product, Integer> 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<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.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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user