mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-18 09:18:40 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
5584be47cf
|
|
@ -5,11 +5,13 @@ declare(strict_types=1);
|
|||
class MYPDF extends TCPDF
|
||||
{
|
||||
public string $fontName = '';
|
||||
|
||||
public int $fontSize = 8;
|
||||
|
||||
public int $sideMargin = 15;
|
||||
|
||||
//Page header
|
||||
public function Header() {
|
||||
public function Header() : void {
|
||||
if ($this->header_xobjid === false) {
|
||||
$this->header_xobjid = $this->startTemplate($this->w, 0);
|
||||
|
||||
|
|
@ -32,7 +34,7 @@ class MYPDF extends TCPDF
|
|||
$x = 0;
|
||||
$dx = 0;
|
||||
|
||||
if (!$this->header_xobj_autoreset AND $this->booklet AND (($this->page % 2) == 0)) {
|
||||
if (!$this->header_xobj_autoreset && $this->booklet && (($this->page % 2) == 0)) {
|
||||
// adjust margins for booklet mode
|
||||
$dx = ($this->original_lMargin - $this->original_rMargin);
|
||||
}
|
||||
|
|
@ -51,7 +53,7 @@ class MYPDF extends TCPDF
|
|||
}
|
||||
|
||||
// Page footer
|
||||
public function Footer() {
|
||||
public function Footer() : void {
|
||||
$this->SetY(-25);
|
||||
|
||||
$this->SetFont('helvetica', 'I', 7);
|
||||
|
|
@ -178,8 +180,8 @@ $data = [
|
|||
];
|
||||
|
||||
// Header
|
||||
$w = array($pdf->getPageWidth() - 20 - 20 - 20 - 2*15, 20, 20, 20);
|
||||
$num_headers = count($header);
|
||||
$w = [$pdf->getPageWidth() - 20 - 20 - 20 - 2 * 15, 20, 20, 20];
|
||||
$num_headers = \count($header);
|
||||
|
||||
$pdf->setCellPadding(1, 1, 1, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,14 +15,12 @@ declare(strict_types=1);
|
|||
namespace Modules\Billing\Admin;
|
||||
|
||||
use Modules\Billing\Models\BillTransferType;
|
||||
use Modules\Media\Models\NullCollection;
|
||||
use phpOMS\Application\ApplicationAbstract;
|
||||
use phpOMS\Config\SettingsInterface;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
use phpOMS\Module\InstallerAbstract;
|
||||
use phpOMS\Module\ModuleInfo;
|
||||
use phpOMS\Message\Http\HttpRequest;
|
||||
use phpOMS\Message\Http\HttpResponse;
|
||||
use phpOMS\Module\InstallerAbstract;
|
||||
use phpOMS\Module\ModuleInfo;
|
||||
use phpOMS\Uri\HttpUri;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -24,9 +24,8 @@ use Modules\Billing\Models\BillMapper;
|
|||
use Modules\Billing\Models\BillStatus;
|
||||
use Modules\Billing\Models\BillTransferType;
|
||||
use Modules\Billing\Models\BillType;
|
||||
use phpOMS\Localization\BaseStringL11n;
|
||||
use Modules\Billing\Models\BillTypeMapper;
|
||||
use Modules\Billing\Models\BillTypeL11nMapper;
|
||||
use Modules\Billing\Models\BillTypeMapper;
|
||||
use Modules\Billing\Models\SettingsEnum;
|
||||
use Modules\ClientManagement\Models\ClientMapper;
|
||||
use Modules\ItemManagement\Models\ItemMapper;
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ namespace Modules\Billing\Models;
|
|||
|
||||
use Modules\Media\Models\Collection;
|
||||
use Modules\Media\Models\NullCollection;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
use phpOMS\Localization\BaseStringL11n;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
|
||||
/**
|
||||
* Bill type enum.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user