You are here

public function Invoice::setTotalPaid in Commerce Invoice 8.2

Sets the total paid price.

Parameters

\Drupal\commerce_price\Price $total_paid: The total paid price.

Overrides InvoiceInterface::setTotalPaid

File

src/Entity/Invoice.php, line 442

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setTotalPaid(Price $total_paid) {
  $this
    ->set('total_paid', $total_paid);
}