fixed invoice pdf attachment

This commit is contained in:
Denis Duliçi
2021-04-29 18:12:37 +03:00
parent 2e695865bc
commit 5079a0bb30
7 changed files with 69 additions and 69 deletions

View File

@ -363,6 +363,11 @@ class Document extends Model
return $amount;
}
public function getTemplatePathAttribute($value = null)
{
return $value ?: 'sales.invoices.print_' . setting('invoice.template');
}
protected static function newFactory(): Factory
{
return DocumentFactory::new();