* Qual: fix commonstickergen..don.class
* Fix notifications for pdf_paiement...cronjob.class
* Qual: Fix notifications for emailcollector..price_parser.class
* Ensure that NULL is used in the database when fk's are 0/empty
* Fix notifications for pdf_paiement...cronjob.class
* Cope with updated phpstan, and make fk_origin_stock int in multiple locations
* don't set `$echeances->lines` to null to prevent fatal error
also replace wrong variable `$echeance` with `$new_echeance`
#30655
* replace "step1" with a more speaking error message
#30655
---------
Co-authored-by: Oliver Lippert <oliver@lipperts-web.de>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* 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
* qual: phpstan for htdocs/core/lib/images.lib.php
htdocs/core/lib/images.lib.php 636 Function vignette() should return string but returns int.
* qual: phpstan for htdocs/core/lib/product.lib.php
htdocs/core/lib/product.lib.php 839 Function measuringUnitString() should return string but returns int.
* qual: phpstan for htdocs/core/lib/website.lib.php
htdocs/core/lib/website.lib.php 222 Function dolWebsiteReplacementOfLinks() should return bool but returns string.
* qual: phpstan for htdocs/core/lib/functions.lib.php
htdocs/core/lib/functions.lib.php 9576 Function dol_getIdFromCode() should return int but returns string.
* qual: phpstan for htdocs/core/modules/import/modules_import.php
htdocs/core/modules/import/modules_import.php 173 Method ModeleImports::getDriverId() should return int but returns string.
* qual: phpstan for htdocs/core/modules/mailings/thirdparties_services_expired.modules.php
htdocs/core/modules/mailings/thirdparties_services_expired.modules.php 100 Method mailing_thirdparties_services_expired::add_to_target() should return int but returns string.
* qual:phpstan for htdocs/loan/schedule.php
htdocs/loan/schedule.php 80 Property LoanSchedule::$datec (string) does not accept int.
* Fix page redirection on loan delete.
* Add dedicated status for loan with started payment (show if payment is
started on loan card).
* Add fk_payment_loan property for loan_schedule and add link to loan payment
on shedule page for paid line.
* Make it not possible to use schedule if start loan payment without it (else
values in schedule can't be good).
* If modify capital in payment with schedule set, automatically updates it
with the new value.
* Can't modify interest in payment if schedule is used (causes the
inconsistency for value in schedule).
* User right verification on schedule page.