Show correct variables for credits PDF
This commit is contained in:
parent
0429474abc
commit
d69f3dd0d0
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue