Fixing the API route as it is currently impossible to pay a Facture::TYPE_CREDIT_NOTE with this route (it keeps negating the ttc amount used as resteapayer), inspired by the other route /paymentsdistributed, line 1717.
* NEW: Setting proposal contact to any in proposal contact dicitonary
* hurl tests and a little general cleanup of proposals api
* testing if the supplied type is in the dictionary
* Unique error codes
* Giving better error messages
* Making hurl tests reasonably identical for: proposals, orders and invoices
* BREAKING proposals, to make it identical with order and invoice + support for non default contacts for orders and invoices just like proposals
* adding the missing global to order and invoice
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
* 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 create invoice from order using API and multi-entity
* FIX API not allow to access order in other entity on creating invoice from order
* Update api_invoices.class.php
---------
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>
# Fix#33689 - missing rename
Assignment to $result in code before fixing phan notice
seem be an error, but in fact the assignment is useless
and the code only expects a potential exception.