Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ public function get(string $fieldName)
*/
public function setPrintPage(callable $fx): void
{
if (!($this->getPage('popup') === 'print')) {
return;
}

$this->printPage->set($fx, [$this->invoiceId]);
}

Expand All @@ -153,9 +149,6 @@ public function getDir($dirName)
*/
public function setInvoicePage(callable $fx): void
{
if (!($this->getPage() === 'invoice')) {
return;
}
$this->invoicePage->set($fx, [$this->invoiceId]);
}

Expand All @@ -164,21 +157,9 @@ public function setInvoicePage(callable $fx): void
*/
public function setPaymentPage(callable $fx): void
{
if (!$this->hasPayment || !($this->getPage() === 'payment')) {
return;
}

$this->paymentPage->set($fx, [$this->invoiceId]);
}

/**
* Return current VirtualPage
*/
public function getPage(string $type = 'callback'): string
{
return array_search($type, $_GET) ? array_search($type, $_GET) : '';
}

/**
* Return an IIF js function that will set document.location via javascript.
*/
Expand Down