public function InvoiceItem::getQuantity in Commerce Invoice 8.2
Gets the invoice item quantity.
Return value
string The invoice item quantity
Overrides InvoiceItemInterface::getQuantity
2 calls to InvoiceItem::getQuantity()
- InvoiceItem::getAdjustedUnitPrice in src/
Entity/ InvoiceItem.php - Gets the adjusted invoice item unit price.
- InvoiceItem::recalculateTotalPrice in src/
Entity/ InvoiceItem.php - Recalculates the invoice item total price.
File
- src/
Entity/ InvoiceItem.php, line 115
Class
- InvoiceItem
- Defines the invoice item entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function getQuantity() {
return (string) $this
->get('quantity')->value;
}