| Line 343... |
Line 343... |
| 343 |
GadgetCopsInsuranceCalcResponse calcResponse = new GadgetCopsInsuranceCalcResponse();
|
343 |
GadgetCopsInsuranceCalcResponse calcResponse = new GadgetCopsInsuranceCalcResponse();
|
| 344 |
calcResponse.setDealerPrice(calc.getDealerPrice());
|
344 |
calcResponse.setDealerPrice(calc.getDealerPrice());
|
| 345 |
calcResponse.setPriceRangeMax(calc.getPriceRangeMax());
|
345 |
calcResponse.setPriceRangeMax(calc.getPriceRangeMax());
|
| 346 |
calcResponse.setPriceRangeMin(calc.getPriceRangeMin());
|
346 |
calcResponse.setPriceRangeMin(calc.getPriceRangeMin());
|
| 347 |
float taxableInsuranceMargin = (calc.getSellingPrice() - calc.getDealerPrice()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);
|
347 |
float taxableInsuranceMargin = (calc.getSellingPrice() - calc.getDealerPrice()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);
|
| 348 |
calcResponse.setCashBack(taxableInsuranceMargin);
|
348 |
calcResponse.setCashBack((int)taxableInsuranceMargin);
|
| 349 |
calcResponseList.add(calcResponse);
|
349 |
calcResponseList.add(calcResponse);
|
| 350 |
}
|
350 |
}
|
| 351 |
return calcResponseList;
|
351 |
return calcResponseList;
|
| 352 |
}
|
352 |
}
|
| 353 |
|
353 |
|