| @@ 341-349 (lines=9) @@ | ||
| 338 | * |
|
| 339 | * @return void |
|
| 340 | */ |
|
| 341 | public function setAmount() |
|
| 342 | { |
|
| 343 | $exact = $this->getOriginalPurgeValue('amount_exact'); |
|
| 344 | $percentage = $this->getOriginalPurgeValue('amount_percentage'); |
|
| 345 | ||
| 346 | $this->amount = $this->is_percentage |
|
| 347 | ? $percentage |
|
| 348 | : $exact; |
|
| 349 | } |
|
| 350 | } |
|
| 351 | ||
| @@ 94-102 (lines=9) @@ | ||
| 91 | * |
|
| 92 | * @return void |
|
| 93 | */ |
|
| 94 | public function setAmount() |
|
| 95 | { |
|
| 96 | $exact = $this->getOriginalPurgeValue('amount_exact'); |
|
| 97 | $percentage = $this->getOriginalPurgeValue('amount_percentage'); |
|
| 98 | ||
| 99 | $this->amount = $this->is_percentage |
|
| 100 | ? $percentage |
|
| 101 | : $exact; |
|
| 102 | } |
|
| 103 | } |
|
| 104 | ||