# Qual: Fix phan notices
Some type hints updates + correction to get week from date (action/pertype.php)
+ check that value is not null (pdf_* classes).
* FIX#35766: Update buying price INT Float
loose Decimals
.
* Fix: keep fk_product_fournisseur_price as int; treat buying price as float (no truncation) [#35766]
* Updated per feedback: keep fk_product_fournisseur_price as ?int (rowid) and as float.
Adjusted FactureRec::updateline PHPDoc to ?int and float|'' (model still normalizes via price2num).
Tested on a recurring line: decimals preserved, FK stored as int, CI green. Minor adjustments before v22 backport
* Delete .hooktest
* Delete dev/tools/pre-commit/README.md
* Delete test/phpunit/phpunit.xml
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* add getContacts method on invoice api
Add the getContacts method to fetch both external and internal contacts for a given invoice.
* Change return type from Object to array in API docs
Updated return type in the documentation for the get contacts method.
* Update api_invoices.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* fix CI
* fix
* Qual: Fix newly appeard phan notices
# Qual: Fix newly appeard phan notices
Fix notices that appearce sin a previous phan report - some of these
notices are masked by the current baseline.
---------
Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
Co-authored-by: Frédéric FRANCE <frederic.france@free.fr>
* fix: divided by zero with customer packaging
* fix: divided by zero with customer packaging
* fix: divided by zero with customer packaging
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
(duplicate of $totaldeposits) and $sumcreditnote (duplicate of
$totalcreditnotes) has been removed (there are replaced with the
property that was a duplication of (same for $sumpayed_multicurrency,
$sumdeposit_multicurrency, $sumcreditnote_multicurrency).
* Add thirdparty search on api list
this change allow to seach element with filter on thirdparty (ex : list of bill of with name of thidparty)
* Update api_orders.class.php
* Update api_invoices.class.php
* Update api_contracts.class.php
* Update api_shipments.class.php
* Update api_interventions.class.php
* Update api_projects.class.php
* Update api_tickets.class.php
* Update api_tickets.class.php
* Update api_projects.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>