| Line 346... |
Line 346... |
| 346 |
boolean response = false;
|
346 |
boolean response = false;
|
| 347 |
if (priceDrop.getPartnerPayout() == 0) {
|
347 |
if (priceDrop.getPartnerPayout() == 0) {
|
| 348 |
priceDrop.setPartnerPayout(priceDropProcessModel.getPartnerPayout());
|
348 |
priceDrop.setPartnerPayout(priceDropProcessModel.getPartnerPayout());
|
| 349 |
}
|
349 |
}
|
| 350 |
priceDrop.setProcessTimestamp(LocalDateTime.now());
|
350 |
priceDrop.setProcessTimestamp(LocalDateTime.now());
|
| - |
|
351 |
// Generate IMEI rows if missing — a manually-flagged hike has none yet (its priceDropStatus
|
| - |
|
352 |
// ran at creation while deduct_on_hike was false). Idempotent: no-op once rows exist (drops).
|
| - |
|
353 |
priceDropService.priceDropStatus(priceDrop.getId());
|
| 351 |
priceDropService.processPriceDrop(priceDrop.getId(), priceDropProcessModel.isActivatedOnly());
|
354 |
priceDropService.processPriceDrop(priceDrop.getId(), priceDropProcessModel.isActivatedOnly());
|
| 352 |
response = true;
|
355 |
response = true;
|
| 353 |
model.addAttribute("response1", mvcResponseSender.createResponseString(response));
|
356 |
model.addAttribute("response1", mvcResponseSender.createResponseString(response));
|
| 354 |
return "response";
|
357 |
return "response";
|
| 355 |
}
|
358 |
}
|