mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 13:54:34 -04:00
Show correct variables for credits PDF
This commit is contained in:
parent
0429474abc
commit
d69f3dd0d0
@ -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…
x
Reference in New Issue
Block a user