Send invoices by email.

This commit is contained in:
2025-01-09 11:18:12 +01:00
parent 8da6da471d
commit 6235112f74
19 changed files with 468 additions and 23 deletions

View File

@@ -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
*/