Commit Graph

154 Commits

Author SHA1 Message Date
MDW
8655d5a86b
QUAL Use phan to help detect new issues (#27706)
* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:14:29 +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
62e25855e5 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-28 00:40:53 +01:00
Laurent Destailleur
f3ce7a2a93 Debug v19 Fix label of option 2024-01-28 00:37:48 +01:00
Frédéric France
03e29c6960 fix param 2024-01-20 09:22:38 +01:00
Laurent Destailleur
0ce34c60a2
Merge pull request #27612 from thibdrev/patch-3
fix: phpstan
2024-01-18 21:32:28 +01:00
thibdrev
b44dc2a3f4
typo 2024-01-18 17:43:26 +01:00
thibdrev
5fbced083b
typo 2024-01-18 17:30:18 +01:00
thibdrev
a000178b0d
fix phpstan
(int) does not accept array|string.
2024-01-18 17:27:09 +01:00
Laurent Destailleur
2a4578ef68 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-11 13:48:15 +01:00
MDW
11f457ddc8
# Fix: remove parameter in getSelectInvoiceSubtype call (#27314)
Parameters were already invalid when this was added in 65b9f4e6de.
See 65b9f4e6de/htdocs/core/class/html.form.class.php (L10865C59-L10865C59) .
2024-01-11 10:47:05 +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
Frédéric FRANCE
789ffa9fb0
Merge branch 'develop' into cleandeprecated 2023-12-08 10:51:02 +01:00
Laurent Destailleur
ba10d60a0b Fix with php-cs-fixer 2023-12-04 12:02:35 +01:00
Frédéric FRANCE
e1bd404a87
Merge branch 'develop' into cleandeprecated 2023-11-28 13:46:43 +01:00
Laurent Destailleur
53dab922fd Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
Frédéric FRANCE
502a854ddb clean deprecated 2023-11-14 11:43:13 +01:00
Laurent Destailleur
0770ce640e Debug v19 2023-11-14 02:42:02 +01:00
sonikf
65b9f4e6de
NEW: Add invoice subtype in customer template invoice (#26543)
* Add invoice subtype in template invoice

* Add invoice subtype in template invoice

* Add invoice subtype in template invoice
2023-11-12 22:08:46 +01:00
sonikf
455dcd8eb9
NEW: Propagate invoice extrafields into template invoice (#26529)
* NEW: Propagate invoice extrafields into template invoice

Also rearrange form fields to be on par with other invoice creation screens look and feel

* fix PHPCS
2023-11-10 19:03:39 +01:00
sonikf
edac1bb6cc
Add missing info for proper use and creation of template invoice (clients and vendors) (#26475)
* Add missing info for proper use and creation of template invoice

* Add missing info for proper use and creation of template invoice

* fix trans of generated invoice
2023-11-07 18:18:06 +01:00
Laurent Destailleur
1f38e54e78 Clean code 2023-10-15 15:32:35 +02:00
Laurent Destailleur
c32fe8dc5f QUAL: Use dol_clone with parameter 2 for ->oldcopy 2023-10-11 19:10:24 +02:00
Laurent Destailleur
a2b6532c5a Debug v19 2023-10-05 16:32:38 +02:00
Regis Houssin
fbc841095e NEW possibility to deselect line when create a recurring invoice 2023-10-01 11:47:37 +02:00
Laurent Destailleur
bf1549e6e0 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-08-24 00:14:55 +02:00
Laurent Destailleur
076c811690 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-08-24 00:12:52 +02:00
Laurent Destailleur
5047fc20ea Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-08-23 23:59:55 +02:00
Laurent Destailleur
c065675f57 FIX Bad calculation of localtax when price_base_type not defined. 2023-08-23 23:41:16 +02:00
Laurent Destailleur
0b79921489 Fix warning 2023-08-23 21:26:12 +02:00
Laurent Destailleur
a9a968785a FIX Adding a product in recurring invoice does not use the correct VAT 2023-08-23 21:23:16 +02:00
Laurent Destailleur
6c17d19405 FIX Adding a product in recurring invoice does not use the correct VAT 2023-08-23 21:08:01 +02:00
Laurent Destailleur
2fdd5c1b6b Fix warnings 2023-08-23 20:02:39 +02:00
Laurent Destailleur
505505b7fb NEW Add modifications of template invoices into agenda 2023-08-11 10:43:13 +02:00
Laurent Destailleur
0076ec69b8 The property ->brouillon has been removed from all classes. It was not
reliable and was a duplicate of ->status == self::STATUS_DRAFT.
2023-08-06 00:16:25 +02:00
Laurent Destailleur
f7593826ba Standardize tab name 2023-08-04 18:43:28 +02:00
Laurent Destailleur
2f8130d74a NEW Add tab Events/Agenda on recurring invoices 2023-07-29 21:02:52 +02:00
Frédéric France
a4bcf0eeaf use user hasRight 2023-06-13 20:47:33 +02:00
Frédéric France
5a018d715d use user hasRight 2023-06-06 00:05:02 +02:00
stickler-ci
13348ede59 Fixing style errors. 2023-05-05 16:22:49 +00:00
NextGestion
e8acd50626 Object line : Prevent adding Free line when the option "MAIN_DISABLE_FREE_LINES" is activated (Proposal, invoice, order, contract) 2023-05-05 17:15:49 +01:00
Gauthier PC portable 024
54e00b800a FIX : action delete card fac rec 2023-03-21 12:07:12 +01:00
Laurent Destailleur
ec45cb23ac Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-03-20 15:53:06 +01:00
Laurent Destailleur
d1f79fabfb
Update card-rec.php 2023-03-18 10:32:45 +01:00
Laurent Destailleur
bd027dc71e
Update card-rec.php 2023-03-18 10:31:54 +01:00
Juanjo Menent
21102244a2 Most efficient solution to fatal error 2023-03-18 07:38:17 +01:00
stickler-ci
1073944cf4 Fixing style errors. 2023-03-17 21:27:57 +00:00
Juanjo Menent
5351fe75ac Fix #24240 Dolibarr V17.0.0 PHP8 fatal error 2023-03-17 22:13:09 +01:00
Frédéric FRANCE
9f23bac505 use hasRight 2023-02-20 18:55:52 +01:00
Frédéric FRANCE
ae48571135 use user->hasRight 2023-02-14 22:56:12 +01:00