Subversion Repositories SmartDukaan

Rev

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

Rev 26564 Rev 26565
Line 670... Line 670...
670
		for (Map.Entry<Object, Double> totalRetailerCashback : totalRetailerCashbacks.entrySet()) {
670
		for (Map.Entry<Object, Double> totalRetailerCashback : totalRetailerCashbacks.entrySet()) {
671
			int retailerId = (Integer) totalRetailerCashback.getKey();
671
			int retailerId = (Integer) totalRetailerCashback.getKey();
672
			float amount = totalRetailerCashback.getValue().floatValue();
672
			float amount = totalRetailerCashback.getValue().floatValue();
673
			if (Math.round(amount) > 0) {
673
			if (Math.round(amount) > 0) {
674
				walletService.addAmountToWallet(retailerId, referenceId, WalletReferenceType.CASHBACK,
674
				walletService.addAmountToWallet(retailerId, referenceId, WalletReferenceType.CASHBACK,
675
						"Recharge Cashback", Math.round(amount));
675
						"Recharge Cashback", Math.round(amount), LocalDateTime.now());
676
			}
676
			}
677
		}
677
		}
678
		for (RechargeTransaction rt : pendingTransactions) {
678
		for (RechargeTransaction rt : pendingTransactions) {
679
			rt.setCashbackTimestamp(cashbackTime);
679
			rt.setCashbackTimestamp(cashbackTime);
680
			rt.setCashbackReference(referenceId);
680
			rt.setCashbackReference(referenceId);