Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
495 commits
Select commit Hold shift + click to select a range
8e03694
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Apr 22, 2024
98fc003
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Apr 22, 2024
79353a6
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Apr 22, 2024
c454729
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 22, 2024
ce8c704
FIX Merge of thirdparties must also move uploaded files
eldy Apr 23, 2024
0a2699f
FIX php8: Fatal when empty $tmpvat is an empty string (no silent conv…
atm-florianm Apr 24, 2024
c8ef530
note_private and note_public was forgotten too (#29440)
rycks Apr 24, 2024
2d971f3
Fix regression
eldy Apr 24, 2024
3723ae0
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 14.0
eldy Apr 24, 2024
7259195
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Apr 24, 2024
8d5dd56
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Apr 24, 2024
07dedd3
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Apr 24, 2024
bc29102
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Apr 24, 2024
0693fa9
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 24, 2024
f46ec55
fix: when option SOCIETE_ADDRESSES_MANAGEMENT is set then PHP message…
FHenry Apr 24, 2024
00e61f8
FIX: Hierarchy Employee view do not filter on employee = 1 (#29496)
FHenry Apr 26, 2024
3a887ab
FIX #29496 - filtering a record should not hide its child not filtered
eldy Apr 27, 2024
078c1dd
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 27, 2024
5129454
Backport : Fix VAT computation. Fix #28620 (#29493)
thomas-Ngr Apr 27, 2024
7317e16
FIX: php warning global conf (#29478)
YannisHoareau Apr 27, 2024
35aa10a
Fix translation of permissions after 6c521073ea9215fb7baddca5e48345b2…
Apr 27, 2024
50e9b4c
Revert "Fix translation of permissions after 6c521073ea9215fb7baddca5…
eldy Apr 27, 2024
56e1412
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Apr 27, 2024
fdc1cdd
FIX incorrect page numbering in PDF #29458 (#29476)
fappels Apr 27, 2024
90a89d3
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Apr 27, 2024
c29a27d
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Apr 27, 2024
73a07ed
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 27, 2024
4ed7702
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 27, 2024
7688461
fix: when invoice is created by WORKFLOW_ORDER_AUTOCREATE_INVOICE on …
FHenry Apr 27, 2024
3df1490
FIX : Display the date according to user language on subsitutions (#2…
ksar-ksar Apr 27, 2024
ff54b1c
Fix regression in permission test for list of holiday
eldy Apr 29, 2024
94e93ae
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Apr 29, 2024
a174922
Fix translation of permissions only en_US after 6c521073ea9215fb7badd…
Apr 29, 2024
82806b0
fix: SQL Error on replannish (#29548)
FHenry May 1, 2024
37fcbc3
FIX: search and add extrafields to tasks when conf disabled (#29542)
YannisHoareau May 1, 2024
03c4f72
FIX: made invalid code shape error more user friendly (#29498)
YannisHoareau May 1, 2024
fdb63a6
Fix related to #29580
eldy May 2, 2024
750c1c1
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy May 2, 2024
93fc018
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy May 2, 2024
36873b9
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy May 2, 2024
594280e
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy May 2, 2024
6b812cc
Backport en provenance de develop pour afficher les messages d'erreur…
MaximilienR-easya May 2, 2024
8474360
FIX: contact/address title is always "New Contact/Address" even if th…
atm-florianm May 3, 2024
cf6cbaf
FIX: PUT /thirdparties/{id} and PUT /contacts/{id} should throw excep…
atm-florianm May 3, 2024
3258b00
FIX: notification: error 500 in fixed emails due to a bad copy/paste …
marc-dll May 3, 2024
1c81155
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy May 3, 2024
4fef808
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy May 3, 2024
98fc9ff
fix tab
eldy May 3, 2024
b44e35e
Fix warning
eldy May 6, 2024
c4ad5e0
FIX back to page on error in contact card (#29627)
lvessiller-opendsi May 7, 2024
cfc162a
FIX lettering (auto) for invoice deposit with company discount (#29633)
lvessiller-opendsi May 7, 2024
8a57ac3
fix: accountancy php warning key undefined (#29636)
FHenry May 7, 2024
66d4960
FIX : Not qualified lines for reception (#29473)
Kazimir42 May 9, 2024
ba4f732
FIX PHP exception on getSpecialCode (#29646)
fappels May 10, 2024
1406715
FIX executeHooks $object default value (#29647)
Paul-Schulte May 11, 2024
133bf3f
FIX : mo cloning (#29686)
atm-adrien May 15, 2024
22dddb8
FIX: Backport page inventory.php from v18 to fix pagination bugs caus…
atm-florianm May 15, 2024
03ce503
fix translation for non latin languages (#29717)
sonikf May 21, 2024
b656111
Backport d'un fix sur un lien du menu (#29719)
MaximilienR-easya May 21, 2024
f3460ea
FIX REPLENISH MANY FOURN WHEN ORDER ALREADY CREATE (#29710)
IC-Mathieu May 21, 2024
a9cb586
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy May 21, 2024
659830b
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy May 21, 2024
5b35b2b
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy May 21, 2024
fb1e5b9
Update card.php Issue #29757 (#29758)
carmelchas May 25, 2024
5821a87
Fix 18.0 - Update VAT for Switzerland (#29760)
daraelmin May 26, 2024
f0bf49f
FIX: #29439 incomplete API return (#29796)
battosai30 May 31, 2024
382f279
Fix incorrect translation code and missing one (#29804)
MaximilienR-easya May 31, 2024
5a2bcc4
fix: do not allow/suggest create shipping with 2 time the same serial…
FHenry Jun 3, 2024
26e09f8
FIX: Unsigned propal having signing date (#29825)
YannisHoareau Jun 4, 2024
7249e3a
FIX init total amounts in margin module (#29854)
lvessiller-opendsi Jun 6, 2024
bd23133
FIX group by qty in product margin tab (#29853)
lvessiller-opendsi Jun 6, 2024
a3e7151
fix restrictedArea on selectobject (#29882)
Kazimir42 Jun 7, 2024
ee75ffe
FIX update date_echeance of supplier invoices when we update invoice …
UltraViolet33 Jun 7, 2024
72a2a96
Fix travis
eldy Jun 7, 2024
040e908
Fix : expense report reapproval email, wrong date format + missing pa…
atm-maxime Jun 7, 2024
5989ee9
Fix : SQL error on stock transfer deletion (#29902)
atm-maxime Jun 7, 2024
b0e825c
FIX: PHP 8 warning on output of successful cronjob (#29922)
marc-dll Jun 8, 2024
956d1b0
Fix : product price by quantity was removing default price (#29899)
atm-maxime Jun 8, 2024
c5bb185
FIX modification date from label in accounting bookkeeping list (#30038)
lvessiller-opendsi Jun 15, 2024
cbba014
fk_product could be = -1 then line added is not linked to selected pr…
rycks Jun 15, 2024
9c6a1ea
fix: bad errors variable for error return (#30145)
FHenry Jun 24, 2024
42d9b38
FIX: Bad calculation of $nbtotalofrecord (#30183)
noec764 Jun 29, 2024
2e6af87
FIX User List - Function is show in wrong column when module HRM enab…
aspangaro Jun 29, 2024
6cd3d79
FIX orders to bill menu (#30179)
lvessiller-opendsi Jun 29, 2024
70799e3
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Jun 29, 2024
300fd7c
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Jun 29, 2024
00b58c9
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Jun 29, 2024
d4b49fa
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jun 29, 2024
d6da8fa
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jun 29, 2024
6031f84
FIX: pos: invoice date incorrectly set beacause of timezome mismatche…
marc-dll Jun 30, 2024
7cee801
FIX #30010 : Use conf TICKET_MESSAGE_MAIL_INTRO instead of translatio…
evarisk-micka Jun 30, 2024
75f853f
Fix date of invoice. We want the date of the user.
eldy Jul 1, 2024
96a5479
FIX: Error mesg show untranslated extrafield name (#30227)
noec764 Jul 1, 2024
e79f18a
FIX ASSET: annual depreciation starting year (Again ;-)) #26084 (#30040)
josett225 Jul 2, 2024
a7dcd9c
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 2, 2024
29dd8ad
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 2, 2024
ca39809
Fix #30256
eldy Jul 4, 2024
8636259
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Jul 6, 2024
0a88dc9
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Jul 6, 2024
9ddc8dd
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 6, 2024
32aaab7
fix: hidden option MAIN_KEEP_REF_CUSTOMER_ON_CLONING always win on pr…
FHenry Jul 10, 2024
05cfd3d
FIX #30274 : Add the include before executing dolibarr_set_const (#30…
ksar-ksar Jul 10, 2024
2335ea3
FIX public project form return an error if SOCIETE_EMAIL_UNIQUE (#29942)
iouston Jul 11, 2024
09fdb88
FIX expedition PDF models using units labels (#30358)
lvessiller-opendsi Jul 13, 2024
eca8735
Fix les lien de téléchargement de facture fournisseur sur la page vue…
MaximilienR-easya Jul 13, 2024
9487a4f
FIX transfer in accountancy for expense reports.
eldy Jul 14, 2024
f7936d4
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 14, 2024
609b842
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Jul 14, 2024
75d40e6
Fix d'une erreur qui survient quand on ne selection aucun entrepot lo…
MaximilienR-easya Jul 15, 2024
8d6d17c
fix missing value on fetch (#30390)
SylvainLegrand Jul 16, 2024
50646e7
FIX Accountancy - Generate entries of expense report with localtax (#…
aspangaro Jul 17, 2024
4479b1e
FIX Conflict with autoload (#30399)
fcharlaix-opendsi Jul 17, 2024
f8da618
FIX : issue to get the right files exported in Quadratrus export.php …
josett225 Jul 17, 2024
193faf6
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Jul 18, 2024
6c7bc18
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Jul 18, 2024
f14833f
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 18, 2024
8857aeb
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 18, 2024
30f1d4f
Backport fix from develop (#30421)
MaximilienR-easya Jul 20, 2024
89b558a
Fixes loss of rich text wrapping for translated category descriptions…
SylvainLegrand Jul 23, 2024
0982220
FIX: Supplier Order search on date valid (#30448)
FHenry Jul 24, 2024
1495c9d
Add element on childTables (#30445)
atm-lucasmantegari Jul 24, 2024
bc69a62
fix: on edit line contrat, if failed at the end, stay on edit mode (#…
FHenry Jul 24, 2024
517e5e7
fix: load translation for extrafields in PDF (#30461)
FHenry Jul 25, 2024
7c9e6b1
FIX lang output for sales representative on PDF (#30469)
atm-thibaultf Jul 25, 2024
54e087f
FIX #30467
eldy Jul 25, 2024
207a290
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 25, 2024
d500425
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Jul 25, 2024
c1b8197
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Jul 25, 2024
385d98b
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Jul 25, 2024
966ac2c
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Jul 25, 2024
dc58a90
Fix modulebuilder MAIN_ODT_AS_PDF (#30496)
fappels Jul 31, 2024
2c92e57
FIX : Display the real_PMP on inventory when its value is equal to 0 …
atm-adrien Aug 1, 2024
a5cba32
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Aug 1, 2024
2743550
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Aug 1, 2024
650fa5e
fix: add missing fetch_optionals() call on OrderLine fetch method (#3…
FHenry Aug 6, 2024
7cde5ad
FIX fatal error on loading pictures in attached documents of an event…
lvessiller-opendsi Aug 6, 2024
163e623
FIX: on change ref for bank account attachement are lost (#30529)
FHenry Aug 7, 2024
0295c43
Fix error due to mismatch type for duration value (#30593)
MaximilienR-easya Aug 10, 2024
892d9cc
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Aug 12, 2024
bd98d3e
fix: VAT is already calculted if not post (#30683)
FHenry Aug 20, 2024
e7e96f6
FIX #30768 allocate the correct invoice_line_id to the element timesp…
evarisk-micka Aug 27, 2024
70660d7
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Aug 27, 2024
9f5ef68
fix replenish with multicurrency (#30832)
thomas-Ngr Sep 5, 2024
21ec7ce
FIX: Error message overwrited when a error occurs during update of pr…
kkhelifa-opendsi Sep 6, 2024
d29ebee
FIX avoid from re-initializing array result on nested hook getEntity …
kkhelifa-opendsi Sep 9, 2024
d17890f
FIX: purge files cron: php warnings when rest module enabled (#30919)
marc-dll Sep 12, 2024
65e5899
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Sep 12, 2024
1b24270
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 12, 2024
4cd82df
FIX late propal search option (v18+) (#30687)
W1W1-M Sep 13, 2024
1a81d7f
FIX late order search option (v18+) (#30692)
W1W1-M Sep 13, 2024
f64a078
Fix php8 change, '' != 0 since php8 (#30997)
MaximilienR-easya Sep 17, 2024
126dc77
fix: add missing hook in propal and invoice (contact and document tab…
FHenry Sep 18, 2024
dcba334
Retroport: FIX determine multi-currency price on object line create t…
BenjaminFlr Sep 18, 2024
61c5a61
fix: better error reporting in CMailFile (#31058)
FHenry Sep 20, 2024
fd0338c
Backport Fix error on empty(NOLOGIN) (#30594)
MaximilienR-easya Sep 23, 2024
21d8c40
Fixed select list for long third party names (#30948)
W1W1-M Sep 23, 2024
171494d
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Sep 23, 2024
ad154a3
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Sep 23, 2024
1594afd
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Sep 23, 2024
2f773e9
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 23, 2024
6de574b
Fix a problem when we have an extrafield on the line (#31104)
MaximilienR-easya Sep 25, 2024
e4a93da
FIX mysql error during dump for enable sandbox M999999 (#31116)
lvessiller-opendsi Sep 25, 2024
bb40a43
FIX Add same security test whe nuploading files from API than from GU…
thomas-Ngr Sep 26, 2024
16a0d1d
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Sep 26, 2024
65c9bd7
Merge remote-tracking branch 'origin/15.0' into 16.0
eldy Sep 26, 2024
4ea503f
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Sep 26, 2024
691f76d
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 26, 2024
a8cb076
Fix move
eldy Sep 26, 2024
e125ab4
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 26, 2024
c0f5e31
fix: DOL_DATA_ROOT do not have last / by defaut, and last_main_doc no…
FHenry Sep 26, 2024
79edf0f
Fix delete commande fournisseur line linked to commandedet (#31136)
UltraViolet33 Sep 26, 2024
c727bbb
FIX: when qty is not an integer, apply price() (#31138)
atm-florianm Sep 26, 2024
6678902
Merge remote-tracking branch 'origin/10.0' into 11.0
eldy Sep 26, 2024
644f365
Merge remote-tracking branch 'origin/11.0' into 12.0
eldy Sep 26, 2024
c1889af
Merge remote-tracking branch 'origin/12.0' into 13.0
eldy Sep 26, 2024
eef0d0b
Merge branch '13.0' of [email protected]:Dolibarr/dolibarr.git into 14.0
eldy Sep 26, 2024
8a330ec
Merge remote-tracking branch 'origin/14.0' into 15.0
eldy Sep 26, 2024
b517e06
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Sep 26, 2024
df7fffc
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Sep 26, 2024
1dfc091
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 26, 2024
231fc6c
FIX: if you call fetchLines several times, your $object->lines contai…
atm-florianm Sep 29, 2024
74b67eb
FIX - use price() to display qty on a product's stats tab to avoid sh…
atm-florianm Sep 29, 2024
32646cb
Merge branch '10.0' of [email protected]:Dolibarr/dolibarr.git into 11.0
eldy Sep 29, 2024
a621032
Merge branch '11.0' of [email protected]:Dolibarr/dolibarr.git into 11.0
eldy Sep 29, 2024
385927f
FIX: box_actions.php still uses fk_user_done which no longer exists (…
atm-florianm Sep 29, 2024
a27538f
Merge branch '11.0' of [email protected]:Dolibarr/dolibarr.git into 12.0
eldy Sep 29, 2024
5213837
Merge branch '12.0' of [email protected]:Dolibarr/dolibarr.git into 12.0
eldy Sep 29, 2024
6eddee9
Merge branch '12.0' of [email protected]:Dolibarr/dolibarr.git into 13.0
eldy Sep 29, 2024
624493f
Merge branch '13.0' of [email protected]:Dolibarr/dolibarr.git into 14.0
eldy Sep 29, 2024
d0fb08a
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Sep 29, 2024
2c67c8b
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Sep 29, 2024
f5fbbcf
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Sep 29, 2024
97eacef
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Sep 29, 2024
25ea797
Fix not default template for BOM
eldy Sep 30, 2024
5d58a33
Fix tz array (#31240)
SylvainLegrand Oct 3, 2024
e71631a
fix : missing update for extrafields on holidays (#31256)
thomas-Ngr Oct 3, 2024
9af212a
Update ticket.class.php Bug-fix Issue #31206 (#31208)
cbeasley-sbb Oct 3, 2024
336d3ad
finish fix (#31203)
thomas-Ngr Oct 3, 2024
f287d10
Use <= 0 instead of ! because delete method returns -1 or 1 (#31268)
atm-irvine Oct 4, 2024
63d4b5e
FIX Backport fix fatal error on price with some truncating setup
eldy Oct 6, 2024
9509929
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Oct 7, 2024
3391d3d
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Oct 7, 2024
40965b6
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Oct 7, 2024
94ed718
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 7, 2024
1e64870
NEW - Add a new hook on order list (#31315)
atm-lucasmantegari Oct 11, 2024
33c6d95
Backport Fix wrong invoice status when invoice has discount (#31323)
UltraViolet33 Oct 13, 2024
70a453a
FIX: substitutions THIRDPARTY_XXX are not available for actioncomm re…
thomas-Ngr Oct 14, 2024
793e77b
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Oct 14, 2024
fa22ebd
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Oct 14, 2024
278eea6
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Oct 14, 2024
d819d88
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 14, 2024
111e3fc
Revert "NEW - Add a new hook on order list (#31315)"
eldy Oct 16, 2024
35f3a4f
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 16, 2024
352bdaf
FIX : Extrafield following between rec invoice and classic invoice (#…
atm-irvine Oct 18, 2024
abefce7
FIX 17.0: supplier invoice template card: buyer and seller swapped in…
atm-florianm Oct 18, 2024
a0b791a
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 19, 2024
b0c7b87
fix overwritten value (#31470)
frederic34 Oct 19, 2024
1d197e4
fix shippable tooltip value overwritten (#31468)
frederic34 Oct 19, 2024
c48b035
FIX issue on action set condition in particular when you set a deposi…
atm-corentin Oct 23, 2024
b37b2ba
fix: test on const with space.... (#31505)
FHenry Oct 23, 2024
39afafc
FIX: If you have no stock of your product, an error is displayed when…
Thomas905 Oct 23, 2024
d9d0618
Fix avoid unexpected deletion on accounting account when using multic…
eldy Oct 24, 2024
aa09644
Merge branch '18.0' of github.com:Dolibarr/dolibarr into 18.0
eldy Oct 24, 2024
0e62008
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 24, 2024
eaa31ed
FIX: Fix bug select columns and acces to the public ticket list from …
kkhelifa-opendsi Oct 28, 2024
a186e16
Backport fix for mysql 8 export
eldy Oct 29, 2024
8b4dcb1
FIX email templates for expense report not visible
eldy Oct 29, 2024
cf57e7e
Merge
eldy Oct 29, 2024
7cf1a97
Merge branch '12.0' of [email protected]:Dolibarr/dolibarr.git into 13.0
eldy Oct 29, 2024
910f7e8
Merge branch '13.0' of [email protected]:Dolibarr/dolibarr.git into 14.0
eldy Oct 29, 2024
b3a2908
Merge branch '14.0' of [email protected]:Dolibarr/dolibarr.git into 15.0
eldy Oct 29, 2024
6a4ee18
Merge branch '15.0' of [email protected]:Dolibarr/dolibarr.git into 16.0
eldy Oct 29, 2024
1987ea2
Merge branch '16.0' of [email protected]:Dolibarr/dolibarr.git into 17.0
eldy Oct 29, 2024
0981c69
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Oct 29, 2024
c396a08
fix const WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE (#31601)
thomas-Ngr Oct 29, 2024
7133c65
FIX show preview pdf list expensereport (#31694)
atm-jonathan Nov 5, 2024
b8286ab
fix: List of UserGroup display wrong count of records( actual: nb gr…
FHenry Nov 5, 2024
bbf83c7
fix dol_getdate() when timestamp is an empty string (#31714)
uvaldenaire-opendsi Nov 6, 2024
723c827
FIX 17.0 fatal when updating recurring supplier invoice line with php…
atm-florianm Nov 6, 2024
5eb5033
FIX #25853 Thirdparty Massaction (#25868)
simnandez Nov 7, 2024
67bcc24
fix trim null value on invoice creation (#31682)
uvaldenaire-opendsi Nov 10, 2024
d5e2f89
FIX can validate shipment without stock movement (#31780)
lvessiller-opendsi Nov 12, 2024
0eee1ad
Qual: remove php 8.2 warnings by casting trim() argument to string. (…
uvaldenaire-opendsi Nov 12, 2024
f4b2269
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
eldy Nov 12, 2024
d3b9a83
Fix changelog
eldy Nov 13, 2024
d5add8a
typo
eldy Nov 13, 2024
29ef86a
Typo
eldy Nov 13, 2024
792ff40
Typo
eldy Nov 13, 2024
67c2a48
Add missing extrafields on strato pdf model (#31790)
rycks Nov 13, 2024
2c3d97d
Added a configuration option for the propagation to variants
Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
588 changes: 0 additions & 588 deletions .github/logToCs.py

This file was deleted.

18 changes: 5 additions & 13 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
env:
LOG_TO_CS: .github/logToCs.py
RAW_LOG: pre-commit.log
CS_XML: pre-commit.xml
steps:
Expand Down Expand Up @@ -37,7 +36,7 @@ jobs:
with:
cache: pip
python-version: "3.11"
- run: python -m pip install pre-commit regex
- run: python -m pip install pre-commit
# Restore previous cache of precommit
- uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -102,19 +101,12 @@ jobs:
pre-commit run --hook-stage manual -a php-cs-with-cache | tee -a ${RAW_LOG}
ls -l ~/.cache/pre-commit/

# If error, we convert log in the checkstyle format
- name: Convert Raw Log to CheckStyle format
if: ${{ failure() }}
run: |
python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
# Annotate the git sources with the log messages
- name: Annotate Source Code with Messages
uses: staabm/annotate-pull-request-from-checkstyle-action@v1
- name: Convert Raw Log to Annotations
uses: mdeweerd/[email protected]
if: ${{ failure() }}
with:
files: ${{ env.CS_XML }}
notices-as-warnings: true # optional
prepend-filename: true # optional
in: ${{ env.RAW_LOG }}

# Save the precommit cache
- uses: actions/cache/save@v4
if: ${{ ! cancelled() }}
Expand Down
270 changes: 257 additions & 13 deletions ChangeLog

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/examples/zapier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"npm": ">=5.6.0"
},
"dependencies": {
"zapier-platform-core": "11.3.1"
"zapier-platform-core": "15.0.1"
},
"devDependencies": {
"mocha": "^5.2.0",
Expand Down
28 changes: 14 additions & 14 deletions dev/setup/codesniffer/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
<arg name="tab-width" value="4"/>
<arg name="extensions" value="php" />

<exclude-pattern type="relative">build/html</exclude-pattern>
<exclude-pattern type="relative">build/aps</exclude-pattern>
<exclude-pattern type="relative">dev/tools/test/namespacemig</exclude-pattern>
<!-- <exclude-pattern type="relative">dev/initdata/dbf/includes</exclude-pattern> -->
<exclude-pattern type="relative">documents</exclude-pattern>
<exclude-pattern type="relative">htdocs/core/class/lessc.class.php</exclude-pattern>
<exclude-pattern type="relative">htdocs/custom</exclude-pattern>
<exclude-pattern type="relative">htdocs/includes</exclude-pattern>
<exclude-pattern type="relative">htdocs/install/doctemplates/websites</exclude-pattern>
<exclude-pattern type="relative">htdocs/conf.php</exclude-pattern>
<exclude-pattern type="relative">*/nltechno*</exclude-pattern>
<exclude-pattern type="relative">source</exclude-pattern>
<exclude-pattern type="relative">.git</exclude-pattern>
<exclude-pattern type="relative">.cache</exclude-pattern>
<!-- info: '*' is replaced with '.*', so better use '+' in some cases -->
<!-- info: 'relative' paths are relative to the examined file, so not ok. -->
<exclude-pattern>/build/(html|aps)/</exclude-pattern>
<exclude-pattern>/dev/tools/test/namespacemig/</exclude-pattern>
<!-- <exclude-pattern>dev/initdata/dbf/includes</exclude-pattern> -->
<exclude-pattern>/documents/</exclude-pattern>
<exclude-pattern>/htdocs/core/class/lessc\.class\.php</exclude-pattern>
<exclude-pattern>/htdocs/(custom|includes)/</exclude-pattern>
<exclude-pattern>/htdocs/install/doctemplates/websites</exclude-pattern>
<exclude-pattern>/htdocs/([^/]+/)?conf\.php</exclude-pattern>
<exclude-pattern>*/nltechno*</exclude-pattern>
<exclude-pattern>/source/</exclude-pattern>
<exclude-pattern>/\.git/</exclude-pattern>
<exclude-pattern>/\.cache/</exclude-pattern>

<!-- List of all tests -->

Expand Down
2 changes: 1 addition & 1 deletion htdocs/accountancy/bookkeeping/balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@

// Show first line of a break
print '<tr class="trforbreak">';
print '<td colspan="'.($colspan+1).'" style="font-weight:bold; border-bottom: 1pt solid black;">'.$line->numero_compte.($root_account_description ? ' - '.$root_account_description : '').'</td>';
print '<td colspan="'.($colspan+1).'" class="tdforbreak">'.$root_account_number.($root_account_description ? ' - '.$root_account_description : '').'</td>';
print '</tr>';

$displayed_account = $root_account_number;
Expand Down
7 changes: 2 additions & 5 deletions htdocs/accountancy/bookkeeping/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,6 @@
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
$objectstatic = new Facture($db);
$objectstatic->fetch($line->fk_doc);
//$modulepart = 'facture';

$filename = dol_sanitizeFileName($line->doc_ref);
$filedir = $conf->facture->dir_output.'/'.dol_sanitizeFileName($line->doc_ref);
Expand All @@ -1202,19 +1201,17 @@
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
$objectstatic = new FactureFournisseur($db);
$objectstatic->fetch($line->fk_doc);
//$modulepart = 'invoice_supplier';

$filename = dol_sanitizeFileName($line->doc_ref);
$filedir = $conf->fournisseur->facture->dir_output.'/'.get_exdir($line->fk_doc, 2, 0, 0, $objectstatic, $modulepart).dol_sanitizeFileName($line->doc_ref);
$subdir = get_exdir($objectstatic->id, 2, 0, 0, $objectstatic, $modulepart).dol_sanitizeFileName($line->doc_ref);
$filedir = $conf->fournisseur->facture->dir_output.'/'.get_exdir($line->fk_doc, 2, 0, 0, $objectstatic, $objectstatic->element).dol_sanitizeFileName($line->doc_ref);
$subdir = get_exdir($objectstatic->id, 2, 0, 0, $objectstatic, $objectstatic->element).dol_sanitizeFileName($line->doc_ref);
$documentlink = $formfile->getDocumentsLink($objectstatic->element, $subdir, $filedir);
} elseif ($line->doc_type == 'expense_report') {
$langs->loadLangs(array('trips'));

require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
$objectstatic = new ExpenseReport($db);
$objectstatic->fetch($line->fk_doc);
//$modulepart = 'expensereport';

$filename = dol_sanitizeFileName($line->doc_ref);
$filedir = $conf->expensereport->dir_output.'/'.dol_sanitizeFileName($line->doc_ref);
Expand Down
10 changes: 5 additions & 5 deletions htdocs/accountancy/bookkeeping/list.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2013-2016 Olivier Geffroy <[email protected]>
* Copyright (C) 2013-2016 Florian Henry <[email protected]>
* Copyright (C) 2013-2023 Alexandre Spangaro <[email protected]>
* Copyright (C) 2022 Lionel Vessiller <[email protected]>
* Copyright (C) 2013-2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2022 Lionel Vessiller <[email protected]>
* Copyright (C) 2016-2017 Laurent Destailleur <[email protected]>
* Copyright (C) 2018-2021 Frédéric France <[email protected]>
* Copyright (C) 2022 Progiseize <[email protected]>
Expand Down Expand Up @@ -479,7 +479,7 @@
setEventMessages($object->error, $object->errors, 'errors');
$error++;
break;
} elseif (isset($object->date_validation) || $object->date_validation != '') {
} elseif (isset($object->date_validation) && $object->date_validation != '') {
setEventMessages($langs->trans("ValidatedRecordWhereFound"), null, 'errors');
$error++;
break;
Expand Down Expand Up @@ -932,7 +932,7 @@
print $form->selectDate($search_date_modification_start, 'search_date_modification_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans("From"));
print '</div>';
print '<div class="nowrap">';
print $form->selectDate($search_date_modification_end, 'search_date_modification_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans("From"));
print $form->selectDate($search_date_modification_end, 'search_date_modification_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans("to"));
print '</div>';
print '</td>';
}
Expand Down Expand Up @@ -1293,7 +1293,7 @@
}

if (!empty($arrayfields['t.import_key']['checked'])) {
print '<td class="tdoverflowmax100">'.$obj->import_key."</td>\n";
print '<td class="center">'.$obj->import_key."</td>\n";
if (!$i) {
$totalarray['nbfield']++;
}
Expand Down
6 changes: 3 additions & 3 deletions htdocs/accountancy/bookkeeping/listbyaccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Copyright (C) 2016 Neil Orley <[email protected]>
* Copyright (C) 2013-2016 Olivier Geffroy <[email protected]>
* Copyright (C) 2013-2020 Florian Henry <[email protected]>
* Copyright (C) 2013-2022 Alexandre Spangaro <[email protected]>
* Copyright (C) 2013-2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2018 Frédéric France <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -446,7 +446,7 @@
setEventMessages($object->error, $object->errors, 'errors');
$error++;
break;
} elseif (isset($object->date_validation) || $object->date_validation != '') {
} elseif (isset($object->date_validation) && $object->date_validation != '') {
setEventMessages($langs->trans("ValidatedRecordWhereFound"), null, 'errors');
$error++;
break;
Expand Down Expand Up @@ -1207,7 +1207,7 @@
}

if (!empty($arrayfields['t.import_key']['checked'])) {
print '<td class="tdoverflowmax100">'.$line->import_key."</td>\n";
print '<td class="center">'.$line->import_key."</td>\n";
if (!$i) {
$totalarray['nbfield']++;
}
Expand Down
13 changes: 7 additions & 6 deletions htdocs/accountancy/class/accountancyexport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) 2015 Florian Henry <[email protected]>
* Copyright (C) 2015 Raphaël Doursenaud <[email protected]>
* Copyright (C) 2016 Pierre-Henry Favre <[email protected]>
* Copyright (C) 2016-2023 Alexandre Spangaro <[email protected]>
* Copyright (C) 2016-2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2022 Lionel Vessiller <[email protected]>
* Copyright (C) 2013-2017 Olivier Geffroy <[email protected]>
* Copyright (C) 2017 Elarifr. Ari Elbaz <[email protected]>
Expand Down Expand Up @@ -385,11 +385,12 @@ public function export(&$TData, $formatexportset, $withAttachment = 0, $download
// directory already created when module is enabled
$outputDir .= '/export';
$outputDir .= '/'.dol_sanitizePathName($formatexportset);
if (!dol_is_dir($outputDir)) {
if (dol_mkdir($outputDir) < 0) {
$this->errors[] = $langs->trans('ErrorCanNotCreateDir', $outputDir);
return -1;
}
}

if (!dol_is_dir($outputDir)) {
if (dol_mkdir($outputDir) < 0) {
$this->errors[] = $langs->trans('ErrorCanNotCreateDir', $outputDir);
return -1;
}
}

Expand Down
12 changes: 5 additions & 7 deletions htdocs/accountancy/class/accountancyimport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ public function cleanValue(&$arrayrecord, $listfields, $record_key)
public function computeAmount(&$arrayrecord, $listfields, $record_key)
{
// get fields indexes
$field_index_list = array_flip($listfields);
if (isset($field_index_list['debit']) && isset($field_index_list['credit'])) {
$debit_index = $field_index_list['debit'];
$credit_index = $field_index_list['credit'];
if (isset($listfields['b.debit']) && isset($listfields['b.credit'])) {
$debit_index = $listfields['b.debit'];
$credit_index = $listfields['b.credit'];

$debit = floatval($arrayrecord[$debit_index]['val']);
$credit = floatval($arrayrecord[$credit_index]['val']);
Expand All @@ -123,9 +122,8 @@ public function computeAmount(&$arrayrecord, $listfields, $record_key)
*/
public function computeDirection(&$arrayrecord, $listfields, $record_key)
{
$field_index_list = array_flip($listfields);
if (isset($field_index_list['debit'])) {
$debit_index = $field_index_list['debit'];
if (isset($listfields['b.debit'])) {
$debit_index = $listfields['b.debit'];

$debit = floatval($arrayrecord[$debit_index]['val']);
if (!empty($debit)) {
Expand Down
32 changes: 28 additions & 4 deletions htdocs/accountancy/class/lettering.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class Lettering extends BookKeeping
'table' => 'societe_remise_except',
'fk_doc' => 'fk_facture_source',
'fk_link' => 'fk_facture',
'fk_line_link' => 'fk_facture_line',
'table_link_line' => 'facturedet',
'fk_table_link_line' => 'rowid',
'fk_table_link_line_parent' => 'fk_facture',
'prefix' => 'a',
'is_fk_link_is_also_fk_doc' => true,
),
Expand All @@ -73,6 +77,10 @@ class Lettering extends BookKeeping
'table' => 'societe_remise_except',
'fk_doc' => 'fk_invoice_supplier_source',
'fk_link' => 'fk_invoice_supplier',
'fk_line_link' => 'fk_invoice_supplier_line',
'table_link_line' => 'facture_fourn_det',
'fk_table_link_line' => 'rowid',
'fk_table_link_line_parent' => 'fk_facture_fourn',
'prefix' => 'a',
'is_fk_link_is_also_fk_doc' => true,
),
Expand Down Expand Up @@ -765,10 +773,26 @@ public function getLinkedDocumentByGroup($document_ids, $doc_type)
$link_by_element = array();
$element_by_link = array();
foreach ($doc_type_info['linked_info'] as $linked_info) {
$sql = "SELECT DISTINCT tl2." . $linked_info['fk_link'] . " AS fk_link, tl2." . $linked_info['fk_doc'] . " AS fk_doc";
$sql .= " FROM " . MAIN_DB_PREFIX . $linked_info['table'] . " AS tl";
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . $linked_info['table'] . " AS tl2 ON tl2." . $linked_info['fk_link'] . " = tl." . $linked_info['fk_link'];
$sql .= " WHERE tl." . $linked_info['fk_doc'] . " IN (" . $this->db->sanitize(implode(',', $document_ids)) . ")";
if (empty($linked_info['fk_line_link'])) {
$sql = "SELECT DISTINCT tl2.".$linked_info['fk_link']." AS fk_link, tl2.".$linked_info['fk_doc']." AS fk_doc";
$sql .= " FROM ".MAIN_DB_PREFIX.$linked_info['table']." AS tl";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX.$linked_info['table']." AS tl2 ON tl2.".$linked_info['fk_link']." = tl.".$linked_info['fk_link'];
$sql .= " WHERE tl.".$linked_info['fk_doc']." IN (".$this->db->sanitize(implode(',', $document_ids)).")";
} else {
$sql = "SELECT DISTINCT tl2.fk_link, tl2.fk_doc";
$sql .= " FROM (";
$sql .= " SELECT DISTINCT " . $this->db->ifsql("tll." . $linked_info['fk_table_link_line_parent'], "tll." . $linked_info['fk_table_link_line_parent'], "tl." . $linked_info['fk_link']) . " AS fk_link, tl." . $linked_info['fk_doc'] . " AS fk_doc";
$sql .= " FROM " . MAIN_DB_PREFIX . $linked_info['table'] . " AS tl";
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . $linked_info['table_link_line'] . " AS tll ON tll." . $linked_info['fk_table_link_line'] . " = tl." . $linked_info['fk_line_link'];
$sql .= ") AS tl";
$sql .= " LEFT JOIN (";
$sql .= " SELECT DISTINCT " . $this->db->ifsql("tll." . $linked_info['fk_table_link_line_parent'], "tll." . $linked_info['fk_table_link_line_parent'], "tl." . $linked_info['fk_link']) . " AS fk_link, tl." . $linked_info['fk_doc'] . " AS fk_doc";
$sql .= " FROM " . MAIN_DB_PREFIX . $linked_info['table'] . " AS tl";
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . $linked_info['table_link_line'] . " AS tll ON tll." . $linked_info['fk_table_link_line'] . " = tl." . $linked_info['fk_line_link'];
$sql .= ") AS tl2 ON tl2.fk_link = tl.fk_link";
$sql .= " WHERE tl.fk_doc IN (" . $this->db->sanitize(implode(',', $document_ids)) . ")";
$sql .= " AND tl2.fk_doc IS NOT NULL";
}

dol_syslog(__METHOD__ . " - Get document lines", LOG_DEBUG);
$resql = $this->db->query($sql);
Expand Down
34 changes: 29 additions & 5 deletions htdocs/accountancy/journal/bankjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,11 @@
$tabtype = array();
$tabmoreinfo = array();

// Loop on each line into llx_bank table. For each line, we should get:
// Loop on each line into the llx_bank table. For each line, we should get:
// one line tabpay = line into bank
// one line for bank record = tabbq
// one line for thirdparty record = tabtp
// Note: tabcompany is used to store the subledger account
$i = 0;
while ($i < $num) {
$obj = $db->fetch_object($result);
Expand Down Expand Up @@ -263,7 +264,8 @@
);

// Set accountancy code for user
// $obj->accountancy_code is the accountancy_code of table u=user but it is defined only if a link with type 'user' exists)
// $obj->accountancy_code is the accountancy_code of table u=user (but it is defined only if
// a link with type 'user' exists and user as a subledger account)
$compta_user = (!empty($obj->accountancy_code) ? $obj->accountancy_code : '');

$tabuser[$obj->rowid] = array(
Expand Down Expand Up @@ -307,15 +309,25 @@
// get_url may return -1 which is not traversable
if (is_array($links) && count($links) > 0) {
$is_sc = false;
$is_expensereport = false;
foreach ($links as $v) {
if ($v['type'] == 'sc') {
$is_sc = true;
break;
}
if ($v['type'] == 'payment_expensereport') {
$is_expensereport = true;
break;
}
}

// Now loop on each link of record in bank (code similar to bankentries_list.php)
foreach ($links as $key => $val) {
if ($links[$key]['type'] == 'user' && !$is_sc) continue;
if ($links[$key]['type'] == 'user' && !$is_sc && !$is_expensereport) {
// We must avoid as much as possible this "continue". If we want to jump to next loop, it means we don't want to process
// the case the link is user (often because managed by hard coded code into another link), and we must avoid this.
continue;
}
if (in_array($links[$key]['type'], array('sc', 'payment_sc', 'payment', 'payment_supplier', 'payment_vat', 'payment_expensereport', 'banktransfert', 'payment_donation', 'member', 'payment_loan', 'payment_salary', 'payment_various'))) {
// So we excluded 'company' and 'user' here. We want only payment lines

Expand Down Expand Up @@ -364,13 +376,25 @@
$userstatic->lastname = $tabuser[$obj->rowid]['lastname'];
$userstatic->statut = $tabuser[$obj->rowid]['status'];
$userstatic->accountancy_code = $tabuser[$obj->rowid]['accountancy_code'];
// For a payment of social contribution, we have a link sc + user.
// but we already fill the $tabpay[$obj->rowid]["soclib"] in the line 'sc'.
// If we fill it here to, we must concat
if ($userstatic->id > 0) {
$tabpay[$obj->rowid]["soclib"] = $userstatic->getNomUrl(1, 'accountancy', 0);
if ($is_sc) {
$tabpay[$obj->rowid]["soclib"] .= ' '.$userstatic->getNomUrl(1, 'accountancy', 0);
} else {
$tabpay[$obj->rowid]["soclib"] = $userstatic->getNomUrl(1, 'accountancy', 0);
}
} else {
$tabpay[$obj->rowid]["soclib"] = '???'; // Should not happen, but happens with old data when id of user was not saved on expense report payment.
}

if ($compta_user) {
$tabtp[$obj->rowid][$compta_user] += $amounttouse;
if ($is_sc) {
//$tabcompany[$obj->rowid][$compta_user] += $amounttouse;
} else {
$tabtp[$obj->rowid][$compta_user] += $amounttouse;
}
}
} elseif ($links[$key]['type'] == 'sc') {
$chargestatic->id = $links[$key]['url_id'];
Expand Down
Loading
Loading