mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for pdf viewer
This commit is contained in:
parent
fa3fc05f7c
commit
48c20b35b8
@ -683,7 +683,7 @@ class Invoice extends BaseModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function pdf_file_path($invitation = null, string $type = 'path', bool $portal = false)
|
public function pdf_file_path($invitation = null, string $type = 'path', bool $portal = false)
|
||||||
{return "data:application/pdf;base64,".base64_encode((new CreateRawPdf($invitation, $invitation->company->db))->handle());
|
{
|
||||||
|
|
||||||
if (! $invitation) {
|
if (! $invitation) {
|
||||||
if ($this->invitations()->exists()) {
|
if ($this->invitations()->exists()) {
|
||||||
|
@ -21,9 +21,6 @@ class GetPurchaseOrderPdf extends AbstractService
|
|||||||
{
|
{
|
||||||
public function __construct(public PurchaseOrder $purchase_order, public ?VendorContact $contact = null)
|
public function __construct(public PurchaseOrder $purchase_order, public ?VendorContact $contact = null)
|
||||||
{
|
{
|
||||||
$this->purchase_order = $purchase_order;
|
|
||||||
|
|
||||||
$this->contact = $contact;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user