Subversion Repositories SmartDukaan

Rev

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

Rev 27051 Rev 27052
Line 635... Line 635...
635
						Float cashBack = schemeService.getItemSchemeCashBack().get(itemId);
635
						Float cashBack = schemeService.getItemSchemeCashBack().get(itemId);
636
						cashBack = cashBack == null ? 0 : cashBack;
636
						cashBack = cashBack == null ? 0 : cashBack;
637
						fdi.setCashback(cashBack);
637
						fdi.setCashback(cashBack);
638
						fdi.setMinBuyQuantity(1);
638
						fdi.setMinBuyQuantity(1);
639
						if (hotDeal) {
639
						if (hotDeal) {
-
 
640
							if(currentAvailability != null ) {
640
							fdi.setAvailability(currentAvailability.getNetavailability());
641
								fdi.setAvailability(currentAvailability.stream().collect(Collectors.summingInt(SaholicCIS::getNetavailability)));
-
 
642
							} else {
-
 
643
								fdi.setAvailability(0);
-
 
644
							}
641
						} else {
645
						} else {
642
							fdi.setAvailability(100);
646
							fdi.setAvailability(100);
643
							Item item = itemRepository.selectById(itemId);
647
							Item item = itemRepository.selectById(itemId);
644
							// In case its tampered glass moq should be 5
648
							// In case its tampered glass moq should be 5
645
							if (item.getCategoryId() == 10020) {
649
							if (item.getCategoryId() == 10020) {