fixed invoice pdf attachment
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user