v2.5.13: Fixed class definition order for TCPDF dependency
- Moved custom PDF class definition after TCPDF include - Custom class now extends TCPDF after it's properly loaded - Fixed 'Class TCPDF not found' error by correct class definition order - Custom PDF class now works with proper dependency loading - Updated module version to 2.5.13
This commit is contained in:
parent
14427dec13
commit
5edb85872b
@ -1,5 +1,13 @@
|
||||
# CHANGELOG MODULE DECLARATIONTVA FOR [DOLIBARR ERP CRM](https://www.dolibarr.org)
|
||||
|
||||
## 2.5.13
|
||||
|
||||
### Bug Fixes
|
||||
- **Fixed Class Definition Order**: Moved custom PDF class definition after TCPDF include
|
||||
- **Proper Class Loading**: Custom class now extends TCPDF after it's loaded
|
||||
- **Error Resolution**: Fixed "Class TCPDF not found" error by correct class definition order
|
||||
- **Stable Implementation**: Custom PDF class now works with proper dependency loading
|
||||
|
||||
## 2.5.12
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@ -16,6 +16,23 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* \file core/class/declarationtva_pdf.class.php
|
||||
* \ingroup declarationtva
|
||||
* \brief PDF generation for CA-3 declarations
|
||||
*/
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
|
||||
// Load TCPDF for PDF support (Dolibarr's standard)
|
||||
require_once DOL_DOCUMENT_ROOT.'/includes/tecnickcom/tcpdf/tcpdf.php';
|
||||
|
||||
// Load FPDI-TCPDF for fillable PDF support
|
||||
require_once DOL_DOCUMENT_ROOT.'/custom/declarationtva/vendor/autoload.php';
|
||||
|
||||
/**
|
||||
* Custom PDF class with footer functionality
|
||||
*/
|
||||
@ -51,22 +68,6 @@ class DeclarationTVA_CustomPDF extends TCPDF
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* \file core/class/declarationtva_pdf.class.php
|
||||
* \ingroup declarationtva
|
||||
* \brief PDF generation for CA-3 declarations
|
||||
*/
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
|
||||
// Load TCPDF for PDF support (Dolibarr's standard)
|
||||
require_once DOL_DOCUMENT_ROOT.'/includes/tecnickcom/tcpdf/tcpdf.php';
|
||||
|
||||
// Load FPDI-TCPDF for fillable PDF support
|
||||
require_once DOL_DOCUMENT_ROOT.'/custom/declarationtva/vendor/autoload.php';
|
||||
|
||||
/**
|
||||
* Class to generate CA-3 declaration PDF
|
||||
*/
|
||||
|
||||
@ -76,7 +76,7 @@ class modDeclarationTVA extends DolibarrModules
|
||||
$this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@declarationtva'
|
||||
|
||||
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
|
||||
$this->version = '2.5.12';
|
||||
$this->version = '2.5.13';
|
||||
// Url to the file with your last numberversion of this module
|
||||
//$this->url_last_version = 'http://www.example.com/versionmodule.txt';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user