| Line 181... |
Line 181... |
| 181 |
throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Check wallet Balance once");
|
181 |
throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Check wallet Balance once");
|
| 182 |
} else {
|
182 |
} else {
|
| 183 |
if (scheduleType.equals(ProfitMandiConstants.BID_CRON_ENUM.TODAY)) {
|
183 |
if (scheduleType.equals(ProfitMandiConstants.BID_CRON_ENUM.TODAY)) {
|
| 184 |
bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|
184 |
bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|
| 185 |
bid.setStatus(ProfitMandiConstants.BID_ENUM.PROCESSING);
|
185 |
bid.setStatus(ProfitMandiConstants.BID_ENUM.PROCESSING);
|
| - |
|
186 |
LOGGER.info("Skipping order due to insufficient balance for id - "+ fofoId+ " Sending mail to RBM");
|
| 186 |
throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Sending mail to RBM");
|
187 |
//throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Sending mail to RBM");
|
| 187 |
} else {
|
188 |
} else {
|
| 188 |
bidService.cancelYesterdayProcessBid(bid);
|
189 |
bidService.cancelYesterdayProcessBid(bid);
|
| - |
|
190 |
LOGGER.info("Skipping order due to insufficient balance for id - "+ fofoId+ " Cancelling the BID");
|
| 189 |
throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Cancelling the BID");
|
191 |
//throw new ProfitMandiBusinessException("Skipping order due to insufficient balance for id - ", fofoId, " ,Cancelling the BID");
|
| 190 |
}
|
192 |
}
|
| 191 |
}
|
193 |
}
|
| 192 |
}
|
194 |
}
|
| 193 |
UserCart userCart = cartService.setCartItems(fofoId, cartItems);
|
195 |
UserCart userCart = cartService.setCartItems(fofoId, cartItems);
|
| 194 |
// createtransactionInternally set the value in transaction table
|
196 |
// createtransactionInternally set the value in transaction table
|
| Line 202... |
Line 204... |
| 202 |
}
|
204 |
}
|
| 203 |
} catch (Exception exception){
|
205 |
} catch (Exception exception){
|
| 204 |
if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
|
206 |
if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
|
| 205 |
bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|
207 |
bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|
| 206 |
bid.setStatus(ProfitMandiConstants.BID_ENUM.PROCESSING);
|
208 |
bid.setStatus(ProfitMandiConstants.BID_ENUM.PROCESSING);
|
| - |
|
209 |
LOGGER.info("Skipping order due to insufficient balance for id - "+ fofoId+ " Cancelling the BID");
|
| 207 |
throw new ProfitMandiBusinessException("Skipping order unable to create load for id - ", fofoId, " ,Sending mail to RBM");
|
210 |
//throw new ProfitMandiBusinessException("Skipping order unable to create load for id - ", fofoId, " ,Sending mail to RBM");
|
| 208 |
}
|
211 |
}
|
| 209 |
}
|
212 |
}
|
| 210 |
|
213 |
|
| 211 |
int transactionId = transactionService.createTransactionInternally(userCart, totalPayableAmount, 0);
|
214 |
int transactionId = transactionService.createTransactionInternally(userCart, totalPayableAmount, 0);
|
| 212 |
//Set here created by
|
215 |
//Set here created by
|