/** * Get the discount amount for the invoice. * * @return float|null */ public function amountOff() { if (isset($this->discount->coupon->amount_off)) { return $this->billable->formatCurrency($this->discount->coupon->amount_off); } }
/** * Get the total for the line item. * * @return float */ public function total() { return $this->billable->formatCurrency($this->amount); }