| @@ 341-352 (lines=12) @@ | ||
| 338 | /** |
|
| 339 | * {@inheritdoc} |
|
| 340 | */ |
|
| 341 | public function getAdjustmentsTotalRecursively($type = null) |
|
| 342 | { |
|
| 343 | $total = 0; |
|
| 344 | ||
| 345 | foreach ($this->getAdjustmentsRecursively($type) as $adjustment) { |
|
| 346 | if (!$adjustment->isNeutral()) { |
|
| 347 | $total += $adjustment->getAmount(); |
|
| 348 | } |
|
| 349 | } |
|
| 350 | ||
| 351 | return $total; |
|
| 352 | } |
|
| 353 | ||
| 354 | /** |
|
| 355 | * {@inheritdoc} |
|
| @@ 457-467 (lines=11) @@ | ||
| 454 | /** |
|
| 455 | * {@inheritdoc} |
|
| 456 | */ |
|
| 457 | public function getAdjustmentsTotalRecursively($type = null) |
|
| 458 | { |
|
| 459 | $total = 0; |
|
| 460 | foreach ($this->getAdjustmentsRecursively($type) as $adjustment) { |
|
| 461 | if (!$adjustment->isNeutral()) { |
|
| 462 | $total += $adjustment->getAmount(); |
|
| 463 | } |
|
| 464 | } |
|
| 465 | ||
| 466 | return $total; |
|
| 467 | } |
|
| 468 | ||
| 469 | /** |
|
| 470 | * {@inheritdoc} |
|