| Line 2104... |
Line 2104... |
| 2104 |
fofoOrderItem.setCgstRate(rate.getCgstRate());
|
2104 |
fofoOrderItem.setCgstRate(rate.getCgstRate());
|
| 2105 |
fofoOrderItem.setSgstRate(rate.getSgstRate());
|
2105 |
fofoOrderItem.setSgstRate(rate.getSgstRate());
|
| 2106 |
fofoOrderItem.setIgstRate(rate.getIgstRate());
|
2106 |
fofoOrderItem.setIgstRate(rate.getIgstRate());
|
| 2107 |
}
|
2107 |
}
|
| 2108 |
}
|
2108 |
}
|
| 2109 |
|
- |
|
| 2110 |
@Override
|
2109 |
@Override
|
| 2111 |
public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws
|
2110 |
public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws
|
| 2112 |
ProfitMandiBusinessException {
|
2111 |
ProfitMandiBusinessException {
|
| - |
|
2112 |
return this.badReturn(null, fofoId, foiBadReturnRequest);
|
| - |
|
2113 |
}
|
| - |
|
2114 |
@Override
|
| - |
|
2115 |
public CustomerCreditNote badReturn(String loginMail,int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws
|
| - |
|
2116 |
ProfitMandiBusinessException {
|
| 2113 |
FofoOrderItem foi = fofoOrderItemRepository.selectById(foiBadReturnRequest.getFofoOrderItemId());
|
2117 |
FofoOrderItem foi = fofoOrderItemRepository.selectById(foiBadReturnRequest.getFofoOrderItemId());
|
| 2114 |
FofoOrder fofoOrder = fofoOrderRepository.selectByOrderId(foi.getOrderId());
|
2118 |
FofoOrder fofoOrder = fofoOrderRepository.selectByOrderId(foi.getOrderId());
|
| 2115 |
if (fofoOrder.getFofoId() != fofoId) {
|
2119 |
if (fofoOrder.getFofoId() != fofoId) {
|
| 2116 |
throw new ProfitMandiBusinessException("Partner Auth", "", "Invalid Order");
|
2120 |
throw new ProfitMandiBusinessException("Partner Auth", "", "Invalid Order");
|
| 2117 |
}
|
2121 |
}
|