* Fix#24031 add - if option seleced - grand total to lists
* Fix#24031 add - if option seleced - grand total to lists
* Fix#24031 add - if option seleced - grand total to lists
* Fix#24031 add - if option selected - grand total to lists
* Update ihm.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Qual: Lower severity on php-cs messages that should not block (#28072)
# Qual: Lower severity on php-cs messages that should not block
Some warning messages result in php-cs having an exit code of 2 and others
only have an exit ocde of 1. When the exit code is 2, the warnings are fixable
by php-cbf.
In order to be able to filter on the warnings in the github ci flow, but still
show them in the travis flow, I lower the level of the warnings that should not
be blocking to 4.
At the same time, the php-cs configuration in pre-commit now requires that the
severity is minimum 5 to show the message (level 5 is the default for all warnings
and errors).
So this will limit the warning messages to the ones that should result in a failing
ci action. If any new cases are discovered, they should also be lowered in the
php-cs configuration file.
* Qual: ci: Run pre-commit/php-cs with cache (#28079)
This adds a hook to .pre-commit-config.yaml and updates the workflow
to run php-cs with cache when it is run for all files.
When running on changed files only, the cache is not useful.
The php-codesniffer ruleset.xml was cleaned up (duplicates removal/formatted)
htdocs/holiday/class/holiday.class.php 94 Property Holiday::$date_valid (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 114 Property Holiday::$date_refuse (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 124 Property Holiday::$date_cancel (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 1603 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1614 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1797 Method Holiday::getCPforUser() should return float but returns null.
htdocs/holiday/class/holiday.class.php 1800 Method Holiday::getCPforUser() should return float but returns null.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #7 $seller (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $seller (Societe) of method CommonObject::printObjectLine()
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #8 $buyer (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $buyer (Societe) of method CommonObject::printObjectLine()
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
htdocs/compta/bank/various_payment/card.php 121 Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/various_payment/card.php 129 Property PaymentVarious::$category_transaction (int) does not accept array|string.
htdocs/compta/bank/various_payment/card.php 293 Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/various_payment/card.php 295 Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/class/paymentvarious.class.php 241 Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/class/paymentvarious.class.php 459 Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/sociales/class/paymentsocialcontribution.class.php 539 Property PaymentSocialContribution::$fk_typepaiement (int) does not accept string.
htdocs/intracommreport/class/intracommreport.class.php 193 Method IntracommReport::getXML() should return int|SimpleXMLElement but returns string|false.
htdocs/intracommreport/class/intracommreport.class.php 225 Method IntracommReport::getXMLDes() should return int|SimpleXMLElement but returns string|false.
htdocs/intracommreport/class/intracommreport.class.php 466 Method IntracommReport::getNextDeclarationNumber() should return string but returns (float|int).
htdocs/holiday/class/holiday.class.php 94 Property Holiday::$date_valid (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 114 Property Holiday::$date_refuse (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 124 Property Holiday::$date_cancel (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 1603 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1614 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1797 Method Holiday::getCPforUser() should return float but returns null.
htdocs/holiday/class/holiday.class.php 1800 Method Holiday::getCPforUser() should return float but returns null.
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #7 $seller (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $seller (Societe) of method CommonObject::printObjectLine()
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #8 $buyer (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $buyer (Societe) of method CommonObject::printObjectLine()
# Qual: Fix apstats & add phan
I fixed several issues that I ran into when running apstats.php
locally to test the phan integration.
So this commit only proposes the updates to apstats.php.
I added a test that disables phan when its configurations is not
found so it should be fine to integration in develop.
The files with exceptions can be updated as there are many less cases to
exclude.
In the project files there are a few minor spelling corrections, and
`$scrit` was changed to `$search_crit` to avoid a spelling suggestion.
* Qual: Fix/extend language scripts, integrate in pre-commit
Updated scripts to comply with shellscript.
Integrated one in pre-commit that seems useful.
* Qual: Find duplicate lang keys
* Add line numbers (to allow annotation)
* Fix fixaltlanguages.sh and add to pre-commit
* Make historical language checks 'manual' in 'pre-commit'