mirror of
https://github.com/itflow-org/itflow
synced 2026-03-20 20:54:50 +00:00
Bunch of changes including mpdf library for creating pdf of invoices. It now attaches a PDF invoice when marked sent. Don't mark invoice_status sent if it partial or paid, removed green text from balance under clients only use red if the client has a balance and some other cleanups were done
This commit is contained in:
20
vendor/setasign/fpdi/src/autoload.php
vendored
Normal file
20
vendor/setasign/fpdi/src/autoload.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package setasign\Fpdi
|
||||
* @copyright Copyright (c) 2019 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
*/
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
if (strpos($class, 'setasign\Fpdi\\') === 0) {
|
||||
$filename = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 14)) . '.php';
|
||||
$fullpath = __DIR__ . DIRECTORY_SEPARATOR . $filename;
|
||||
|
||||
if (file_exists($fullpath)) {
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require_once $fullpath;
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user