瀏覽代碼

Fix qodana script errors

Hystepik 2 年之前
父節點
當前提交
60fdf497ab

+ 7 - 0
.gitignore

@@ -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

+ 3 - 0
scripts/bank/export-bank-receipts.php

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

+ 1 - 1
scripts/invoices/email_unpaid_invoices_to_representatives.php

@@ -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);

+ 6 - 0
scripts/invoices/rebuild_merge_pdf.php

@@ -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;

+ 2 - 1
scripts/members/sync_members_ldap2dolibarr.php

@@ -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;