Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] develop from Dolibarr:develop #2653

Open
wants to merge 10,000 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
a5621c8
Fix deprecated var
eldy Jun 20, 2024
e3fb4e7
Fix show_photo on null
eldy Jun 20, 2024
95cb01a
Fix date in wrong timezone
eldy Jun 20, 2024
b1c045e
Debug v20
eldy Jun 20, 2024
587e634
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 20, 2024
a737e9e
Fix click on checkbox
eldy Jun 21, 2024
b834d24
NEW Add column "comment" in list of payment
eldy Jun 21, 2024
f93a921
css
eldy Jun 21, 2024
39d562f
Fix type of payment not saved on Stripe IPN payment
eldy Jun 21, 2024
21f1383
Clean code
eldy Jun 21, 2024
00580d3
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 21, 2024
8c99f6e
Better log for debug
eldy Jun 21, 2024
e556660
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 21, 2024
57d8320
Prepare code for image edit
eldy Jun 21, 2024
e60982b
Code comment
eldy Jun 21, 2024
9b2fd86
Trans
eldy Jun 21, 2024
84020ce
Doc
eldy Jun 21, 2024
e8f84fc
Fix option --force of cron command line tool.
eldy Jun 21, 2024
ec25b85
Exclude more phan warnings
eldy Jun 21, 2024
b45a322
Debug v20
eldy Jun 21, 2024
2d87289
Debug v20
eldy Jun 21, 2024
a5ecf1a
Debug v20
eldy Jun 22, 2024
96a1d5a
Debug v20
eldy Jun 22, 2024
7e4fe4d
css
eldy Jun 22, 2024
d331628
Prepare v20
eldy Jun 22, 2024
9e7daee
Fix look and feel v20
eldy Jun 22, 2024
9788caa
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 22, 2024
afbdc63
Fix bad label of discount
eldy Jun 22, 2024
1287190
Fix bad label of discount
eldy Jun 22, 2024
c78a74e
Fix label on discounts
eldy Jun 22, 2024
18fc25e
Fix label on discounts
eldy Jun 22, 2024
3c1acd8
Debug look and feel v20
eldy Jun 22, 2024
d393a0d
Debug v20
eldy Jun 22, 2024
b4cc409
Debug v20
eldy Jun 22, 2024
9bc84fd
Debug v20
eldy Jun 22, 2024
ec9b482
Update baseline.txt (#30127)
frederic34 Jun 22, 2024
ba461fa
fix migration19.0.0-20.0.0.sql (#30126)
frederic34 Jun 22, 2024
0750831
qual: use getDolGlobalString() for product/class/product.class.php (#…
thibdrev Jun 22, 2024
852f571
Situation invoice #29897 - Add admin message to prevent to move to …
aspangaro Jun 22, 2024
0f1ae42
fix phan (#30113)
frederic34 Jun 22, 2024
9b6586e
qual: phpdoc for ProductCombination.class.php (#30105)
thibdrev Jun 22, 2024
4dcf9b0
qual: use getDolGlobalString() in products/card.php (#30107)
thibdrev Jun 22, 2024
6deb1d9
clean code openid connect (#30119)
MaximilienR-easya Jun 22, 2024
0acb613
qual: use getDolGlobalString() for /product/price.php (#30114)
thibdrev Jun 22, 2024
d65b370
fix fichinter card rec (#30130)
frederic34 Jun 22, 2024
7ad2196
QUAL #30122 (#30131)
zephyriony Jun 22, 2024
4c3b2a0
Fix webhook list of trigger to add picto of trigger codes (#30124)
Hystepik Jun 22, 2024
8924675
css
eldy Jun 22, 2024
4725a01
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 22, 2024
f151335
Update llx_c_socialnetworks.sql LinkedIn link (#30121)
dolibarr95 Jun 22, 2024
82d144c
Situation invoice #29897 - CommonObject (#30118)
aspangaro Jun 22, 2024
aa0c182
Situation invoice #29897 - Uniformize language key (#30115)
aspangaro Jun 22, 2024
ce37359
Fix display button when ia module was enabled (#30104)
lamrani002 Jun 22, 2024
4919142
Fix display button when ia module was enabled (#30104)
lamrani002 Jun 22, 2024
3438de9
qual: use getDolGlobalString() for product/admin/price_rules.php (#30…
thibdrev Jun 22, 2024
b43fc08
qual: fix PHAN warnings for compta/facture/card.php (#30110)
thibdrev Jun 22, 2024
da4f526
test status contact (#30098)
atm-jpb Jun 22, 2024
b0116fd
NEW: redirect to expedition card if global search has unique result (…
altairis-noe Jun 22, 2024
d670696
Fix banner for paymentok page (#30095)
Hystepik Jun 22, 2024
58df1b7
Fix banner for paymentok page (#30095)
Hystepik Jun 22, 2024
7c9107a
New TCPDF v6.7.5 (#29903)
SylvainLegrand Jun 22, 2024
0784bb1
Doc update TCPDF lib
eldy Jun 22, 2024
b89940d
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy Jun 22, 2024
f722ae5
New fetch object class for a certain objecttype for webhook test (#30…
Hystepik Jun 22, 2024
3ef67a6
Fix test
eldy Jun 22, 2024
9c96ba5
Fix: The qty to be produced not added in virtual stock (#30096)
fmarcet Jun 22, 2024
4ef8c76
Situation invoice #29897 - Work on facture card (#30117)
aspangaro Jun 22, 2024
ede95c9
Cant link event to an object : here recruitment (#30100)
vmaury Jun 22, 2024
162fc23
qual: phpdoc for Product->lifetime and Product->qc_frequency (#30093)
thibdrev Jun 22, 2024
ded570e
qual: use getDolGlobalString() for product/list.php (#30111)
thibdrev Jun 22, 2024
65c3e2c
Fix regression
eldy Jun 22, 2024
6a12de5
Introduce length of field in fields array
eldy Jun 23, 2024
088f9e7
Removed not used field
eldy Jun 23, 2024
62a7c77
Debug v20
eldy Jun 23, 2024
19e852f
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 23, 2024
adb354f
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 23, 2024
e3b602a
Fix hover on top menu picto
eldy Jun 23, 2024
607adb3
Fix hover on top menu picto
eldy Jun 23, 2024
3e750c2
ignore more phan lines with phpstan (#30135)
frederic34 Jun 23, 2024
ce2631d
FIX #30132 (#30134)
zephyriony Jun 23, 2024
dafbefd
NEW: Hook do actions or check input after changing a extrafield in co…
Humml87 Jun 23, 2024
865e6a0
add phan ignore for octopus branch 20.0 (#30137)
frederic34 Jun 23, 2024
4eec08a
remove deprecated and copy phan ignore for octopus (#30136)
frederic34 Jun 23, 2024
86341f1
Debug v20
eldy Jun 23, 2024
f564445
Debug v20 - show units and css
eldy Jun 23, 2024
029870a
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 23, 2024
a4a7ee0
Debug v20
eldy Jun 23, 2024
074dd53
Debug v20
eldy Jun 23, 2024
e8c5115
Debug v20
eldy Jun 23, 2024
02c4fff
FIX: MRP cost is wrong when the associated BOM is using a service wit…
jyhere Jun 23, 2024
bfc0111
Fix romanian PDF
eldy Jun 23, 2024
a8e4f22
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 19.0
eldy Jun 23, 2024
c54a97e
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 23, 2024
1f6f93d
Debug v20
eldy Jun 24, 2024
ac2beee
Debug v20
eldy Jun 24, 2024
a751532
FIX #30120 (#30133)
zephyriony Jun 24, 2024
34a98e3
FIX rounding update price for expense report lines (#30051)
lvessiller-opendsi Jun 24, 2024
c83f11c
qual : phpdoc for Product->is_sousproduit_qty and Product->is_souspro…
thibdrev Jun 24, 2024
56d03e4
FIX #23676 desired and minimum stock displayed on replenish (#23677)
ibuiv Jun 24, 2024
f7ed852
Fix warning
eldy Jun 24, 2024
cd6c112
Trans
eldy Jun 24, 2024
b56617e
Debug v20
eldy Jun 24, 2024
7fb4db7
Trans
eldy Jun 24, 2024
c8eee02
Add total field into contract
eldy Jun 24, 2024
0875ef2
css
eldy Jun 24, 2024
1e1058b
Debug v20
eldy Jun 24, 2024
2e938fe
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 24, 2024
9bd5477
Debug v20
eldy Jun 24, 2024
856b23d
trans
eldy Jun 24, 2024
10e0f6f
Debug v20 - popup of combo go out of screen
eldy Jun 24, 2024
5741424
Debug v20
eldy Jun 24, 2024
a8a48c3
Debug v20 - fix css
eldy Jun 24, 2024
6b9141a
css
eldy Jun 24, 2024
702cca1
fix $action is unknown (#30148)
frederic34 Jun 24, 2024
c087101
fix phan (#30147)
frederic34 Jun 24, 2024
020f383
FIX - Online Sign pos on last page (#30139)
BB2A-Anthony Jun 24, 2024
05f6862
Fix MO error handling (#30140)
fappels Jun 24, 2024
322bbd9
fix : 19.0 fix inconsistent link validation (#30141)
atm-john Jun 24, 2024
9c6a1ea
fix: bad errors variable for error return (#30145)
FHenry Jun 24, 2024
53ffdec
Fix field type url
eldy Jun 24, 2024
60701b7
Fix position of fields
eldy Jun 24, 2024
4edf52b
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 24, 2024
4d8d14a
Look and feel v20
eldy Jun 24, 2024
48ccdde
A try to fix phan
eldy Jun 25, 2024
f83e345
Fix phan warning
eldy Jun 25, 2024
fbfc767
Fix warning
eldy Jun 25, 2024
7321d76
Fix warning
eldy Jun 25, 2024
76990a0
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy Jun 25, 2024
aba1883
Fix link for warning
eldy Jun 25, 2024
7f52f47
Fix link for warning
eldy Jun 25, 2024
fb57a03
Trans
eldy Jun 25, 2024
ada3ed0
Fix: different behavior on extrafield updates. (#30150)
Humml87 Jun 25, 2024
af75f69
Fix link of bank account for donation
eldy Jun 25, 2024
46c950c
NEW #24946 (#30102)
emheyarssi Jun 25, 2024
fc5c3d2
Doc
eldy Jun 25, 2024
20d71bd
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy Jun 25, 2024
db5ade9
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into
eldy Jun 25, 2024
aa9057a
Clean code - Move into integration-resources project
eldy Jun 25, 2024
628f635
Doc
eldy Jun 25, 2024
306402f
Try to fix phan
eldy Jun 25, 2024
562886a
Fix phan
eldy Jun 25, 2024
c0d2632
css
eldy Jun 25, 2024
92bc6c9
Eclude some phan warnings
eldy Jun 25, 2024
028e5fd
FIX add token in link validate and clone button uri generate an erro…
atm-jpb Jun 25, 2024
4374ece
Fix CSRF = 3 for cancel and clone
eldy Jun 25, 2024
398b8b7
Use tooltip to show explanation of info
eldy Jun 25, 2024
a2971da
Debug v20
eldy Jun 25, 2024
8f5b98b
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 25, 2024
e57e99f
fix warning with pgsql DoliDB.class.php (#30153)
frederic34 Jun 25, 2024
bd2a0b9
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 25, 2024
32ea86c
Fix reply-to filter for email collector (#30152)
Hystepik Jun 25, 2024
e8cb2a0
CSS v20
eldy Jun 25, 2024
0e4246e
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 25, 2024
22b50b2
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 26, 2024
0fbaaff
Fix link to setup pages
eldy Jun 26, 2024
920cf5f
Debug v20
eldy Jun 26, 2024
b113a38
Add migration to 21 in win ci
eldy Jun 26, 2024
2cf3221
Fix php 8.3 warnings (#30160)
Hystepik Jun 26, 2024
64f53fc
New: Add REST Api functionality for workstations (#30154)
Humml87 Jun 26, 2024
44d4abd
FIX - Online Sign pos on last page (#30158)
BB2A-Anthony Jun 26, 2024
6f40e30
Fix display all news of all website (#30146)
lamrani002 Jun 26, 2024
0cb82b4
Situation invoice #29897 - Add specific model Octopus (#30116)
aspangaro Jun 26, 2024
d2a2e1a
Fix octopus template must be visible if INVOICE_USE_SITUATIONis 2 only.
eldy Jun 26, 2024
33d5dea
Debug v20
eldy Jun 26, 2024
31dc647
Add migration v20 to v21
eldy Jun 26, 2024
16ffc39
New update for templateMail by creating files (#30151)
lamrani002 Jun 26, 2024
04f6471
Debug v20
eldy Jun 26, 2024
cfaadba
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 26, 2024
12c7019
Add logs
eldy Jun 26, 2024
0a16806
Log
eldy Jun 26, 2024
2099631
Fix detection of existing trackid
eldy Jun 26, 2024
ee9d9a9
Debug emailcollector
eldy Jun 26, 2024
cf5daf7
Removed useless option. Default dolibarr behaviour is to be open.
eldy Jun 26, 2024
dec8342
Debug v20
eldy Jun 26, 2024
34aea4b
Debug v20
eldy Jun 26, 2024
769240d
Debug v20
eldy Jun 27, 2024
dad3e54
Hack for dolibarr foundation to solve multipayment modes
eldy Jun 27, 2024
9020654
Debug v20
eldy Jun 27, 2024
a333aa2
Debug v20
eldy Jun 27, 2024
0a15655
Debug v20
eldy Jun 27, 2024
4b7fb72
FIX error management of emailcollector + support special chars in dirs
eldy Jun 27, 2024
de4ebc3
Debug v20 FIX emailcollector error mngt and support special char
eldy Jun 27, 2024
1104b95
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 27, 2024
409bccb
fix phan api_workstations.class.php (#30169)
frederic34 Jun 27, 2024
3eae3a7
Fix error and timezone
eldy Jun 27, 2024
d510405
Debug emailcollector
eldy Jun 27, 2024
8aeebe6
Fix code email out.
eldy Jun 27, 2024
5ddf992
Clean code
eldy Jun 28, 2024
a6a6541
Fix security
eldy Jun 28, 2024
9c5bd56
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 28, 2024
e9487a2
FIX barcode auto generated must work with both -1 and 'auto'
eldy Jun 28, 2024
b574fe4
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 28, 2024
d03655b
Look and feel
eldy Jun 29, 2024
2f4c84f
Debug v20
eldy Jun 29, 2024
32afd15
Debug v20
eldy Jun 29, 2024
56f4127
css
eldy Jun 29, 2024
1fc26b2
Debug v20
eldy Jun 29, 2024
c6a6778
Debug v20
eldy Jun 29, 2024
3cff90a
Fix setup of email
eldy Jun 29, 2024
0a319c6
Fix setup of emails
eldy Jun 29, 2024
f130229
fix phan emailcollector (#30196)
frederic34 Jun 29, 2024
4f5f7ea
fix: add missing button to validate survey (#30189)
FHenry Jun 29, 2024
03bd82f
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 29, 2024
ca2313b
Code comment
eldy Jun 29, 2024
bbbcf57
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 29, 2024
fdf5fe0
FIX broken pdf preview when multicompany sharing (#30188)
hregis Jun 29, 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
c3b0466
fix Undefined variable $outlangs (#30197)
frederic34 Jun 29, 2024
291b071
fix Undefined variable $outlangs (#30197)
frederic34 Jun 29, 2024
55bc8b7
phpdoc (#30180)
frederic34 Jun 29, 2024
bd39e56
Situation invoice - Fix admin message (#30172)
aspangaro Jun 29, 2024
f27dc99
Fix test
eldy Jun 29, 2024
3e95e31
FIX: PHP warning and no lost hyphen in supplier invoice if date_recep…
altairis-noe Jun 29, 2024
49e10cf
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 29, 2024
deecb7a
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 29, 2024
7a3cd72
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy 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
f64e4b4
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 19.0
eldy Jun 29, 2024
d7c2e78
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 30, 2024
b2e288f
Merge branch '18.0' of [email protected]:Dolibarr/dolibarr.git into 19.0
eldy Jun 30, 2024
db61320
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 30, 2024
675e761
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 30, 2024
5e7f43f
Update eventorganization.lang (#30198)
frederic34 Jun 30, 2024
082e7d4
fix syntax error in branch 19.0 (#30201)
frederic34 Jun 30, 2024
bde5687
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 19.0
eldy Jun 30, 2024
c7aec87
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 19.0
eldy Jun 30, 2024
6ad4ebc
Start implementation of STOCK_USE_WAREHOUSE_USAGE.
eldy Jun 30, 2024
6c02ba9
Doc
eldy Jun 30, 2024
8308608
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy Jun 30, 2024
b1f34f6
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 30, 2024
a51e719
Fix syntax error
eldy Jun 30, 2024
896bfeb
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
eldy Jun 30, 2024
7ebf1ef
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into develop
eldy Jun 30, 2024
a967f94
FIX force rounding mode 0 for expense report (#30191)
lvessiller-opendsi Jun 30, 2024
9f54e7f
doc
eldy Jun 30, 2024
2943454
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
eldy Jun 30, 2024
4dfef24
Doc
eldy Jun 30, 2024
3d1cf79
Typo
eldy Jun 30, 2024
3f8a5cd
Ignore spellcheck
eldy Jun 30, 2024
d2318c6
Test
eldy Jun 30, 2024
10ecc23
Exclude contributor name from spellcheck
eldy Jun 30, 2024
4ba6b0d
Clean language
eldy Jun 30, 2024
b833e0c
Fix typo
eldy Jun 30, 2024
b532e3b
Test
eldy Jun 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions htdocs/compta/bank/class/account.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ public function create(User $user, $notrigger = 0)
*/
public function update(User $user, $notrigger = 0)
{
global $langs, $conf;
global $langs;

$error = 0;

Expand Down Expand Up @@ -1443,7 +1443,7 @@ public function loadStateBoard($filteraccountid = 0)
*/
public function countAccountToReconcile()
{
global $db, $conf, $user;
global $user;

//Protection against external users
if ($user->socid) {
Expand All @@ -1459,6 +1459,7 @@ public function countAccountToReconcile()
if (!getDolGlobalString('BANK_CAN_RECONCILIATE_CASHACCOUNT')) {
$sql .= " AND ba.courant != " . Account::TYPE_CASH;
}

$resql = $this->db->query($sql);
if ($resql) {
$obj = $this->db->fetch_object($resql);
Expand Down
6 changes: 3 additions & 3 deletions htdocs/compta/paiement.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@
}

// Invoice with Paypal transaction
// TODO add hook here
if (isModEnabled('paypalplus') && $conf->global->PAYPAL_ENABLE_TRANSACTION_MANAGEMENT && !empty($facture->ref_ext)) {
// @TODO add hook here
if (isModEnabled('paypalplus') && getDolGlobalString('PAYPAL_ENABLE_TRANSACTION_MANAGEMENT') && !empty($facture->ref_ext)) {
if (getDolGlobalString('PAYPAL_BANK_ACCOUNT')) {
$accountid = getDolGlobalString('PAYPAL_BANK_ACCOUNT');
}
Expand Down Expand Up @@ -883,7 +883,7 @@ function callForResult(imgId)
}

print '<br><div class="center">';
print '<input type="checkbox" checked name="closepaidinvoices"> '.$checkboxlabel;
print '<input type="checkbox" checked name="closepaidinvoices" id="closepaidinvoices"><label for="closepaidinvoices"> '.$checkboxlabel.'</label>';
/*if (isModEnabled('prelevement')) {
$langs->load("withdrawals");
if (!empty($conf->global->WITHDRAW_DISABLE_AUTOCREATE_ONPAYMENTS)) print '<br>'.$langs->trans("IfInvoiceNeedOnWithdrawPaymentWontBeClosed");
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/paiement/class/paiement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Paiement extends CommonObject
public $author;

/**
* @var int ID of mode of payment. Is saved into fields fk_paiement on llx_paiement = id of llx_c_paiement
* @var int ID of mode of payment. Is saved into fields fk_paiement on llx_paiement = id of llx_c_paiement. Can get value from code using ...
*/
public $paiementid;

Expand Down
15 changes: 14 additions & 1 deletion htdocs/public/stripe/ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,20 @@
// Not yet supported, so error
$error++;
}

// Get ID of payment PRE
$paiement->paiementcode = $paymentTypeCode;
$sql = "SELECT id FROM ".MAIN_DB_PREFIX."c_paiement";
$sql .= " WHERE code = '".$db->escape($paymentTypeCode)."'";
$sql .= " AND entity IN (".getEntity('c_paiement').")";
$resql = $db->query($sql);
if ($resql) {
$obj = $db->fetch_object($resql);
$paiement->paiementid = $obj->id;
} else {
$error++;
}

$paiement->num_payment = '';
$paiement->note_public = '';
$paiement->note_private = 'StripeSepa payment ' . dol_print_date($now, 'standard') . ' using servicestatus ' . $servicestatus . ($ipaddress ? ' from ip ' . $ipaddress : '') . ' - Transaction ID = ' . $TRANSACTIONID;
Expand All @@ -453,7 +466,7 @@
$db->begin();

if (!$error && !$ispaymentdone) {
dol_syslog('* Record payment for invoice id ' . $invoice_id . '. It includes closing of invoice and regenerating document');
dol_syslog('* Record payment type PRE for invoice id ' . $invoice_id . '. It includes closing of invoice and regenerating document.');

// This include closing invoices to 'paid' (and trigger including unsuspending) and regenerating document
$paiement_id = $paiement->create($user, 1);
Expand Down