public function InvoiceItemInterface::setUnitPrice in Commerce Invoice 8.2
Sets the invoice item unit price.
Parameters
\Drupal\commerce_price\Price $unit_price: The invoice item unit price.
Return value
$this
1 method overrides InvoiceItemInterface::setUnitPrice()
- InvoiceItem::setUnitPrice in src/
Entity/ InvoiceItem.php - Sets the invoice item unit price.
File
- src/
Entity/ InvoiceItemInterface.php, line 120
Class
- InvoiceItemInterface
- Defines the interface for invoice items.
Namespace
Drupal\commerce_invoice\EntityCode
public function setUnitPrice(Price $unit_price);