Subversion Repositories SmartDukaan

Rev

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

Rev 23664 Rev 23665
Line 182... Line 182...
182
					dailyRecharge.setWalletRechargeAmount(dailyWalletRecharge);
182
					dailyRecharge.setWalletRechargeAmount(dailyWalletRecharge);
183
					dailyRecharge.setTotalCommission(totalCommission);
183
					dailyRecharge.setTotalCommission(totalCommission);
184
					float closingBalance = dailyRecharge.getOpeningBalance() + dailyWalletRecharge - dailyAmount;
184
					float closingBalance = dailyRecharge.getOpeningBalance() + dailyWalletRecharge - dailyAmount;
185
					dailyRecharge.setClosingBalance(closingBalance);
185
					dailyRecharge.setClosingBalance(closingBalance);
186
					dailyRechargeRepository.persist(dailyRecharge);
186
					dailyRechargeRepository.persist(dailyRecharge);
-
 
187
					x.setAmount(x.getAmount() + dailyRecharge.getClosingBalance() - dailyRecharge.getOpeningBalance());
187
				}
188
				}
188
				date = date.plusDays(1);
189
				date = date.plusDays(1);
189
			}
190
			}
-
 
191
			rechargeProviderRepository.persist(x);
190
		});
192
		});
191
	}
193
	}
192
 
194
 
193
	@RequestMapping(value = "/cron/reconcile-recharge", method = RequestMethod.GET)
195
	@RequestMapping(value = "/cron/reconcile-recharge", method = RequestMethod.GET)
194
	public String reconcileRecharge(Model model) throws Exception {
196
	public String reconcileRecharge(Model model) throws Exception {