forked from Wavyzz/dolibarr
Fix qodana script errors
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -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
|
||||
@@ -204,6 +204,9 @@ if ($resql) {
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
$total = 0;
|
||||
$totald = 0;
|
||||
$totalc = 0;
|
||||
while ($i < $numrows) {
|
||||
$thirdparty = '';
|
||||
$accountelem = '';
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user