Commit Graph

794 Commits

Author SHA1 Message Date
Laurent Destailleur
9a6ae3c454 FIX Return a better error message when token is not valid 2023-12-21 19:25:07 +01:00
Christian Foellmann
93ea4379b2 QUAL replace $conf->global with getDolGlobalString() 2023-12-21 13:32:08 +01:00
Laurent Destailleur
ec9c0a0a88 Fix regression 2023-12-15 14:18:30 +01:00
Laurent Destailleur
d92c65ad91 FIX infinite loop in API call/trigger by adding a caller 2023-12-15 12:15:33 +01:00
Laurent Destailleur
fb083a6cfc Fix warning with rector 2023-12-13 16:33:17 +01:00
Laurent Destailleur
987d6c41b9 Fix with php-cs-fixer 2023-12-04 11:41:14 +01:00
Laurent Destailleur
e6eb34a8db Fiw warnings: The private array ->status_short, ->statuts and
->status_long are now array ->labelStatusShort and ->labelStatus
everywhere.
2023-11-24 10:10:24 +01:00
Laurent Destailleur
ca145ef912 QUAL: Endpoint for API /partnershipapi has been renamed into
/partnerships to follow conventions
2023-10-31 13:31:02 +01:00
Laurent Destailleur
ecd4c7bbc7 Comment 2023-10-31 13:05:27 +01:00
Laurent Destailleur
0b9795f34c FIX upload of files src_object_type 2023-10-31 11:52:31 +01:00
Laurent Destailleur
85d36ddc58 FIX src_object_id and ttype not filed when uploading a file with API. 2023-10-31 11:52:17 +01:00
Laurent Destailleur
59b9d12ed5 FIX upload of files src_object_type 2023-10-31 10:44:58 +01:00
Laurent Destailleur
8f91e6bce8 FIX src_object_id and ttype not filed when uploading a file with API. 2023-10-31 00:47:55 +01:00
Laurent Destailleur
40ea006536 Debug v19 2023-10-26 12:22:54 +02:00
Laurent Destailleur
5b15b5c647 QUAL Move conf->global into getDolGlobal... 2023-10-24 17:00:13 +02:00
Lucas Marcouiller
42865a975a
Fix some code smell (#26277)
* Fix some code smell

* Update commande.class.php

---------

Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-20 02:20:26 +02:00
Henning Kleen
b157ddd606
NEW Allow generation of delivery note through REST-API (#26226)
Add support for (re-)generating a delivery note through the /documents/builddoc API endpoint
2023-10-16 15:50:23 +02:00
Laurent Destailleur
1f38e54e78 Clean code 2023-10-15 15:32:35 +02:00
Laurent Destailleur
c507adeef7 NEW Top menu support picto of modules that are font awesome picto. 2023-10-13 15:00:51 +02:00
pascal
871f896962 implementation of properties filter 2023-09-26 18:04:48 +02:00
Laurent Destailleur
c3dafa05c0 Add a better error message on API login if token is not valid. 2023-08-14 12:25:52 +02:00
Laurent Destailleur
921a6f3135 Fix warning 2023-08-06 12:26:27 +02:00
Laurent Destailleur
38a160873d Standardize code 2023-08-06 01:26:06 +02:00
Laurent Destailleur
ec39199b85 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	.travis.yml
	htdocs/api/class/api_documents.class.php
	htdocs/core/db/pgsql.class.php
2023-07-26 01:42:22 +02:00
Boris Hermans
d2f9d7634b
Handle projects for the api documents listing route (#25465) 2023-07-25 23:24:11 +02:00
Laurent Destailleur
e41f449f95 FIX #yogosha17128 2023-07-19 04:14:49 +02:00
Laurent Destailleur
c75761f780 FIX Add same security test whe nuploading files from API than from GUI 2023-07-12 22:56:27 +02:00
Frédéric France
a575b696e7 use user hasRight 2023-06-19 23:27:24 +02:00
Frédéric France
ebf83fdab6 use user hasRight 2023-06-19 23:18:13 +02:00
Laurent Destailleur
31474d80f1 Doxygen 2023-06-19 00:52:43 +02:00
Guillaume Wauquier
f11d3ded2c
Rectif bug dans l'api documents
chemin incorrect pour les commandes fournisseurs
2023-06-05 19:54:48 +02:00
Laurent Destailleur
130a2dc4f7 Fix warning 2023-05-30 12:57:30 +02:00
Laurent Destailleur
6dcfb18c2e Fix warnings 2023-05-22 21:33:38 +02:00
Laurent Destailleur
37d709475d
Merge pull request #24734 from romain-neil/feat-buildoc-supplier-inv
Draft: api/documents: generate supplier invoices
2023-05-17 16:01:20 +02:00
Laurent Destailleur
a0c80afb8e
Merge pull request #24731 from romain-neil/feat-api-doc-supported-modules
doc(api/documents): add list of supported modules
2023-05-16 01:09:00 +02:00
lainwir3d
9b6a513cfb
CLOSE #24761 Add REST API to retrieve regions 2023-05-13 14:17:57 +01:00
stickler-ci
d816ef290b Fixing style errors. 2023-05-10 12:30:51 +00:00
Romain Neil
e7e40b4c9e wip: api/documents: generate supplier invoices 2023-05-10 14:27:51 +02:00
Romain Neil
9a19bd000a doc(api/documents): add list of supported modules 2023-05-10 12:23:32 +02:00
Laurent Destailleur
b270f655e9
Merge pull request #24655 from romain-neil/develop
NEW handle contract document (list, build and upload) in documents Rest API
2023-05-02 06:04:03 +02:00
Laurent Destailleur
06979fa016
Update api_documents.class.php 2023-05-02 05:58:18 +02:00
Romain Neil
2c13d26b69
Update api_documents.class.php
typo fix
2023-05-02 00:59:51 +02:00
rneil
1487c233f0 add missing copyright 2023-05-02 00:56:10 +02:00
Sarah Mainguet
4d42279fcd
Merge branch 'develop' into fix-documents-api 2023-05-01 22:20:39 +02:00
Sarah Mainguet
a804999d92 Can now add documents to events in agenda 2023-05-01 22:11:35 +02:00
Romain Neil
a4fd13e3e4 feat(api/documents): build contract 2023-05-01 22:11:27 +02:00
stickler-ci
1f8671ed84 Fixing style errors. 2023-05-01 18:11:31 +00:00
Romain Neil
458fb18b5d feat(api/documents): list contract 2023-05-01 20:10:48 +02:00
Romain Neil
ffaf748ac8 feat(api/documents): upload contract 2023-05-01 19:45:33 +02:00
Laurent Destailleur
e9aff0f776 Fix qodana warning 2023-05-01 16:41:28 +02:00
Laurent Destailleur
d40fe56cb4 Fix warning 2023-04-30 04:50:10 +02:00
Laurent Destailleur
382f45ec14 Clean code 2023-04-30 03:36:02 +02:00
Laurent Destailleur
acc7a8b1be Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-03-18 01:59:40 +01:00
Laurent Destailleur
932f561fd0
Update api_documents.class.php 2023-03-17 21:07:30 +01:00
Jakub Stříbrný
0093954437 NEW Support contact in post() document API
When uploading a document via the API, add the modulepart "contact". By this, documents linked to a contact can be uploaded.
2023-03-15 16:00:20 +01:00
Laurent Destailleur
657d964899 Add a protection for bad syntax of api key 2023-03-15 12:54:04 +01:00
Laurent Destailleur
68a2131ae6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-13 13:22:10 +01:00
Laurent Destailleur
d369a640de Fix encryption of api_key 2023-03-13 12:48:25 +01:00
Laurent Destailleur
7f8b09f0b6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-02 10:48:36 +01:00
Laurent Destailleur
8612a88a2f Sync transifex
Debug v17
2023-03-02 10:38:45 +01:00
Laurent Destailleur
ed5c890769 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-25 20:12:48 +01:00
Laurent Destailleur
cbb6ca071a Fix #yogosha15157 2023-02-25 19:51:05 +01:00
Laurent Destailleur
0b4cacd291 Use dolChmod 2023-02-17 20:01:53 +01:00
Frédéric FRANCE
beba616f3c clean code 2023-02-11 22:13:15 +01:00
Laurent Destailleur
2a0a0fc470 Clean old deprecated code on social networks fields 2023-01-30 14:13:02 +01:00
Laurent Destailleur
0765a1196f FIX Check of date of validity 2023-01-27 14:40:30 +01:00
Laurent Destailleur
dfcba30577 FIX Check of date of validity 2023-01-27 14:06:31 +01:00
Christian Humpel
3c26825b5d change description 2023-01-21 08:49:24 +01:00
Christian Humpel
439f8d4bb4 New: REST Api - GET /setup/dictionary/incoterms 2023-01-21 08:45:10 +01:00
Laurent Destailleur
80d46a22f1 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-18 21:36:57 +01:00
Laurent Destailleur
cd5009d8a4 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-18 21:21:49 +01:00
Laurent Destailleur
283ad1abcf Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-01-18 20:54:16 +01:00
Laurent Destailleur
2a299068ad Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2023-01-18 20:45:44 +01:00
Laurent Destailleur
40e007bb61 More generic error message 2023-01-18 19:54:38 +01:00
Ferran Marcet
8c969c7765 Merge branch '14.0up' into 14.0 2023-01-18 10:52:40 +01:00
Ferran Marcet
cb96378031 FIX: API access for deactivated users 2023-01-18 10:48:18 +01:00
Laurent Destailleur
982ee6259f NEW Session invalidation after a password change 2023-01-14 21:21:48 +01:00
Laurent Destailleur
2eb054a170 Fix try fix function not found of qodana 2023-01-11 17:06:23 +01:00
Laurent Destailleur
43a0ccce2b Clean code 2023-01-04 11:37:24 +01:00
Laurent Destailleur
32c161e576 Fix warnings 2022-12-30 12:10:23 +01:00
Laurent Destailleur
c298f22a4f Fix warnings, deadcode 2022-12-27 21:04:28 +01:00
Laurent Destailleur
5026de62f7 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-01 17:48:29 +01:00
Laurent Destailleur
9b5fc20308 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2022-12-01 17:46:13 +01:00
Laurent Destailleur
cc982adc2f Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2022-12-01 17:42:02 +01:00
Laurent Destailleur
c22d9f282a
Merge pull request #23016 from inovea-conseil/FIX_product_type9
FIX product_type 9
2022-11-30 00:41:35 +01:00
ATM-Nicolas
e767c9b4a9 FIX : Stickler 2022-11-26 00:42:50 +01:00
ATM-Nicolas
a0553c6e52 FIX : Stickler 2022-11-26 00:35:08 +01:00
ATM-Nicolas
f3e689f841 FIX : Documents API inconsistency 2022-11-26 00:02:17 +01:00
Laurent Destailleur
ce5bb5cd64 Fix warning 2022-11-24 22:49:37 +01:00
Laurent Destailleur
d07e379c86
Merge branch 'develop' into patch-56 2022-11-01 22:07:35 +01:00
Laurent Destailleur
5fb7b33dca
Merge pull request #22700 from ptibogxiv/patch-57
NEW translate setup/ticket API
2022-11-01 21:50:06 +01:00
Laurent Destailleur
b5170a96fe
Merge pull request #22701 from ptibogxiv/patch-58
NEW support lang in Civilities API
2022-11-01 21:48:56 +01:00
Laurent Destailleur
6c06c110d6
Merge pull request #22711 from ptibogxiv/patch-59
NEW translation for shipping method API
2022-11-01 20:47:16 +01:00
Laurent Destailleur
3ed470ea50 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2022-11-01 20:26:09 +01:00
Laurent Destailleur
dca945f1ab Doc 2022-11-01 20:25:58 +01:00
stickler-ci
82da70841f Fixing style errors. 2022-10-30 16:20:15 +00:00
ptibogxiv
55d233e2da
NEW translate for contact type API
cf #22699
2022-10-30 17:19:32 +01:00
ptibogxiv
ebcaa34134
NEw translation for shipping method API
cf https://github.com/Dolibarr/dolibarr/pull/22699
2022-10-30 16:42:54 +01:00
ptibogxiv
6dd0712193
Update api_setup.class.php 2022-10-28 21:26:45 +02:00
ptibogxiv
0277c07c31
Update api_setup.class.php 2022-10-28 21:25:42 +02:00
ptibogxiv
e450b950d1
Update api_setup.class.php 2022-10-28 21:24:30 +02:00
ptibogxiv
65cbd2c663
Update api_setup.class.php
some values needs more dictionaries
2022-10-28 17:59:34 +02:00
ptibogxiv
81bec04586
Update api_setup.class.php 2022-10-28 16:17:14 +02:00
ptibogxiv
8d604e3b2d
NEW support lang in Civilities API 2022-10-28 16:16:11 +02:00
ptibogxiv
b0c6b59eb2
NEW translate setup/ticket API
link to https://github.com/Dolibarr/dolibarr/pull/22699

& fix for multicompany
2022-10-28 15:56:15 +02:00
ptibogxiv
ba20087ceb
FIX better compatibility for translation of label in setup API 2022-10-28 15:52:59 +02:00
Laurent Destailleur
a2d9dd3388 Clean code 2022-10-22 00:08:10 +02:00
Laurent Destailleur
be10cdee95 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-10-06 16:03:50 +02:00
Laurent Destailleur
5ccc5c9e1a Fix error message 2022-10-03 17:30:47 +02:00
Alexandre SPANGARO
c674f00cb2 Use isModEnabled 2022-09-25 15:27:42 +02:00
Laurent Destailleur
e1b5e5033f Clean code of deprecated field 2022-09-23 09:35:17 +02:00
Laurent Destailleur
6fb9a4713c Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-09-21 01:30:40 +02:00
Laurent Destailleur
1f2ad8efbf FIX API reception return error 500 2022-09-21 01:13:53 +02:00
Philippe GRAND
857646ed36 update code toward php8 compliance 2022-09-10 11:00:38 +02:00
Laurent Destailleur
7a277d9560
Merge branch 'develop' into loaddolibarrenv 2022-09-09 17:02:05 +02:00
Laurent Destailleur
b23ab2cb71 FIX #yogosha12266 2022-09-09 13:58:54 +02:00
Frédéric France
8d33953142 add comment 2022-09-07 20:08:59 +02:00
Frédéric France
8e66b7207e replace ! empty by !empty 2022-08-31 22:14:20 +02:00
Laurent Destailleur
96889609e8 Fix restore use of API get when ID = 0 2022-08-27 19:02:05 +02:00
Laurent Destailleur
966aaddd39 Remove clean of protected vars 2022-08-25 14:46:10 +02:00
Laurent Destailleur
b000ee7c50 NEW Add API for partnership module
Debug module builder
2022-07-15 13:41:02 +02:00
Laurent Destailleur
4c10c04f9f
Merge pull request #20495 from atm-john/new_fix_regression_select_extrafield_search
FIX : regression select extrafield search + fix function name
2022-05-24 21:55:33 +02:00
Laurent Destailleur
fe0bbbb626 Better compatibility 2022-05-19 21:32:43 +02:00
Laurent Destailleur
4de50da0dd Repare code to forbidden var_dump() into code 2022-05-17 14:55:38 +02:00
Laurent Destailleur
40d0c3b996 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/compta/tva/card.php
	htdocs/langs/en_US/admin.lang
2022-04-28 19:23:13 +02:00
Laurent Destailleur
134113db64 Fix upload of doc for purchase orders 2022-04-26 01:00:10 +02:00
Laurent Destailleur
0023850c9a
Update api_documents.class.php 2022-04-14 22:16:17 +02:00
Philippe GRAND
d62d24a337 add code to get documents list by knowledgemanagement with api 2022-04-14 21:47:35 +02:00
ATM john
c1d9ea95dc fix function name 2022-03-30 12:16:17 +02:00
Laurent Destailleur
8603d493ad Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/contrat/list.php
	htdocs/install/mysql/tables/llx_partnership.key.sql
2022-03-19 17:34:26 +01:00
Laurent Destailleur
ef21def5ce NEW Add option MAIN_API_DEBUG to save API logs into a file 2022-03-19 10:42:06 +01:00
Laurent Destailleur
ed631b2b06 Fix doxygen, missing error message 2022-03-18 16:14:20 +01:00
UT from dolibit
d78f76447c
Update README.md
http://help.luracast.com/restler/examples/  - don't work anymore
replaced by   https://restler3.luracast.com/examples/index.html
2022-03-02 00:29:07 +01:00
Laurent Destailleur
548cad0508 FIx #20110 2022-02-28 21:30:12 +01:00
Laurent Destailleur
6b8312aab0 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-02-17 20:51:25 +01:00
Laurent Destailleur
d19aca7192 # WARNING: head commit changed in the meantime
Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
2022-02-17 20:50:03 +01:00
Laurent Destailleur
aacd439765 Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
Conflicts:
	htdocs/api/class/api_setup.class.php
2022-02-17 20:46:20 +01:00
Laurent Destailleur
ea7051f6a0
Merge pull request #20052 from ptibogxiv/patch-4
FIX API REST setup
2022-02-17 19:53:19 +01:00
Laurent Destailleur
a71bdc4024
Merge pull request #20053 from ptibogxiv/patch-5
NEW API REST filter states by country
2022-02-17 19:53:00 +01:00
Laurent Destailleur
3697cb9ca4 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/reception/class/reception.class.php
2022-02-17 11:34:54 +01:00
Laurent Destailleur
2a18bce2f3 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
Conflicts:
	htdocs/api/index.php
	htdocs/langs/en_US/productbatch.lang
	htdocs/langs/fr_FR/productbatch.lang
	htdocs/ticket/list.php
2022-02-16 20:31:55 +01:00
Laurent Destailleur
0e664cc969 Fix API call from ajax 2022-02-15 11:12:08 +01:00
Laurent Destailleur
1b53ed09f9 Work on custom report feature 2022-02-15 11:03:48 +01:00
ptibogxiv
061dd565cc
Update api_setup.class.php 2022-02-13 13:22:01 +01:00
ptibogxiv
f2b88c6d7c
Update api_setup.class.php 2022-02-13 10:09:39 +01:00
ptibogxiv
8d3e97bab9
Update api_setup.class.php 2022-02-12 19:21:07 +01:00
ptibogxiv
54af0cf47a
NEW API REST filter states by country 2022-02-12 19:02:00 +01:00
ptibogxiv
a5a8f30939
FIX API REST setup
bad words
2022-02-12 17:08:43 +01:00
ptibogxiv
11e15255bd
FIX API REST for setup values 2022-02-12 16:59:29 +01:00
Laurent Destailleur
0b63ac638e FIX API caan now be used in a preflight mode by Ajax. 2022-02-09 21:12:06 +01:00