Skip to content

Commit bdc4001

Browse files
authored
Merge branch '18.0' into patch-19
2 parents e05c510 + 52c827c commit bdc4001

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+434
-322
lines changed

.github/workflows/pr-18.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/pr-18.yaml.disabled

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Action to prepare the github action
2+
# Go on Dolibarr - Settings - Developer settings - Enter a name + webhook to disable + Permissions (see app test) + Can install by any account
3+
# Click on generate the private keys
4+
# Click on Install application - choose user of the Organization
5+
# Go on Organisation - Secret and variables and create a secret PR18_SECRET_KEY and copy the content of received private key. Choose the repository access to "Repository Dolibarr".
6+
# Go on Organisation - Secret and variables and create a variable PR18_APP_ID and copy the ID of the previously create ID. Choose the repository access to "Repository Dolibarr".
7+
#
8+
9+
name: Set reviewer for v18
10+
on:
11+
pull_request:
12+
types: [opened, synchronize, reopened]
13+
branches:
14+
- "18.0"
15+
push:
16+
branches:
17+
- "18.0"
18+
19+
jobs:
20+
pr18:
21+
runs-on: ubuntu-latest
22+
23+
#env:
24+
# GH_TOKEN: ${{ github.token }}
25+
# GH_TOKENS: ${{ secrets.GITHUB_TOKEN }}
26+
27+
steps:
28+
- name: Generate a token
29+
id: generate-token
30+
uses: actions/create-github-app-token@v2
31+
with:
32+
app-id: ${{ vars.PR18_APP_ID }}
33+
private-key: ${{ secrets.PR18_SECRET_KEY }}
34+
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
38+
- name: Assign reviewer
39+
env:
40+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
41+
url: ${{ github.event.pull_request.html_url }}
42+
run: |
43+
gh pr edit "$url" --add-reviewer rycks
44+
gh pr edit "$url" --add-reviewer lvessiller-opendsi
45+

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# from Dolibarr GitHub repository.
33
# For syntax, see https://docs.travis-ci.com/user/languages/php/
44

5-
# We use dist: bionic = 18.04, focal = 20.04
5+
# We use dist: focal = 20.04, jammy = 22.04
66
os: linux
7-
dist: focal
7+
dist: jammy
88

99
language: generic
1010

@@ -21,7 +21,7 @@ services:
2121

2222

2323
addons:
24-
mariadb: '10.5'
24+
mariadb: '10.6'
2525

2626

2727
env:
@@ -123,7 +123,8 @@ install:
123123
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
124124
sudo chmod -R a+rwx /usr/local/bin/composer
125125
composer -V
126-
composer -n config -g vendor-dir htdocs/includes
126+
sudo composer -n config -g vendor-dir htdocs/includes
127+
sudo chmod -R a+rwx /home/travis/.config/composer
127128
echo
128129
129130
- |
@@ -193,8 +194,8 @@ before_script:
193194
phpcs -i | head -
194195
# Check PHP Vardump check version
195196
echo "PHP Vardump check version"
196-
which var_dump_check
197-
var_dump_check --version
197+
which var-dump-check
198+
var-dump-check --version
198199
# Check PHPUnit version
199200
echo "PHPUnit version"
200201
which phpunit

