| @@ 338-346 (lines=9) @@ | ||
| 335 | * |
|
| 336 | * @return void |
|
| 337 | */ |
|
| 338 | public function setAmount() |
|
| 339 | { |
|
| 340 | $exact = $this->getOriginalPurgeValue('amount_exact'); |
|
| 341 | $percentage = $this->getOriginalPurgeValue('amount_percentage'); |
|
| 342 | ||
| 343 | $this->amount = $this->is_percentage |
|
| 344 | ? $percentage |
|
| 345 | : $exact; |
|
| 346 | } |
|
| 347 | } |
|
| 348 | ||
| @@ 115-123 (lines=9) @@ | ||
| 112 | * |
|
| 113 | * @return void |
|
| 114 | */ |
|
| 115 | public function setAmount() |
|
| 116 | { |
|
| 117 | $exact = $this->getOriginalPurgeValue('amount_exact'); |
|
| 118 | $percentage = $this->getOriginalPurgeValue('amount_percentage'); |
|
| 119 | ||
| 120 | $this->amount = $this->is_percentage |
|
| 121 | ? $percentage |
|
| 122 | : $exact; |
|
| 123 | } |
|
| 124 | } |
|
| 125 | ||