Subversion Repositories SmartDukaan

Rev

Rev 29432 | Rev 31087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29432 Rev 29433
Line 229... Line 229...
229
 
229
 
230
				if (LocalDate.now().isAfter(co.getExpectedShipping().toLocalDate())) {
230
				if (LocalDate.now().isAfter(co.getExpectedShipping().toLocalDate())) {
231
					long noOfDaysBetween = ChronoUnit.DAYS.between(
231
					long noOfDaysBetween = ChronoUnit.DAYS.between(
232
							co.getExpectedShipping(),LocalDate.now().atStartOfDay());
232
							co.getExpectedShipping(),LocalDate.now().atStartOfDay());
233
 
233
 
234
					co.setExpectedShipping(co.getBillingTimestamp().plusDays(noOfDaysBetween));
234
					co.setExpectedShipping(co.getBillingTimestamp().plusDays(noOfDaysBetween+1));
235
				}
235
				}
236
			}
236
			}
237
			tm.setExpectedShipping(co.getExpectedShipping());
237
			tm.setExpectedShipping(co.getExpectedShipping());
238
			if (tm.isInTransitBilling()) {
238
			if (tm.isInTransitBilling()) {
239
				tm.setInTransitShipping(false);
239
				tm.setInTransitShipping(false);