ChangeLog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ FIX: GETPOST('private_message')
3737
FIX: in projet/element.php total_time is always back to 0
3838
FIX: invoice creation : use dol_include_once instead of require_once to allow external modules
3939
FIX: invoice creation : use dol_include_once instead of require_once to allow external modules.
40-
FIX: issue #28222 Edit date extrafield diplayed on all on lines (#31914)
40+
FIX: issue #28222 Edit date extrafield displayed on all on lines (#31914)
4141
FIX: Many status on invoice linked object block
4242
FIX: Multilangs : PDF lines description
4343
FIX: ODT substitution when many HTML tags in string
@@ -52,14 +52,14 @@ FIX: selectcontact is loading all contacts if socid is empty and MAIN_ACTIONCOM_
5252
FIX: selectcontact is loading all contacts when update event
5353
FIX: select group and severity search fields on ticket list
5454
FIX: send email to assigned user on ticket create
55-
FIX: send mail to BCC when email formated as Fullname <email> (#31983)
55+
FIX: send mail to BCC when email formatted as Fullname <email> (#31983)
5656
FIX: Show true error when send notify email at validate expense report
5757
FIX: status ticket update for new message
5858
FIX: swiftmailer: correctly set errors-to header (#31826)
5959
FIX: TakePos barcode rule (#31857)
6060
FIX: There were many status indicator in the invoice linked object block (propal card)
6161
FIX(ticket): Notification email without public interface
62-
FIX: Update on a sold line of bank entrie set the type to empty, now it's fixed #22539 (#31888)
62+
FIX: Update on a sold line of bank entries set the type to empty, now it's fixed #22539 (#31888)
6363
FIX: update status on create supplier order for trigger (#31642)
6464
FIX: use tax with code on supplier order line give tax code missing in supplier invoice (#32018)
6565
FIX: use vat with code on supplier order result code missing in supplier invoice

build/makepack-dolibarr.pl

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
$PUBLISHBETARC="$ENV{'DESTIASSOLOGIN'}\@vmprod1.dolibarr.org:/home/dolibarr/asso.dolibarr.org/dolibarr_documents/website/www.dolibarr.org/files";
2222
$PUBLISHSTABLE="$ENV{'DESTISFLOGIN'}\@frs.sourceforge.net:/home/frs/project/dolibarr";
2323

24+
# due to implicit origin on git commands, example
25+
# implicit origin, lionel upstream, eric dolibarr
26+
$GITREMOTENAME="$ENV{'GITREMOTENAME'}";
2427
#@LISTETARGET=("TGZ","ZIP","RPM_GENERIC","RPM_FEDORA","RPM_MANDRIVA","RPM_OPENSUSE","DEB","EXEDOLIWAMP","SNAPSHOT"); # Possible packages
2528
@LISTETARGET=("TGZ","ZIP","RPM_GENERIC","RPM_FEDORA","RPM_MANDRIVA","RPM_OPENSUSE","DEB","EXEDOLIWAMP","SNAPSHOT"); # Possible packages
2629
%REQUIREMENTPUBLISH=(
@@ -97,6 +100,13 @@
97100
exit 1;
98101
}
99102

103+
if (! $ENV{"GITREMOTENAME"})
104+
{
105+
print "Error: environment variable GITREMOTENAME does not exist. You can set it to 'origin' or any other git remote name.\n";
106+
print "$PROG.$Extension aborted.\n";
107+
sleep 2;
108+
exit 1;
109+
}
100110
# Detect OS type
101111
# --------------
102112
if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='linux'; $CR=''; }
@@ -442,15 +452,15 @@
442452
{
443453
print 'Run git tag -a -f -m "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'" "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'"'."\n";
444454
$ret=`git tag -a -f -m "$MAJOR.$MINOR.$BUILD" "$MAJOR.$MINOR.$BUILD"`;
445-
print 'Run git push -f --tags'."\n";
446-
$ret=`git push -f --tags`;
455+
print 'Run git push $GITREMOTENAME -f --tags'."\n";
456+
$ret=`git push $GITREMOTENAME -f --tags`;
447457
#$ret=`git push -f origin "$MAJOR.$MINOR.$BUILD"`;
448458
}
449459
}
450460
else
451461
{
452-
print 'Run git push --tags'."\n";
453-
$ret=`git push --tags`;
462+
print 'Run git push $GITREMOTENAME --tags'."\n";
463+
$ret=`git push $GITREMOTENAME --tags`;
454464
#$ret=`git push origin "$MAJOR.$MINOR.$BUILD"`;
455465
}
456466
chdir("$olddir");

htdocs/accountancy/bookkeeping/balance.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@
197197
$filter['t.reconciled_option'] = $search_not_reconciled;
198198
$param .= '&search_not_reconciled='.urlencode($search_not_reconciled);
199199
}
200+
if (!empty($show_subgroup)) {
201+
$param .= '&show_subgroup='.urlencode($show_subgroup);
202+
}
200203

201204
// param with type of list
202205
$url_param = substr($param, 1); // remove first "&"

htdocs/accountancy/bookkeeping/export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
$listofaccountsforgroup2 = array();
349349
if (is_array($listofaccountsforgroup)) {
350350
foreach ($listofaccountsforgroup as $tmpval) {
351-
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['id'])."'";
351+
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['account_number'])."'";
352352
}
353353
}
354354
$filter['t.search_accounting_code_in'] = join(',', $listofaccountsforgroup2);

htdocs/accountancy/bookkeeping/list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
$listofaccountsforgroup2 = array();
333333
if (is_array($listofaccountsforgroup)) {
334334
foreach ($listofaccountsforgroup as $tmpval) {
335-
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['id'])."'";
335+
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['account_number'])."'";
336336
}
337337
}
338338
$filter['t.search_accounting_code_in'] = join(',', $listofaccountsforgroup2);

