| Line 685... |
Line 685... |
| 685 |
payoutSchemeSummaryModelMap.put(schemeSummaryModelToProcess, new AmountModel(schemeSummaryModelToProcess.getAmount(), schemeSummaryModelToProcess.getAmountType()));
|
685 |
payoutSchemeSummaryModelMap.put(schemeSummaryModelToProcess, new AmountModel(schemeSummaryModelToProcess.getAmount(), schemeSummaryModelToProcess.getAmountType()));
|
| 686 |
}
|
686 |
}
|
| 687 |
}
|
687 |
}
|
| 688 |
double walletCredit = 0d;
|
688 |
double walletCredit = 0d;
|
| 689 |
if (fixedToPay > 0) {
|
689 |
if (fixedToPay > 0) {
|
| 690 |
double fixedRollout = fixedToPay * (1 - inventoryPayoutModel.getPercentageAmount()) / (100 + inventoryPayoutModel.getPercentageAmount());
|
690 |
double fixedRollout = fixedToPay * (100 / (100 + inventoryPayoutModel.getPercentageAmount()));
|
| 691 |
for (Map.Entry<SchemeSummaryModel, AmountModel> schemeSummaryModelAmountModelEntry : payoutSchemeSummaryModelMap.entrySet()) {
|
691 |
for (Map.Entry<SchemeSummaryModel, AmountModel> schemeSummaryModelAmountModelEntry : payoutSchemeSummaryModelMap.entrySet()) {
|
| 692 |
SchemeSummaryModel schemeSummaryModel = schemeSummaryModelAmountModelEntry.getKey();
|
692 |
SchemeSummaryModel schemeSummaryModel = schemeSummaryModelAmountModelEntry.getKey();
|
| 693 |
AmountModel amountModel = schemeSummaryModelAmountModelEntry.getValue();
|
693 |
AmountModel amountModel = schemeSummaryModelAmountModelEntry.getValue();
|
| 694 |
if (amountModel.getAmountType().equals(AmountType.FIXED)) {
|
694 |
if (amountModel.getAmountType().equals(AmountType.FIXED)) {
|
| 695 |
SchemeInOut sio = new SchemeInOut();
|
695 |
SchemeInOut sio = new SchemeInOut();
|