| Line 574... |
Line 574... |
| 574 |
List<PriceCircularModel> priceCircular = tagListingRepository.getPriceCircularByBrandAndType(partnerTypes,
|
574 |
List<PriceCircularModel> priceCircular = tagListingRepository.getPriceCircularByBrandAndType(partnerTypes,
|
| 575 |
brands, LocalDateTime.now(), LocalDateTime.now().plusDays(1).toLocalDate().atStartOfDay());
|
575 |
brands, LocalDateTime.now(), LocalDateTime.now().plusDays(1).toLocalDate().atStartOfDay());
|
| 576 |
|
576 |
|
| 577 |
for (PriceCircularModel pc : priceCircular) {
|
577 |
for (PriceCircularModel pc : priceCircular) {
|
| 578 |
|
578 |
|
| 579 |
Long totalScheme = pc.getBasePayout() + pc.getCashDiscount() + pc.getTertiaryPayout()
|
579 |
Long totalScheme = pc.getBasePayout() + pc.getCashDiscount() + pc.getUpfrontMargin()
|
| 580 |
+ pc.getHygienePayout() + pc.getCategoryPayout() + pc.getInvestmentPayout() + pc.getModelSpecfic();
|
580 |
+ pc.getTertiaryPayout() + pc.getHygienePayout() + pc.getCategoryPayout() + pc.getInvestmentPayout()
|
| - |
|
581 |
+ pc.getModelSpecfic();
|
| 581 |
pc.setTotalScheme(totalScheme);
|
582 |
pc.setTotalScheme(totalScheme);
|
| 582 |
long netprice = pc.getSellingPrice() - pc.getTotalScheme();
|
583 |
long netprice = pc.getSellingPrice() - pc.getTotalScheme();
|
| 583 |
pc.setNetPrice(netprice);
|
584 |
pc.setNetPrice(netprice);
|
| 584 |
int mopdpdiff = pc.getMop() - pc.getSellingPrice();
|
585 |
int mopdpdiff = pc.getMop() - pc.getSellingPrice();
|
| 585 |
pc.setMopdp(mopdpdiff);
|
586 |
pc.setMopdp(mopdpdiff);
|