diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 7155c42688..7d41c6aeb1 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -12,6 +12,7 @@ namespace App\Services\PdfMaker; +use App\Models\Credit; use App\Models\Quote; use App\Services\PdfMaker\Designs\Utilities\BaseDesign; use App\Services\PdfMaker\Designs\Utilities\DesignHelpers; @@ -194,6 +195,10 @@ class Design extends BaseDesign $variables = $this->context['pdf_variables']['quote_details']; } + if ($this->entity instanceof Credit) { + $variables = $this->context['pdf_variables']['credit_details']; + } + $elements = []; // We don't want to show account balance or invoice total on PDF.. or any amount with currency.