function PaymentLineItem::totalAmount in Payment 7
Return this line item's total amount.
Parameters
boolean $tax: Whether to include taxes or not.
Return value
float
File
- ./
payment.classes.inc, line 1147 - The API and related functions for executing and managing payments.
Class
- PaymentLineItem
- A payment line item.
Code
function totalAmount($tax) {
return $this->amount * $this->quantity * ($tax ? $this->tax_rate + 1 : 1);
}