/**
  * 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);
     }
 }
示例#2
0
 /**
  * Get the currency for the billable entity.
  *
  * @return string
  */
 protected function getCurrency()
 {
     return $this->billable->getCurrency();
 }
 /**
  * Get the total for the line item.
  *
  * @return float
  */
 public function total()
 {
     return $this->billable->formatCurrency($this->amount);
 }