RRRRHHHH_Code
Diff Revisions
95c4ff ...
vs
64482a ...
for ruralHouses/src/businessLogic/OfferManager.java
|
@@ -66,7 +66,10 @@ |
66 |
66 |
|
if (firstDay.compareTo(lastDay)>=0) throw new BadDates(); |
67 |
67 |
|
|
68 |
68 |
|
boolean b = dbMngr.existsOverlappingOffer(ruralHouse,firstDay,lastDay); // The ruralHouse object in the client may not be updated |
69 |
|
- |
if (!b) return dbMngr.createOffer(ruralHouse,firstDay,lastDay,price); |
|
69 |
+ |
if (!b) { |
|
70 |
+ |
ruralHouse.createOffer(offerNumber, firstDay, lastDay, price); |
|
71 |
+ |
return dbMngr.createOffer(ruralHouse,firstDay,lastDay,price); |
|
72 |
+ |
} |
70 |
73 |
|
return null; |
71 |
74 |
|
} |
72 |
75 |
|
|