Commit Graph

126677 Commits

Author SHA1 Message Date
Laurent Destailleur
1558772d83 Debug v19 2023-10-30 17:14:46 +01:00
Laurent Destailleur
b713ef80ff Debug v19 2023-10-30 16:32:35 +01:00
Laurent Destailleur
858e0dbf11 Fix php7.1 2023-10-30 14:26:21 +01:00
Laurent Destailleur
173fea5554 FIX badge on user skills tab 2023-10-30 14:23:27 +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
Mohamed DAOUD
636f9eaced Add column sales representative third party list (#26387)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-30 02:59:52 +01:00
Laurent Destailleur
b8728b5d07 Use a more explicit name for new hook 2023-10-30 02:39:06 +01:00
Christophe Battarel
c064893f80 NEW : add new hook OrderCard (#26380)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2023-10-30 02:30:35 +01:00
Vaibhav
9567c3fd23 Update README.md (#26388) 2023-10-30 02:26:09 +01:00
sonikf
26674ba5d1 fix typo (#26389) 2023-10-30 02:24:22 +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
c13d1abd0c Debug v19 2023-10-29 17:55:02 +01:00
Laurent Destailleur
0158c3ff68 Debug v19 2023-10-29 17:36:00 +01:00
Laurent Destailleur
582a6f7f45 Debug v19 2023-10-29 16:44:41 +01:00
Laurent Destailleur
d285f03120 Debug v19 2023-10-29 14:54:27 +01:00
Laurent Destailleur
2368b29d77 Fix trans 2023-10-29 13:55:30 +01:00
Laurent Destailleur
9591f7bff2 Fix trans 2023-10-29 13:52:42 +01:00
Laurent Destailleur
fecd134099 Update doc 2023-10-28 02:27:49 +02:00
Laurent Destailleur
00e706120d Fix warning 2023-10-28 02:17:48 +02:00
Laurent Destailleur
20f4051a4b Clean code 2023-10-28 02:14:47 +02:00
Laurent Destailleur
cca296c3ab Clean code 2023-10-28 02:10:34 +02:00
Laurent Destailleur
6d7d698371 Debug v19 2023-10-28 02:06:07 +02:00
Laurent Destailleur
939cf8b200 FIX Popup on service ref when product module not enabled 2023-10-28 00:59:31 +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
Laurent Destailleur
46bfae63a3 Responsive 2023-10-28 00:06:06 +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
Lucas Marcouiller
d8116b8ce4 Fix recruitement candidature cancel pre-action (#26386)
* Fix recruitement candidature cancel pre-action

* fix lang file

---------

Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
2023-10-27 17:40:34 +02:00
Laurent Destailleur
05718dd43e Add performance index 2023-10-27 15:01:11 +02:00
Alexandre SPANGARO
ad1c363aa6 FIX Supplier card - VAT Reserve Charge - Undefined function isInEEC() (#26379) 2023-10-27 12:53:03 +02:00
Noé Cendrier
9138486c59 NEW filter on from/to period rather than month/year (#26378) 2023-10-27 12:47:11 +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
a4218a142c Look and feel v19 2023-10-26 18:11:34 +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
Christophe Battarel
11c1094b76 FIX : TakePOS - fix option TAKEPOS_PRODUCT_IN_STOCK must read on the POS warehouse (#24809)
* fix stock displayed

* fix php8

* fix php8

* fix

* php8

* fix group by

* fix empty

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2023-10-26 17:49:19 +02:00
Laurent Destailleur
9d25ea418f Clean code to use getDolGlobalInt 2023-10-26 17:45:03 +02:00
atm-lena
9bfeb5e424 Add Hook "printFieldListFrom" in supplier order list (#26376)
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
2023-10-26 17:13:36 +02:00
lamrani abdelwadoud
40fb7c5fa7 FIX Payement infos for Fournisseur add change company condition for get default infos (#26305)
* add change company condition for get default infos

* fix it for compta/facture also
2023-10-26 17:12:57 +02:00
Alexandre SPANGARO
145cfcbb26 NEW : Allow to have products not managed in stocks - SQL Part (#26190)
* NEW : Allow to have products not managed in stocks - SQL Part

* Update as proposed
2023-10-26 16:34:17 +02:00
Alexandre Janniaux
c3b3840f08 QUAL Refactor merging companies and fix #26272 with Reception objects (#26320)
* societe: add missing model_pdf field

The field is used by the class but wasn't declared.

* societe: expose Societe::mergeCompany

The code is directly copied from societe/card.php with as less changes
as possible.

The original code came from deb91ad7c1.

* societe: remove fields from property copy

$phone_pro and $fk_project are not existing for societe. This was added
from deb91ad7c1.

* SocieteTest: test the merge functionality

This test is a simple smoke test to check that the mergeCompany() will
work correctly on simple case and actually merge the details of the
company.

More complex deduplication pattern with objects referencing the deleted
Societe object, will be written for each of the different object class
in their respective test file.

* societe: card: use the new mergeCompany function

Since the code is almost the same, there should be no differences in
behaviour right now.

* societe: api_thirdparties: use Societe::mergeCompany()

* societe: fix issue when merging companies

When a Societe object is merged against another, its related objects are
supposed to reference the new Societe object so that the databse doesn't
raise foreign key errors.

The list references the objects that need to be transformed, and
Reception objects weren't part of this list.

Fix #26272

* ReceptionTest: check company merge hook

Before a Societe object is destroyed from the database, every object
referencing the FK should be destroyed or should reference another
object.

In the case of two companies being merged, the case arises and Reception
objects need to be moved to the new company. This commit brings a
non-regression test for this case.

Refs #26272

* Update societe.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 16:30:38 +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
Lucas Marcouiller
8fa8666735 Fix mysql error in project time (#26375)
Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
2023-10-26 15:47:34 +02:00
atm-lucas
3f75077f5e NEW - Add edit line on MO (#26122)
* Added the possibility of editing lines

* Review code

* add exit

* Add same action

* check Travis

* Travis

* Update mo_production.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 14:11:27 +02:00
Mohamed DAOUD
990f9113fc FIX - Auto fill the field end of period with end of month when cloning a salary (#26263)
* Auto fill the field end of period

* Auto fill the field end of period without jsDate

* using formatDate function to format displayed date
2023-10-26 14:03:21 +02:00