/** * Get the total amount for the line item with the currency symbol. * * @return string */ public function totalWithCurrency() { if (starts_with($total = $this->total(), '-')) { return '-' . $this->billable->addCurrencySymbol(ltrim($total, '-')); } else { return $this->billable->addCurrencySymbol($total); } }
/** * Get the discount amount with the currency symbol. * * @return string */ public function discountCurrency() { return $this->billable->addCurrencySymbol($this->discount()); }