public function InvoiceInterface::getBalance in Commerce Invoice 8.2
Gets the invoice balance.
Calculated by subtracting the total paid price from the total price. Can be negative in case the invoice was overpaid.
Return value
\Drupal\commerce_price\Price|null The invoice balance, or NULL.
1 method overrides InvoiceInterface::getBalance()
- Invoice::getBalance in src/
Entity/ Invoice.php - Gets the invoice balance.
File
- src/
Entity/ InvoiceInterface.php, line 276
Class
- InvoiceInterface
- Defines the interface for invoices.
Namespace
Drupal\commerce_invoice\EntityCode
public function getBalance();