Subversion Repositories SmartDukaan

Rev

Rev 1363 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1363 Rev 1412
Line 474... Line 474...
474
			}
474
			}
475
			
475
			
476
			Date todate = new Date();
476
			Date todate = new Date();
477
			Boolean hasActiveItem = false;
477
			Boolean hasActiveItem = false;
478
			for(Item item: items){
478
			for(Item item: items){
479
				if(item.getItemStatus() != status.ACTIVE || todate.getTime() < item.getStartDate()){
479
				if(item.getItemStatus() == status.ACTIVE && todate.getTime() > item.getStartDate()){
480
					continue;
480
						hasActiveItem = true;
481
				}
481
				}
482
				hasActiveItem = true;
482
				
483
				if(itemPrice == 0){
483
				if(itemPrice == 0){
484
					itemPrice = item.getSellingPrice();
484
					itemPrice = item.getSellingPrice();
485
				}else if(itemPrice>item.getSellingPrice()){
485
				}else if(itemPrice>item.getSellingPrice()){
486
					itemPrice = item.getSellingPrice();
486
					itemPrice = item.getSellingPrice();
487
				}
487
				}