diff --git a/app/Models/Banking/Transaction.php b/app/Models/Banking/Transaction.php index 89b1f5440..cb7281a05 100644 --- a/app/Models/Banking/Transaction.php +++ b/app/Models/Banking/Transaction.php @@ -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; } /** diff --git a/resources/views/components/transactions/template/default.blade.php b/resources/views/components/transactions/template/default.blade.php index 55cd98b2c..59ca8c9bc 100644 --- a/resources/views/components/transactions/template/default.blade.php +++ b/resources/views/components/transactions/template/default.blade.php @@ -5,8 +5,8 @@ @if (!$hideCompanyLogo)