Payment show and pdf fixed..

This commit is contained in:
Cüneyt Şentürk
2021-06-28 18:38:56 +03:00
parent fcc8d4f29a
commit 293a659f22
3 changed files with 14 additions and 3 deletions

View File

@ -393,7 +393,8 @@ class Transaction extends Model
public function getTemplatePathAttribute($value = null)
{
return $value ?: 'sales.revenues.print_default';
$type_for_theme = ($this->type == 'income') ? 'sales.revenues.print_default' : 'purchases.payments.print_default';
return $value ?: $type_for_theme;
}
/**