Commit graph

127583 commits

Author SHA1 Message Date
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
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
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
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
Laurent Destailleur
e9e9bd2e09 Clean code 2024-01-04 03:45:35 +01:00
Laurent Destailleur
a2b27aaf4e
Merge pull request #27191 from cfoellmann/19/PR/api-status
QUAL extend api/status
2024-01-04 03:42:53 +01:00
Laurent Destailleur
c28ad5f33a
Merge pull request #23182 from ATM-Consulting/FIX_api_products_improve_error_handling
FIX: confusing error codes in products API
2024-01-04 03:38:58 +01:00
Laurent Destailleur
b7510b86b5 Debug v19 2024-01-04 03:32:39 +01:00
Laurent Destailleur
8c1e8d2c91 Debug v19 2024-01-04 03:31:06 +01:00
Laurent Destailleur
c651f979ee Debug v19 2024-01-04 03:30:48 +01:00
Laurent Destailleur
30119ebafe css 2024-01-04 03:14:50 +01:00
Laurent Destailleur
d530c30db7 css 2024-01-04 03:09:36 +01:00
Laurent Destailleur
9a854fa37f
Merge pull request #27088 from cfoellmann/19/PR/const-hide-projectlist
add const PROJECT_HIDE_OPEN_PROJECTS_LIST_ON_PROJECT_AREA
2024-01-04 00:37:35 +01:00
Laurent Destailleur
41ccd47cbe
Merge pull request #27101 from cfoellmann/19/PR/blockedlog-project
NEW add data type 'project' to blockedlog
2024-01-04 00:34:27 +01:00
Laurent Destailleur
1d751e9838
Merge pull request #27106 from altairisfr/noprint
add noprint parameter to select_conditions_paiements
2024-01-04 00:32:51 +01:00
Laurent Destailleur
b84b5d80d0
Merge pull request #27109 from altairisfr/reopenbilled
dont reopen billed orders
2024-01-04 00:30:19 +01:00