Frédéric FRANCE
656c8d04de
Update paymentmodes.php
2024-01-06 11:35:55 +01:00
Frédéric FRANCE
b1876a9cab
remove dead code
...
due to test line 1672, other test are always false and code is no more needed
2024-01-06 11:18:21 +01:00
Laurent Destailleur
2c52622348
Merge pull request #27248 from a-schild/25828-odt-fix-wrong-styles
...
25828 odt fix wrong styles
2024-01-05 20:11:45 +01:00
Laurent Destailleur
3fe97af1ad
Update odf.php
...
No need of a very high entropy as we already have the microsecond in string.
2024-01-05 20:11:07 +01:00
Laurent Destailleur
4ad69cb635
Update odf.php
2024-01-05 20:08:41 +01:00
Laurent Destailleur
571c63380f
Merge pull request #27272 from altairisfr/vatupdatehook
...
NEW : add hook AFTER_VAT_UPDATE
2024-01-05 19:02:03 +01:00
Laurent Destailleur
91f1695ba0
Merge pull request #27301 from frederic34/patch-3
...
fix incorrect case of class
2024-01-05 19:00:28 +01:00
Laurent Destailleur
a9a69618d8
Merge pull request #27303 from frederic34/patch-7
...
fix error returning from a trigger
2024-01-05 18:59:39 +01:00
Laurent Destailleur
e8fa7aeebb
Merge pull request #27304 from alexandre-janniaux/discount-commonobject/1
...
QUAL: DiscountAbsolute: inherit CommonObject to implement errorsToString
2024-01-05 18:42:32 +01:00
Laurent Destailleur
30f018ccd8
Merge pull request #27305 from alexandre-janniaux/discounttest-soc/1
...
FIX: DiscountTest: fix create when no societe exists
2024-01-05 18:41:04 +01:00
Alexandre Janniaux
a0a3339eb9
DiscountTest: fix create when no societe exists
...
Fix the following error when running without the dataset.
✘ Discount create
┐
├ ERROR: 23503: insert or update on table "llx_societe_remise_except" violates foreign key constraint "fk_soc_remise_fk_soc"
├ DETAIL: Key (fk_soc)=(1) is not present in table "llx_societe".
├ SCHEMA NAME: public
├ TABLE NAME: llx_societe_remise_except
├ CONSTRAINT NAME: fk_soc_remise_fk_soc
├ LOCATION: ri_ReportViolation, ri_triggers.c:2596 - sql=INSERT INTO llx_societe_remise_except (entity, datec, fk_soc, discount_type, fk_user, description, amount_ht, amount_tva, amount_ttc, tva_tx, vat_src_code, multicurrency_amount_ht, multicurrency_amount_tva, multicurrency_amount_ttc, fk_facture_source, fk_invoice_supplier_source) VALUES (1, '2024-01-05 14:05:20', 1, 0, 1, 'Specimen discount', 10, 1.96, 11.96, 19.6, '', 0, 0, 0, null, null),
├ Failed asserting that 0 is less than -1.
│
│ dolibarr/test/phpunit/DiscountTest.php:147
┴
2024-01-05 15:05:33 +01:00
Alexandre Janniaux
e3e2dd348d
discount: remove now duplicated fields
...
Now that DiscountAbsolute is a CommonObject, some fields are duplicated
in the definition of the class and already defined in the CommonObject
class.
2024-01-05 14:55:00 +01:00
Alexandre Janniaux
8cfb183152
discount: add errorsToString()
...
$localobject->errorsToString() is available in most objects using $db or
other systems generating errors because they inherit from CommonObject.
However, DiscountAbsolute didn't inherit from it.
Extending CommonObject allows to implement the usual behaviour for core
objects like referencing the user doing the action.
2024-01-05 14:54:55 +01:00
Frédéric FRANCE
b3e7cdbad9
fix error returning from a trigger
2024-01-05 13:52:58 +01:00
Laurent Destailleur
c41583a3e0
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-01-05 12:20:14 +01:00
Laurent Destailleur
242c403f50
Fix missing SPF info of the noreply email
2024-01-05 12:19:52 +01:00
Frédéric FRANCE
c16f3bbbdf
fix incorrect case of class
2024-01-05 09:43:44 +01:00
Christophe Battarel
8778a917ff
Merge branch 'develop' into vatupdatehook
2024-01-05 08:54:17 +01:00
Laurent Destailleur
61c58714a4
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2024-01-05 04:34:15 +01:00
Laurent Destailleur
4501872f17
Clean code with rector 2
2024-01-05 04:33:58 +01:00
Laurent Destailleur
70aa4a22ca
Clean code with rector
2024-01-05 04:18:53 +01:00
Laurent Destailleur
c3fb26086f
Enhance rector
2024-01-05 03:52:06 +01:00
Laurent Destailleur
ccaae7ab24
Clean code
2024-01-05 03:41:22 +01:00
Laurent Destailleur
bbf687da0c
Fix warning
2024-01-05 03:08:16 +01:00
Laurent Destailleur
30275625ac
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
2024-01-05 02:46:53 +01:00
Laurent Destailleur
7aecc84fdd
css
2024-01-05 02:34:08 +01:00
Laurent Destailleur
4222a3d6da
Last action that close the sell (payments) at end in takepos pad
2024-01-05 02:25:31 +01:00
Laurent Destailleur
4797779a4b
Merge pull request #21202 from altairis-melina/search
...
NEW : TAKEPOS-Clear search results
2024-01-05 02:15:22 +01:00
Laurent Destailleur
97584d11e5
Merge pull request #27100 from altairisfr/shiprank
...
add rank to shipment lines display
2024-01-05 02:13:10 +01:00
Laurent Destailleur
02183b473d
Merge pull request #27294 from alexandre-janniaux/fichintertest-soc/1
...
FIX: FichinterTest: create Societe object in test
2024-01-05 02:05:17 +01:00
Laurent Destailleur
29d5f43ac4
Merge pull request #27292 from frederic34/patch-3
...
Update element.php
2024-01-05 02:03:28 +01:00
Laurent Destailleur
8a35c5a055
Merge pull request #27293 from alexandre-janniaux/fichintertest-qual/1
...
QUAL: FichinterTest: add errorsToString()
2024-01-05 01:45:19 +01:00
Christophe Battarel
b64ecef81d
fix ajax search for external modules
2024-01-05 01:33:31 +01:00
Laurent Destailleur
a3f9755cbe
Merge pull request #27297 from altairisfr/fixtakeposhook
...
FIX : fix ajax search for external modules
2024-01-05 01:33:12 +01:00
Alexandre Janniaux
425f10d71e
install: upgrade2: add missing modules
...
Those modules cannot be enabled from the upgrade2 script if they are not
in the list.
2024-01-05 01:28:53 +01:00
Laurent Destailleur
0d675ce3eb
Merge pull request #27295 from alexandre-janniaux/upgrade2-add-modules/1
...
FIX: install: upgrade2: add missing modules
2024-01-05 01:28:35 +01:00
Christophe Battarel
29382ee262
fix ajax search for external modules
2024-01-04 17:52:05 +01:00
Alexandre Janniaux
dc85ae541a
install: upgrade2: add missing modules
...
Those modules cannot be enabled from the upgrade2 script if they are not
in the list.
2024-01-04 17:07:22 +01:00
Alexandre Janniaux
0e58316050
FichinterTest: create Societe object
...
Fix the following error when running without the dataset.
Fichinter
✘ Fichinter create
┐
├ ERROR: 23503: insert or update on table "llx_fichinter" violates foreign key constraint "fk_fichinter_fk_soc"
├ DETAIL: Key (fk_soc)=(1) is not present in table "llx_societe".
├ SCHEMA NAME: public
├ TABLE NAME: llx_fichinter
├ CONSTRAINT NAME: fk_fichinter_fk_soc
├ LOCATION: ri_ReportViolation, ri_triggers.c:2596,
├ Failed asserting that 0 is less than -1.
│
│ dolibarr/test/phpunit/FichinterTest.php:147
┴
2024-01-04 17:04:45 +01:00
Alexandre Janniaux
a07ad0fe73
FichinterTest: add errorsToString()
...
Adding $localobject->errorsToString() as third argument to the assert
will allow to forward internal errors towards the tests and display them
accordingly.
2024-01-04 17:02:12 +01:00
Laurent Destailleur
3b52533055
Enhance apstats
2024-01-04 16:15:20 +01:00
Laurent Destailleur
cabaf7aad4
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-01-04 15:27:12 +01:00
Laurent Destailleur
b5cdfd5190
Rename class file for pdf generation to match Dolibarr standard
2024-01-04 15:23:46 +01:00
Laurent Destailleur
32dec98d14
Fix warning
2024-01-04 15:06:37 +01:00
André Schild
37f4053c6f
Use more secure way to generate unique id (thanks to laurent)
2024-01-04 15:04:47 +01:00
Laurent Destailleur
0ea29a9252
Doxygen
2024-01-04 15:00:56 +01:00
Laurent Destailleur
1b660bddf0
Fix parameter type
2024-01-04 14:48:02 +01:00
Laurent Destailleur
ef39446d89
Better bootstrap for phpstan
2024-01-04 14:25:35 +01:00
Frédéric FRANCE
cd7b2ead85
Update element.php
2024-01-04 12:12:36 +01:00
Christophe Battarel
f10634fe55
test MAIN_VIEW_LINE_NUMBER
2024-01-04 08:51:29 +01:00