Send invoices by email.
This commit is contained in:
@@ -32,9 +32,20 @@ class Invoice extends Model
|
||||
*/
|
||||
protected $appends = [
|
||||
'created',
|
||||
'number'
|
||||
'number',
|
||||
'localized_state'
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the invoice state as translated string.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLocalizedStateAttribute(): string
|
||||
{
|
||||
return __('invoice.state_' . $this->status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the invoice number formatted
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user