htdocs/accountancy/bookkeeping/listbyaccount.php

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
$listofaccountsforgroup2 = array();
292292
if (is_array($listofaccountsforgroup)) {
293293
foreach ($listofaccountsforgroup as $tmpval) {
294-
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['id'])."'";
294+
$listofaccountsforgroup2[] = "'".$db->escape($tmpval['account_number'])."'";
295295
}
296296
}
297297
$filter['t.search_accounting_code_in'] = join(',', $listofaccountsforgroup2);
@@ -932,6 +932,21 @@
932932
$totalarray['val']['totaldebit'] = 0;
933933
$totalarray['val']['totalcredit'] = 0;
934934

935+
$colspan = 0; // colspan before field 'label of operation'
936+
$colspanend = 3; // colspan after debit/credit
937+
if (!empty($arrayfields['t.piece_num']['checked'])) { $colspan++; }
938+
if (!empty($arrayfields['t.code_journal']['checked'])) { $colspan++; }
939+
if (!empty($arrayfields['t.doc_date']['checked'])) { $colspan++; }
940+
if (!empty($arrayfields['t.doc_ref']['checked'])) { $colspan++; }
941+
if (!empty($arrayfields['t.label_operation']['checked'])) { $colspan++; }
942+
if (!empty($arrayfields['t.date_export']['checked'])) { $colspanend++; }
943+
if (!empty($arrayfields['t.date_validated']['checked'])) { $colspanend++; }
944+
if (!empty($arrayfields['t.lettering_code']['checked'])) { $colspanend++; }
945+
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
946+
$colspan++;
947+
$colspanend--;
948+
}
949+
935950
while ($i < min($num, $limit)) {
936951
$line = $object->lines[$i];
937952

@@ -945,21 +960,6 @@
945960
}
946961
//if (empty($accountg)) $accountg = '-';
947962

948-
$colspan = 0; // colspan before field 'label of operation'
949-
$colspanend = 3; // colspan after debit/credit
950-
if (!empty($arrayfields['t.piece_num']['checked'])) { $colspan++; }
951-
if (!empty($arrayfields['t.code_journal']['checked'])) { $colspan++; }
952-
if (!empty($arrayfields['t.doc_date']['checked'])) { $colspan++; }
953-
if (!empty($arrayfields['t.doc_ref']['checked'])) { $colspan++; }
954-
if (!empty($arrayfields['t.label_operation']['checked'])) { $colspan++; }
955-
if (!empty($arrayfields['t.date_export']['checked'])) { $colspanend++; }
956-
if (!empty($arrayfields['t.date_validated']['checked'])) { $colspanend++; }
957-
if (!empty($arrayfields['t.lettering_code']['checked'])) { $colspanend++; }
958-
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
959-
$colspan++;
960-
$colspanend--;
961-
}
962-
963963
// Is it a break ?
964964
if ($accountg != $displayed_account_number || !isset($displayed_account_number)) {
965965
// Show a subtotal by accounting account
@@ -1027,8 +1027,6 @@
10271027
//if (empty($displayed_account_number)) $displayed_account_number='-';
10281028
$sous_total_debit = 0;
10291029
$sous_total_credit = 0;
1030-
1031-
$colspan = 0;
10321030
}
10331031

10341032
print '<tr class="oddeven">';

0 commit comments

Comments
 (0)