Subversion Repositories SmartDukaan

Rev

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

Rev 30639 Rev 30694
Line 480... Line 480...
480
			float amountCredited = (float) sios.stream().mapToDouble(e -> e.getAmount()).sum();
480
			float amountCredited = (float) sios.stream().mapToDouble(e -> e.getAmount()).sum();
481
 
481
 
482
			LOGGER.info("SIOS ===== {}", sios);
482
			LOGGER.info("SIOS ===== {}", sios);
483
			float amountToCredit = this.getAmount(inventoryItem, scheme);
483
			float amountToCredit = this.getAmount(inventoryItem, scheme);
484
			//Activation and in scheme
484
			//Activation and in scheme
485
			if (!scheme.getType().equals(SchemeType.IN) && !scheme.getType().equals(SchemeType.ACTIVATION) && sios.size() > 0) {
485
			if (!scheme.getType().equals(SchemeType.IN) && !scheme.getType().equals(SchemeType.ACTIVATION) &&
-
 
486
					!scheme.getType().equals(SchemeType.SPECIAL_SUPPORT) && sios.size() > 0) {
486
 
487
 
487
				if (sios.size() > 1) {
488
				if (sios.size() > 1) {
488
					LOGGER.info("SAMESCHEMETYPE has already been credited twice for inventoryItem - {}", inventoryItem.getId());
489
					LOGGER.info("SAMESCHEMETYPE has already been credited twice for inventoryItem - {}", inventoryItem.getId());
489
					return 0;
490
					return 0;
490
				}
491
				}