New date substitution variables with a name matching what is in the json exported through the API
__DATE_CREATION__
__DATE_MODIFICATION__
__DATE_VALIDATION__
* qual: phpstan for htdocs/loan/class/loanschedule.class.php
htdocs/loan/class/loanschedule.class.php 308 Property LoanSchedule::$num_payment (int) does not accept string.
htdocs/loan/class/loanschedule.class.php 317 Property LoanSchedule::$fk_bank (int) does not accept string.
* $num_payment is a string, not an int
This commit adds another option to the variants module to set the global variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT".
This variable allows the variant parent product to be used in stock movements.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Update objectline_create.tpl.php - Auto-fill matching extra fields
This change allows to automatically fill the matching extra fields in a form when adding an object (product/service).
* Change spaces to tabs.
* 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.