* Add missing CSRF tokens in bank left menu links
* clean QUAL
* Update eldy.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Remove 'supplier_invoice' from old path array
* Update module path in arrayforoldpath
Sorry Eldy, I was confused. You are absolutely right, it is already corrected.
* Replace localtax2 assignment with get_localtax function
Error when creating an invoice with personal income tax from project times. The rate does not apply
* Refactor localtax1 calculation using get_localtax
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* FIX#37147 Limit account fetch to active chart of accounts in PDF exports
When multiple chart of accounts have the same account number, the PDF
exports (balance and ledger) could retrieve the wrong account label.
* FIX#37147 Decode HTML entities in balance PDF account group labels
The balance PDF export was displaying HTML entities (like &EACUTE;) instead
of properly decoded characters (like É) in account group labels.
Fixed Bug : email sending test #36741
@defrance
-->
Issue fixed
The problem was caused by initializing $result = 0 in core/actions_sendmails.inc.php.
When sending a test email from Setup → Emails, there is no $object to fetch. As a result, $result remained 0 and the code incorrectly triggered ErrorFailedToReadObject.
The fix consists in explicitly setting $result = 1 when no $object is provided (test email / generic email context). This correctly treats the absence of an object as a valid case and restores the ability to send test emails, while keeping $result properly initialized.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Fix: auto-generate pdf from odt-templates also for not yet validated documents
Not validated documents have a ref containing (PROV
When auto-generating pdf documents from odt documents is activated, this fails for not validated documents: the brackets ( ) in the ref are getting escaped twice which leads the pdf generation to fail.
The change removes the double escaping, the$command is already escaped before. With this change, also for unvalidated documents, pdf documents are getting generated.
* replace ( ) for escapeshellcmd
temporarily replace ( ) by placeholders to avoid them getting escaped
check that no placeholder injection happened before
apply to both execmethods (1 and 2)
* Retrigger check