Commit Graph

94 Commits

Author SHA1 Message Date
Laurent Destailleur
131d1390bc Debug v23 2025-09-28 22:20:44 +02:00
ldestailleur
b783743b10 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-09-21 15:31:55 +02:00
ldestailleur
842f57b866 Fix hack to avoid infinite loop in restler when xdebug is on 2025-09-21 15:26:47 +02:00
ldestailleur
6bcc159d8a Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-10 03:29:25 +02:00
ldestailleur
2ab75ef240 Fix CI 2025-08-10 03:23:46 +02:00
ldestailleur
f852e32393 Rename the route 2025-08-09 17:37:48 +02:00
ldestailleur
3313e34797 Fix deprecated var 2025-08-09 17:31:27 +02:00
ldestailleur
20805044b6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-09 17:30:54 +02:00
ldestailleur
8fb9ca9488 Fix deprecated var 2025-08-09 17:30:28 +02:00
Charlène Benke
025e478945 bank api : add direct fetch on accountline (#34885)
* bank api : add direct fetch on accountline

* Update api_bankaccounts.class.php

* Update api_bankaccounts.class.php

* Update api_bankaccounts.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-09 17:28:55 +02:00
Frédéric FRANCE
c753078b36 fix missings translations (#33585)
* fix missings translations

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-24 22:01:55 +01:00
Charlène Benke
936d0eeae1 Add sold amount on api call (V2) (#33589)
* Add sold amount on api call (V2)

other way to implement it

* Update api_bankaccounts.class.php

Use the non deprecated property name.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-24 16:43:32 +01:00
MDW
f625f8de60 Qual: Fix api phan notices 2025-03-05 13:22:08 +01:00
MDW
035ede5874 Qual: Fix phan notices in API classes 2025-03-02 20:49:46 +01:00
MDW
c02293a880 Qual: Add phpdoc for request_data param 2025-03-02 20:49:45 +01:00
Laurent Destailleur (aka Eldy)
fa9fe2efa7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-20 15:02:37 +01:00
Laurent Destailleur (aka Eldy)
c9ab22782e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-01-20 14:57:45 +01:00
Laurent Destailleur (aka Eldy)
1f360ca498 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-01-20 12:28:49 +01:00
Laurent Destailleur (aka Eldy)
1b42078d1e Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-01-20 10:24:30 +01:00
atm-florian
ba4e97f07b FIX 17.0 API endpoints "PUT": prevent overwriting all extrafields if only some are supplied in the request cf. PR #29237
+ security for Tickets API: disable updating rowid
2025-01-16 10:37:29 +01:00
matthieu-michou-wattandsea
fb3067a1a4 Update api_bankaccounts.class.php
NEW
API REST : bank : add function to get bank account balance
2024-12-22 12:07:17 +01:00
mikygee
e8f7237c63 Bug fix #31369 date_solde not taken into account when sent through API (#31490)
* Bug fix #31369 date_solde not taken into account when sent through API

* Move $account->date_solde = time() above

---------

Co-authored-by: mikael <mikael@expevelidv751.expertinet.net>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-23 23:58:08 +02:00
mikygee
d55f90b460 Bug fix #31369 date_solde not taken into account when sent through API (#31490)
* Bug fix #31369 date_solde not taken into account when sent through API

* Move $account->date_solde = time() above

---------

Co-authored-by: mikael <mikael@expevelidv751.expertinet.net>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-23 23:52:08 +02:00
Frédéric FRANCE
dbd8657de1 Cleanaccount (#29271)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* wip

* wip

* wip
2024-04-20 21:53:40 +01:00
Laurent Destailleur
b5de782c6b Fix use the good HTTP code 2024-04-07 14:59:25 +02:00
Laurent Destailleur
990216b13f NEW Api parameters are sanitized by the WAF, same code than GET/POST 2024-04-02 13:07:13 +02:00
MDW
94808e7cdd Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:26 +01:00
Laurent Destailleur
f7024b61ee Update api_bankaccounts.class.php 2024-03-11 15:37:16 +01:00
Jon Bendtsen
668d2fa6e8 making param string cheque_number line up and conform better with previous code 2024-03-09 22:43:53 +01:00
Jon Bendtsen
95d644615c remove trailing whitespace 2024-03-09 22:14:02 +01:00
Jon Bendtsen
0c91e3fe06 attempt at fixing #28645 2024-03-09 22:01:30 +01:00
notmarrco
2c3eff1896 NEW: API Add some api endpoints (#25126)
* feat(api): Add updateLine to Bank api + add salaries api

* feat(api): Add "deleteLine" to bank api

* fix(api): Remove unneeded mandatory field "salary"

* feat(api): Add PaymentSalaries and PaymentExpenseReports API

* fix(bankaccount): Fix bad phpdoc return type

* fix(bankaccount): Fix bad phpdoc return type and comments

* add updateLabel function to AccountLine

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-19 17:03:07 +01:00
MDW
7b54824d49 Fix #28071 - New branch to fix bad merge (#28083)
* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop

* Qual: Introduce getDataToShowPhoto to prepare generic code

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Fix missing trans

* Fix langs

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Remove useless files in web templates

* Clean code

* Fix duplicate translation key

* Fix duplicate translation key

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Fix duplicate key

* Fix $object

* Debug v19

* WIP SMSing

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* WIP EMAILINGS_SUPPORT_ALSO_SMS

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* WIP SMSing

* Debug the "validate" feature

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Clean code

* Move rights->x->y into hasRight('x', 'y')

* Move rights->x->y into hasRight('x', 'y')

* Move rights->x->y into hasRight('x', 'y')

* Move rights->x->y into hasRight('x', 'y')

* Move rights->x->y into hasRight('x', 'y')

* Move rights->x->y into hasRight('x', 'y')

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop

* Enhance rector to fix empty($user->rights->modulex->perm1)

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop

* Fix template to use v19 dev rules

* Fix use v19 dev rules

* Fix phpunit

* Debug v19

* Clean code

* Use rector to convert user->rights into user->hasRight

* Clean code

* Use rector to convert user->rights into user->hasRight

* Use rector to convert user->rights into user->hasRight

* Clean code

* Fix phpcs

* add editorconfig for sql files (#27999)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>

* add model_pdf field in llx_ticket-ticket.sql (#27996)

* add model_pdf field in llx_ticket-ticket.sql

* Update 19.0.0-20.0.0.sql

* Update 19.0.0-20.0.0.sql

* Improve wording in README (#27994)

* fix phpstan (#27989)

* fix phpstan

* Update UserRightsToFunction.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>

* Qual: Fix spelling/working in datapolicy translations (#28006)

# Qual: Fix spelling/wording in datapolicy translations

Fixed some spelling and wording in datapolicy translations.

* qual: phpstan for htdocs/ticket/class/ticketstats.class.php (#27986)

htdocs/ticket/class/ticketstats.class.php	98	Parameter #1 $year (string) of method TicketStats::getNbByMonth() should be compatible with parameter $year (int) of method Stats::getNbByMonth()

* Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop

* Fix user with readonly perm on email template must be able to read.

* Fix doc

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Better message

* Add missing fields in merge of thirdparty

* Debug v19 selection of ticket printer per terminal

* Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

* Use constant

* NEW: Adding a recipient on emails sent, change status to sent partialy.

* fix travis (#28052)

* fix travis

* Update partnership.class.php

* fix php doc (#28047)

* fix undefined array key (#28048)

* Add region and departament for Cuba (#28046)

* Update llx_10_c_regions.sql

Add Cuba Regions (id_country=77)

* Update llx_20_c_departements.sql

Add Provinces Cuba (id country=77)

* Find the typo (#28050)

* Find the typo

* clean code

* add last_main_doc field to product (#28045)

* add las_main_doc field to product

* add field fetch

* NEW Add Categorie filter for ActionComm (#28041)

* New Add Categorie filter for ActionComm

New Add Categorie filter for ActionComm

* Fix space errors

Fix space errors

* Fix space errors 2

Fix space errors 2

* Update cunits.class.php (#28056)

FIX: error SQL when creating a Cunit

* Update codespell-lines-ignore.txt to avoid PR merge conflict

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
Co-authored-by: thibdrev <thibault.drevet@gmail.com>
Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
Co-authored-by: Ikarus <44511582+LeKarSol@users.noreply.github.com>
Co-authored-by: Anthony Damhet <73399671+EchoLoGeek@users.noreply.github.com>
Co-authored-by: Quentin-Seekness <72733832+Quentin-Seekness@users.noreply.github.com>
2024-02-09 15:58:49 +01:00
Laurent Destailleur
c9823f2b8d Move 401 to 403 2024-02-01 19:34:13 +01:00
MDW
52ee926bac Qual: Spelling compta code (#27413)
# Qual: Fix spelling of files in htdocs/compta

No code should be changed, only comments modified or translated.
2024-01-11 09:58:34 +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
603ec5e6ec Merge pull request #26943 from xabitrigo/API_GET_bankaccount_links
CLOSE #26942 Add REST API endpoint: GET /bankaccounts/{id}/lines/{line_id}/links
2023-12-08 02:09:22 +01:00
Laurent Destailleur
ba10d60a0b Fix with php-cs-fixer 2023-12-04 12:02:35 +01:00
xabitrigo
01fc1432ca Fix #26942 phpcs code style 2023-12-03 02:23:38 +01:00
xabitrigo
8e6fdb50b7 CLOSE #26942 REST API GET /bankaccounts/{id}/lines/{line_id}/links 2023-12-03 02:13:30 +01:00
MDW
3c966469ef QUAL No return values in __construct(), correct PHPDoc for typing (#26768) 2023-11-20 23:47:06 +01:00
pascal
80f060c771 fix tab indentation 2023-09-26 18:43:25 +02:00
pascal
871f896962 implementation of properties filter 2023-09-26 18:04:48 +02:00
Laurent Destailleur
31474d80f1 Doxygen 2023-06-19 00:52:43 +02:00
Laurent Destailleur
d40fe56cb4 Fix warning 2023-04-30 04:50:10 +02:00
VMR Global Solutions
926aa6fec7 API add / fix filter on extrafields in index()
Add / change in api_xxx.class.php files the ability to filter on extrafields when missing in the public functions index()
by changing the SQL query with the pattern 
" FROM ".MAIN_DB_PREFIX"xxxx AS t LEFT JOIN ".MAIN_DB_PREFIX."xxxx_extrafields AS ef ON (ef.fk_object = t.rowid)
2023-04-28 09:31:33 +02: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
27792fe1ad Fix qodana 2023-01-04 18:34:54 +01:00
Laurent Destailleur
babf1e0e27 Fix doc 2022-10-17 01:55:57 +02:00