public function Invoice::removeAdjustment in Commerce Invoice 8.2
Removes an adjustment.
Parameters
\Drupal\commerce_order\Adjustment $adjustment: The adjustment to remove.
Return value
$this
Overrides EntityAdjustableInterface::removeAdjustment
File
- src/
Entity/ Invoice.php, line 336
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function removeAdjustment(Adjustment $adjustment) {
$this
->get('adjustments')
->removeAdjustment($adjustment);
$this
->recalculateTotalPrice();
return $this;
}