public function Invoice::setAdjustments in Commerce Invoice 8.2
Sets the adjustments.
Parameters
\Drupal\commerce_order\Adjustment[] $adjustments: The adjustments.
Return value
$this
Overrides EntityAdjustableInterface::setAdjustments
File
- src/
Entity/ Invoice.php, line 318
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function setAdjustments(array $adjustments) {
$this
->set('adjustments', $adjustments);
$this
->recalculateTotalPrice();
return $this;
}