* Add Hook for adapting virtual stock in replenish screen
Currently it is only possible to hook in the loadvirtualstock hook to adapt the virtual stock by external modules. The newer version of the replenish screen doesn't use this hook anymore (by loading stock from product object) as it now uses faster sql queries. Therefore the external module cannot adapt this area and there is an missmatch of the view in replenish.php and the stock tab of the product.
* fix phan warning
- when filtering on inactive services with pagination, clicking on 'next page' will lose filter for 'inactive' status.
- when filtered on 'active / expired' or 'active / not expired', the '(not) expired' part was lost after navigating to next/prev page
See issue #37259:
Currently, reverse charge is only applied, if the supplier is based in the EEC.
At least for a German B2B customers, reverse charge has to get applied to any supplier outside of the home country.
The fix is non-invasive by providing a const ACCOUNTING_REVERSE_CHARGE_ALSO_NON_EEC to allow for a broader application of the already implemented RC rules.
* Clean filenames with double spaces
If a filename contains double spaces, it can get uploaded in Dolibarr exactly as it is.
When listing the file or trying to download it, the dolibarr functions clear double spaces in the filename. In particular the alpha parameter for GETPOST.
This results in files being uploaded (e.g. attachments for invoices) than can get listed but remain inaccessible and even cannot get deleted via UI.
We either need to fix all these places to accept double spaces or we change a single location, when we sanitize filenames.
* removed white space
* Add missing CSRF tokens in bank left menu links
* clean QUAL
* Update eldy.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* FIX: Backport fix on v20 for result page of compta (/compta/resultat/index.php). The expense report were not included when the module was activated
* Update index.php
---------
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.
* 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