* 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>
* Hurl checks update Friday November 21st 2025
* Looks like someone changed how to handle the multi entity tests that I used earlier
* updating warehouse check
* same update for users api
* and for group api
* fix GUI admin/mails_template.php checks
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
- Added `--quiet` or `-q` option to disable informational output
- Updated help message to include the new option
- Modified print functions to respect quiet mode
* remove hurl test that requires a contract to exist
* change emailtemplates hurl tests to work when there is debug information in the API response
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
* Fix: test for existing DOLAPIKEY before trying to get it using username and password
* remove the print statement that made the API key be wrong
* writing print_info to stderr
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
* Fix hurl assert for API warehouses to new reply from Dolibarr
* Asserting with jsonpath can handle if there are extra keys in the json like debug which mdeweerd experienced
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
- Added detailed documentation for running specific tests, including options and exclusions
- Improved installation instructions with platform-specific guidance
- Enhanced error handling and user feedback
- Added support for GitHub-compatible messages
- Improved script structure and readability
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* NEW: adding tms and datec to email templates
* Escaping a timestamp string I just generated myself
* switching single and double quotes in escape line for tms and datec to make the build system happy?
* Add an id to the table
* showing better names than tms and datec
* Changing code to label to fix#29116
* using hregis advice to use idate not escape the string with date
* requested changes
* forgot to add my name to editors
* had to make class changes for API to work
* setting datec back to int|string
* removing unused code lines and using idate in the api file
* no tms in create or update, but select. No datec in update
* expanding hurl tests to prevent post with id or tms, put with id or datec
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
* QUAL: API contract: RestException update, check if thirdparty exists before creating contract
* using the entity of this contract
* Safer usage of getEntity
* using global ->entity
* testing if create with socid=0 should fail
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
* QUAL: API contract: RestException update, check if thirdparty exists before creating contract
* also checking if socid exists during put
* using the entity of this contract
* also fixing entity during post
* some hurl tests of contract api
* check if contract id is 0, because that is not possible
* check (un)activate permissions and getEntity()
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* mostly updating fetch with all the fields and adding 2 missing variables
* adding throw RestException numbers, @url and a test for if you try with id=0
* Adding hurl file that do some testing og warehouses API endpoints
* Class for API prevented ever seeing model_pdf in API json
* Check for auth before doing other tests on the request
* New function list Products in warehouse. Work done by defrance, revived by JonB
* API PUT/update now allows for more database fields
* hurl tests for the new list products in warehouse endpoint
* also rejecting warehouse_id in a post
* pre-commit fix api warehouses
* copy paste error from api_usergroup
* Just return the lines, no cleaning needed
* PHAN fixes
* trying to fix PHAN error
* fix api update so it returns error when error, and fix object->update with import_key
* this->db not global db
* Advice from hregis
* Typo this d not dB
* Array of strings
* Changed listProducts in warehouse, uses api_product->get with variables from that
* hurl tests for API warehouses, and the new function get products in warehouse
* some STAN fixes
* more phan fixes
* changes revealed necessary by hurl testing
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>