public function InvoiceItemInterface::getAdjustedTotalPrice in Commerce Invoice 8.2
Gets the adjusted invoice item total price.
The adjusted total price is calculated by applying the order item's adjustments to the total price. This can include promotions, taxes, etc.
Parameters
string[] $adjustment_types: The adjustment types to include in the adjusted price. Examples: fee, promotion, tax. Defaults to all adjustment types.
Return value
\Drupal\commerce_price\Price|null The adjusted invoice item total price, or NULL.
1 method overrides InvoiceItemInterface::getAdjustedTotalPrice()
- InvoiceItem::getAdjustedTotalPrice in src/
Entity/ InvoiceItem.php - Gets the adjusted invoice item total price.
File
- src/
Entity/ InvoiceItemInterface.php, line 143
Class
- InvoiceItemInterface
- Defines the interface for invoice items.
Namespace
Drupal\commerce_invoice\EntityCode
public function getAdjustedTotalPrice(array $adjustment_types = []);