* New options for withdraw control
Add a new option "WITHDRAW_STRICT_CHECK_AMOUNT"
Transfer request control is based solely on the supplier invoice amount:
By default, once a request is made, even if its amount is less than the invoice amount, no additional requests can be made until the original request is validated (integrated into a transfer slip).
With this option, the control is applied to the sum of all requests, even if they are not integrated into a SEPA transfer slip.
The control verifies that the total sum of the requests never exceeds the invoice total.
By default, one or more requests exceeding the invoice amount can be entered; this option prevents this behavior.
This behavior is more logical and user-friendly, especially when transfer requests are made by technicians or buyers and the SEPA files are created by the accounting department.
* fix
* Update commoninvoice.class.php
* fichier lang
* Cast remaining amounts to float for precision
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* backport de la liste des ressources v23
* fix oauth api conexion
* fix oauth api conexion
* fix oauth api conexion
* Fix CI
* fix: in some case on create invoice when create PDF the lang is not correcly defined because ->thirdparty is not set (#37287)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* add microsoft exchange oauth
* add microsoft exchange oauth
* add microsoft exchange oauth
* add microsoft exchange oauth
* add microsoft exchange oauth
* Revert unintended changes to resource list
* Tidy OAuth logging and consent prompt
* Fix PHPCS blank line warnings
---------
Co-authored-by: ATM-Lucas <lucas.mantegari@atm-consulting.fr>
Co-authored-by: VIAL-GOUTEYRON Quentin <quentin.vial-gouteyron@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net>
Co-authored-by: HENRY Florian <florian.henry@open-concept.pro>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Debug savedemo
* Fix mention
* FIX upload of files with multiple spaces via drag'n'drop flow
Currently there are two ways to upload files to products, orders, etc. via the "old" way and the document tab and the "new" flow via drag'n'drop on the main tab of the object.
Both ways triggering completely different code paths. In the end the new way uses dol_sanitzieFileName to sanitize the name of the file and the old way uses dol_string_nohtmltag (both from functions.lib.php).
One of the main difference between the two mentioned functions is that in the old way multiple spaces behind each other are replaced by a single space. E.g. "A␠␠B␠␠␠C␠␠D" is tranformed to "A␠B␠C␠D".
This is needed to make sure that the files are properly uploaded and can be later also downloaded correctly.
How to reproduce?
Upload a file like "test␠␠test.txt" via the drag'n'drop flow and try to download it from the document tab. This is not working. You can see the file but cannot download it. The same flow via the input field of the document tab is working correctly.
* typo in comment
* FIX Phan warnings (unrelated to feature)
* FIX Phan warnings (unrelated to feature)
* FIX Phan warnings (unrelated to feature)
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Recreate the OAuth service with its configured scopes when refreshing an access token (required by some providers like Microsoft v2).
Also keep the previous refresh token when the refreshed token does not include one (e.g. Google returns it only once).
Co-authored-by: caminotravelcenter <caminotravelcenter@localhost>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>