Commit graph

151292 commits

Author SHA1 Message Date
Laurent Destailleur
402570e1c5 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-10-19 14:00:10 +02:00
Laurent Destailleur
a0b791a4a6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-10-19 13:59:35 +02:00
Laurent Destailleur
e97c1dc48e Better message 2024-10-19 13:51:05 +02:00
Laurent Destailleur
2aa67ba983 Trans 2024-10-19 13:31:56 +02:00
Laurent Destailleur
0844ed2f9b NEW Include a protection into check update to detect malware 2024-10-19 13:16:13 +02:00
Laurent Destailleur
9c9832124b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-19 11:40:25 +02:00
Laurent Destailleur
2e12ab4b65 Clean code 2024-10-19 11:39:56 +02:00
Noé Cendrier
a18103187c
NEW: Management of extrafields on customer prices, level prices and default prices (#31313)
* ADD: Management of extrafields on customer prices, level prices and default prices

* ADD: sql table for managing extrafields on customer prices, level prices and default prices

* FIX: Add actions to update, add, delete extrafields and display extrafield

* FIX: colspan for customer price table

* ADD: Management of extrafields on customer prices

* FIX: Value and search for price label

* ADD: name in the files

* FIX: *

* FIX: PHP-cs fail

* FIX: comment in english, please

* FIX: variable naming and testing

* FIX: GETPOST array

* FIX: return is an array of strings, object array will be modified as well

* FIX: return array keys for Extrafields::fetch_name_optionals_label are string too

* FIX: do not mess with extrafields code and value

* Update llx_product_customer_price_extrafields.sql

* Update llx_product_price_extrafields.sql

* FIX: whooopsie

* FIX: PHP warnings

---------

Co-authored-by: Mélina JOUM <melina.joum@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-19 09:50:18 +02:00
William Mead
0be87db4db
Qual isolate supplier invoice line classes to separate files (#31121)
* Moved supplier invoice line class to separate file. Added contributor details.

* Moved supplier invoice rec line class to separate file. Cleaned requires.

* Updated ChangeLog

* Fixed typo

* Updated PHPDoc

* Fixed Phantom warnings

* Fixed pre-commit

* Fixed PHPDoc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-19 03:40:46 +02:00
Alexandre Janniaux
0bdd209d06
QUAL: AccountancySystem: maintenance work to uniformize and clean up (#31391)
* accountancysystem: inherit CommonObject

This provides the common methods on the database objects like error
handling.

* accountancysystem: improve error reporting

Forward the database error to the caller when an error happens.

* accountancysystem: clean up class

The fields that were completely unused are removed. $ref is still kept
since it was filled by AccountancySystem::fetch(), but marqued as
deprecated to incite using the newer more descriptive pcg_version field.

* Update accountancysystem.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-19 03:37:44 +02:00
Alain Rihs
1ef98c3a6f
Update functions.lib.php (#31455)
The language key for the foreign currency does not exist alone but always with the amount. In order to solve this, I propose the following code with a new key: __MULTICURRENCY_CODE__
2024-10-19 01:58:27 +02:00
Florian Mortgat
abefce7ae2
FIX 17.0: supplier invoice template card: buyer and seller swapped in VAT-related function calls (probably a copy-paste from customer invoice templates) (#31446) 2024-10-19 01:55:58 +02:00
kkhelifa-opendsi
90a545637e
NEW : Add hook after the line is processed in the sell journal page (#31439) 2024-10-19 01:38:36 +02:00
Michael Bussmann
286d2e7670
FIX #31305 Translation of INVOICE_ADD_EPC_QR_CodePay moved from admin to bills (#31441)
Signed-off-by: Michael Bussmann <bus+git@mb-net.net>
2024-10-19 01:34:48 +02:00
atm-irvine
352bdaf9c4
FIX : Extrafield following between rec invoice and classic invoice (#31445) 2024-10-19 01:33:31 +02:00
UltraViolet33
c023c3b8c3
FIX attached files not sent in empty email (#31444)
When we send an email with empty text content but with attached file, the file was not sent.

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
2024-10-19 01:26:02 +02:00
MDW
11c43e8c63
Fix: ticket.class phan/phpstan notices (#31448)
* Qual: Fix ticket.class notices

* Do not analyze custom

* Fix: Correct reference to cache (+phpdoc)

* Update baseline, ignore everything in custom

* Qual: Fix notices in files related to ticket class
2024-10-19 01:21:41 +02:00
Joachim Kueter
9643a27423
fix typo (#31449) 2024-10-19 01:19:21 +02:00
Joachim Kueter
6b6fabea14
fix: respect setting for VAT column (#31450) 2024-10-19 01:18:55 +02:00
Yoan Mollard
7c94d086a1
Allow to set ReplyTo header in e-mailings (#31454) 2024-10-19 01:16:51 +02:00
Frédéric FRANCE
03fa5617da
move trigger into line class (#31457)
* move trigger into line class

* move trigger into line class

* fix
2024-10-19 01:14:20 +02:00
jyhere
5ca4990579
FIX : Shippable tooltip virtual stock may be wrong (#31458)
Bug since the dawn of time  in the order list Shippable column ! :)
2024-10-19 01:11:22 +02:00
Norbert Penel
3b172d9020
Update functions.lib.php (#31461)
Help for developers who doesn't understand the changes in getElementProperties
2024-10-19 01:04:45 +02:00
Florian Mortgat
cc02bff277
NEW 21.0 - tab on recurring invoice card to see the list of generated invoices (#31463)
* NEW 21.0 - tab on recurring invoice card to see the list of invoices generated from this recurring invoice (customer and supplier invoices)

* tab on recurring invoice card: missing url param in $param

* tab on recurring invoice card: stronger typing for phpstan compliance

* tab on recurring invoice card: wrong typing in phpdoc of supplier_invoice_rec_prepare_head
2024-10-19 01:02:21 +02:00
John BOTELLA
2f1d9cd9c0
FIX : space used by linked elements in PDF notes (#31459) 2024-10-19 00:57:57 +02:00
Yoan Mollard
e17e9e8703
Sanitize JS string fort alert() (#31465) 2024-10-19 00:56:00 +02:00
Laurent Destailleur
c9ed9bb6eb FIX Avoid fatal error when mysqli not available 2024-10-18 23:48:24 +02:00
Laurent Destailleur
86d3352332 Fix delete project when mrp module never enabled 2024-10-18 23:23:03 +02:00
Laurent Destailleur
dd680a85fd Fix delete project when mrp module never enabled 2024-10-18 23:14:31 +02:00
Laurent Destailleur
130eebfc61 Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop 2024-10-18 22:46:06 +02:00
Laurent Destailleur
865fb59f95 CSS 2024-10-18 22:45:51 +02:00
Laurent Destailleur
f9eb82de7f FIX pagebreak when option PDF_ADD_POSITION is set 2024-10-18 18:43:59 +02:00
Laurent Destailleur
56a845963e NEW Can set border radius of list and tables 2024-10-18 17:11:25 +02:00
Laurent Destailleur
db0e93b816 CSS 2024-10-18 16:08:33 +02:00
Laurent Destailleur
cf6b02b341 Fix regression, avoid using global variable 2024-10-18 15:35:24 +02:00
John BOTELLA
dd4536b7bd fix usage of on bottom 2024-10-18 14:34:54 +02:00
John BOTELLA
e53858a735 fix usage of on bottom 2024-10-18 14:33:34 +02:00
John BOTELLA
d0d59141af fix usage of on bottom 2024-10-18 14:31:18 +02:00
Kamel Khelifa
87c16498ca FIX: Fix return value of hook sendMail when hook return -1 who must be return false in sendfile() function 2024-10-18 14:26:04 +02:00
John BOTELLA
3aa716d89f Merge branch 'fix_v20_pdf_space_lost_with_images_eratosthene2' into fix_v20_pdf_space_lost_with_images_sponge 2024-10-18 14:15:18 +02:00
John BOTELLA
6eb59e5dc1 fix usage of on bottom 2024-10-18 14:14:41 +02:00
John BOTELLA
75da4150b9 Merge branch 'fix_v20_pdf_space_lost_with_images' into fix_v20_pdf_space_lost_with_images_eratosthene2 2024-10-18 14:13:03 +02:00
John BOTELLA
702ff5a865 fix usage of on bottom 2024-10-18 14:12:28 +02:00
Hystepik
2003be5e79 Add action to send manual trigger 2024-10-18 10:43:06 +02:00
John BOTELLA
9eeb8c64f8 Merge branch 'fix_v20_pdf_space_lost_with_images_eratosthene2' of github.com:thersane-john/dolibarr into fix_v20_pdf_space_lost_with_images_sponge 2024-10-18 10:04:02 +02:00
John BOTELLA
f15c22388a Merge branch 'fix_v20_pdf_space_lost_with_images' of github.com:thersane-john/dolibarr into fix_v20_pdf_space_lost_with_images_eratosthene2 2024-10-18 10:02:01 +02:00
John BOTELLA
68df2bf79f Merge branch '20.0' of https://github.com/Dolibarr/dolibarr into fix_v20_pdf_space_lost_with_images 2024-10-18 10:00:27 +02:00
John BOTELLA
036bff18f3 Fix sponge space lost with images 2024-10-18 09:46:07 +02:00
Laurent Destailleur
b43f0079d6 css 2024-10-18 04:14:02 +02:00
Laurent Destailleur
1d2683da89 FIX permission on stock transfer pages 2024-10-18 03:27:57 +02:00