2
0
forked from Wavyzz/dolibarr

Fix qodana script errors

This commit is contained in:
Hystepik
2023-06-11 00:05:09 +02:00
parent 35cd4ce6c0
commit 60fdf497ab
5 changed files with 19 additions and 2 deletions

7
.gitignore vendored
View File

@@ -58,3 +58,10 @@ package-lock.json
doc/install.lock
/.asciidoctorconfig.adoc
# Qodana
.idea/vcs.xml
.idea/modules.xml
.idea/workspace.xml
.idea/inspectionProfiles/Project_Default.xml
.idea/jsLinters/jshint.xml

View File

@@ -204,6 +204,9 @@ if ($resql) {
}
$i = 0;
$total = 0;
$totald = 0;
$totalc = 0;
while ($i < $numrows) {
$thirdparty = '';
$accountelem = '';

View File

@@ -109,7 +109,7 @@ if ($resql) {
print "We found ".$num." couples (unpayed validated invoice - sale representative) qualified\n";
dol_syslog("We found ".$num." couples (unpayed validated invoice - sale representative) qualified");
$message = '';
$oldsalerepresentative = 0;
if ($num) {
while ($i < $num) {
$obj = $db->fetch_object($resql);

View File

@@ -78,6 +78,12 @@ $filter = array();
$regenerate = ''; // Ask regenerate (contains name of model to use)
$option = '';
$fileprefix = 'mergedpdf';
$dateafterdate = '';
$datebeforedate = '';
$paymentdateafter = '';
$paymentdatebefore = '';
$paymentonbankid = 0;
$thirdpartiesid = 0;
foreach ($argv as $key => $value) {
$found = false;

View File

@@ -187,7 +187,8 @@ $ldap = new Ldap();
$result = $ldap->connect_bind();
if ($result >= 0) {
$justthese = array();
$pricefirst = 0;
$pricelast = 0;
// We disable synchro Dolibarr-LDAP
$conf->global->LDAP_MEMBER_ACTIVE = 0;