Commit Graph

33082 Commits

Author SHA1 Message Date
Laurent Destailleur
28ec65f602 Fix php compatibility 2023-10-31 00:50:44 +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
4dce3a2a71 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-31 00:15:49 +01:00
Laurent Destailleur
564c5cd5e8 Debug v19 2023-10-31 00:15:31 +01:00
Mohamed DAOUD
322b4d8be9 Adding __NEXT_MONTH_TEXT__ in mail template (#26391) 2023-10-30 18:04:42 +01:00
Laurent Destailleur
1558772d83 Debug v19 2023-10-30 17:14:46 +01:00
Laurent Destailleur
858e0dbf11 Fix php7.1 2023-10-30 14:26:21 +01:00
Laurent Destailleur
2649093815 Fix php 7.1 compatibility 2023-10-30 14:06:25 +01:00
Laurent Destailleur
b53d845085 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-30 13:39:28 +01:00
Laurent Destailleur
24e043934a Debug delete evaluation 2023-10-30 13:23:46 +01:00
William Mead
3c87423364 Qual cleaner code for InterfaceLogevents (#26347)
* Renamed text variable to label

* Added label variable

* Fixed typos

* Fixed PHPDoc

* Added runTrigger method return type

* Refactored to use super class constructor

* Added contributor details. Cleaned indentation.

* Added user login failed string

* Added label & description localized strings

* Converted event label, description & date variables to class properties. Added class method to initialize event data. Refactored & cleaned code.

* Added user string parameter

* Cleaned code

* Moved langs loading

* Added code comment

* Cleaned code

* Added code comment

* Fixed PHPDoc comments

* Refactored event label & description assignment

* Deleted unneeded empty lines

* Added event action text dictionary. Refactored event data initialization. Added static class method for dynamic localization to check if event text has an event action key n.

* Updated string parameter placement

* Added condition to check if event description has an event action key in order to do dynamic frontend translation

* Updated code comments. Renamed event action array.

* Added user status key

* Cleaned code

* Update interface_20_all_Logevents.class.php

---------

Co-authored-by: William Mead <william.mead@manchenumerique.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-30 04:12:43 +01:00
Mohamed DAOUD
08ef416958 New: Adding the PDF option displaying the product's barcode number (#26345)
* Add a PDF option to show barcode number of product

* Add space before and after IF keyword

* fix error phpcs

* add barcode label before barcode number

* Use outputlangs and not langs

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-30 03:13:12 +01:00
Laurent Destailleur
16ea13ecb8 NEW Allow sync of currency rates with currency layer by default. 2023-10-30 01:38:20 +01:00
Laurent Destailleur
582a6f7f45 Debug v19 2023-10-29 16:44:41 +01:00
Laurent Destailleur
00e706120d Fix warning 2023-10-28 02:17:48 +02:00
Laurent Destailleur
8333410ca1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-28 00:07:17 +02:00
Alexandre Janniaux
a7619ecc92 Workflow: code quality with early return (#26365)
* workflow: use setErrorsFromObject when suitable

* workflow: shipping: use early return in for loop

* workflow: shipping: combine to previous early return

* workflow: shipping: reindent after last changes

No functional changes.

* workflow: reception: use early return when suitable

* workflow: reception: use early return

* workflow: reception: reindent after last changes

No functional changes.

* workflow: ticket: use early return

* workflow: ticket: combine condition through an early return

* workflow: ticket: reindent after last changes

No functional changes.

* workflow: propal: remove else condition after terminal if

* Update interface_20_modWorkflow_WorkflowManager.class.php

* Update interface_20_modWorkflow_WorkflowManager.class.php

* Update interface_20_modWorkflow_WorkflowManager.class.php

* Update interface_20_modWorkflow_WorkflowManager.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-27 19:17:27 +02:00
Laurent Destailleur
e5da68b3bd Debug v19 2023-10-26 21:16:04 +02:00
Laurent Destailleur
e68d5ebc35 Debug v19 2023-10-26 21:11:36 +02:00
Laurent Destailleur
197f0a19ec NEW Add more param on fetch() to prepare perf optimization 2023-10-26 21:05:37 +02:00
Laurent Destailleur
3403f35753 Code comment 2023-10-26 18:00:23 +02:00
andreubisquerra
4761d70cd9 NEW Default customer, category and product when enable TakePOS (#25031)
* Default customer, category and product when enable TakePOS

* Update cashdesk.lang

* Default category and product when enable TakePOS

Easy setup for TakePOS. Create a category and product when TakePOS is enabled. It checks if TakePOS has already been configured to avoid recreating the category and productif it has already been created.

* Update modTakePos.class.php

* Update modTakePos.class.php

* Update cashdesk.lang

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 17:58:42 +02:00
Laurent Destailleur
9fc5accd81 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-26 15:58:41 +02:00
Laurent Destailleur
74609c90a8 Code comment 2023-10-26 14:03:13 +02:00
Charlène Benke
091d50e809 NEW : Add custom Text on footer total (#26334)
* NEW : Add custom Text on footer total

This function allows you to add a small text to each invoice below the total.
Just add a miscellaneous parameter to activate it
(to wish the happy new year or an indication of invoicing)

* Update pdf_crabe.modules.php

* Update pdf_crabe.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 13:55:10 +02:00
Laurent Destailleur
ca3c7f0a37 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-26 13:52:22 +02:00
Laurent Destailleur
6822afac31 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-10-26 13:48:33 +02:00
Laurent Destailleur
e080261e25 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-10-26 13:46:17 +02:00
Laurent Destailleur
b4da41c8e8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-26 13:40:57 +02:00
Lucas Marcouiller
96146fcb6a New add note for mailing (#26331)
Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 13:40:44 +02:00
Laurent Destailleur
3e146187ec Doc 2023-10-26 13:31:20 +02:00
Florent Poinsaut
753430de5f Fix error return value in the dol_delete_preview (#26360) 2023-10-26 12:40:21 +02:00
Lucas Marcouiller
af17b767c0 fix some warnings php8 (#26346)
Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
2023-10-26 12:37:18 +02:00
HENRY Florian
7e3b098f78 fix: when option MAIN_USE_COMPANY_NAME_OF_CONTACT is set the VAT num have to be the VAT num of thirdparty of contact (#26371) 2023-10-26 12:28:00 +02:00
sonikf
21f602bf05 fix suppliers_bills_payment link (#26361) 2023-10-26 10:01:51 +02:00
Laurent Destailleur
7e994e4439 Fix error message 2023-10-24 19:45:56 +02:00
Laurent Destailleur
69e7a76aee Fix log level 2023-10-24 19:28:28 +02:00
Laurent Destailleur
8ea84c5bb5 FIX error of webhook not returned 2023-10-24 19:27:04 +02:00
Laurent Destailleur
7cec963a97 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-24 17:00:48 +02:00
Laurent Destailleur
70e475d0ce Fix warnings 2023-10-24 15:40:36 +02:00
Benjamin Neumann
f7d77cbd7d NEW Generic doc template for donations (#26338)
* NEW Generic doc template for donations

Can be used to create written acknowledgments to substantiate a charitable
contribution in the United States, but it is not specific to the United
States.

Multi-lingual.

If the global setting DONATION_NOTE_PUBLIC is greater than 0, the public
note for the donation is also included. This can be used in the United
States to notate if a donation is not entirely deductible.

* FIX Style errors.

* FIX A new typo
2023-10-24 13:13:40 +02:00
Laurent Destailleur
a318031034 QUAL Standardize code. Renamed ID of user properties into ->user_xxx_id 2023-10-24 11:37:29 +02:00
Laurent Destailleur
1950669a24 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-24 03:23:37 +02:00
Laurent Destailleur
1734adfd27 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-24 03:05:46 +02:00
Laurent Destailleur
1d1a1c88f6 NEW Date format dayhoursec is using year on 2 char on smartphones 2023-10-24 01:13:43 +02:00
MDW
acea5c17dd each is deprecated in PHP7.2 and removed in PHP8.0 (#26317)
See https://www.php.net/manual/en/function.each.php
2023-10-23 19:20:55 +02:00
MDW
e036e32caa qual Annotation/initialisation fixes (#26318) 2023-10-23 19:19:10 +02:00
William Mead
08f17dab0b Qual logevents action switch (#26330)
* QUAL use switch case instead of if elseif statements for actions

* Deleted unnecessary action comments

* Added default case

* Added contributor details

---------

Co-authored-by: William Mead <william.mead@manchenumerique.fr>
2023-10-23 18:58:57 +02:00
Laurent Destailleur
b7de0baedd Fix phpunit 2023-10-23 18:54:16 +02:00
am97
ee3bd43473 FIX user creation when LDAP is configured (#26332) 2023-10-23 18:39:22 +02:00