Subversion Repositories SmartDukaan

Rev

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

Rev 23667 Rev 23675
Line 183... Line 183...
183
				}
183
				}
184
				if (dailyAmount > 0 || dailyWalletRecharge > 0) {
184
				if (dailyAmount > 0 || dailyWalletRecharge > 0) {
185
					dailyRecharge.setOpeningBalance(previousDayClosing);
185
					dailyRecharge.setOpeningBalance(previousDayClosing);
186
					dailyRecharge.setProviderId(x.getId());
186
					dailyRecharge.setProviderId(x.getId());
187
					dailyRecharge.setWalletRechargeAmount(dailyWalletRecharge);
187
					dailyRecharge.setWalletRechargeAmount(dailyWalletRecharge);
-
 
188
					dailyRecharge.setTotalAmount(dailyAmount);
188
					dailyRecharge.setTotalCommission(totalCommission);
189
					dailyRecharge.setTotalCommission(totalCommission);
189
					float closingBalance = dailyRecharge.getOpeningBalance() + dailyWalletRecharge - dailyAmount;
190
					float closingBalance = dailyRecharge.getOpeningBalance() + dailyWalletRecharge - dailyAmount;
190
					dailyRecharge.setClosingBalance(closingBalance);
191
					dailyRecharge.setClosingBalance(closingBalance);
191
					dailyRechargeRepository.persist(dailyRecharge);
192
					dailyRechargeRepository.persist(dailyRecharge);
192
					x.setAmount(x.getAmount() + dailyRecharge.getClosingBalance() - dailyRecharge.getOpeningBalance());
193
					x.setAmount(x.getAmount() + dailyRecharge.getClosingBalance() - dailyRecharge.getOpeningBalance());