Merge pull request #22261 from frederic34/patch-7

Update bonprelevement.class.php
This commit is contained in:
Laurent Destailleur 2022-09-20 01:01:28 +02:00 committed by GitHub
commit 299649820d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,9 +450,6 @@ class BonPrelevement extends CommonObject
dol_syslog(get_class($this)."::set_infocredit AddPaymentToBank Error ".$this->error); dol_syslog(get_class($this)."::set_infocredit AddPaymentToBank Error ".$this->error);
} }
} }
//var_dump($paiement->amounts);
//var_dump($thirdpartyid);
//var_dump($cursoramounts);
} }
// Update withdrawal line // Update withdrawal line
@ -1057,8 +1054,6 @@ class BonPrelevement extends CommonObject
// This also set the property $this->total with amount that is included into file // This also set the property $this->total with amount that is included into file
$result = $this->generate($format, $executiondate, $type); $result = $this->generate($format, $executiondate, $type);
if ($result < 0) { if ($result < 0) {
/*var_dump($this->error);
var_dump($this->invoice_in_error); */
$error++; $error++;
} }
} }
@ -1684,7 +1679,7 @@ class BonPrelevement extends CommonObject
fclose($this->file); fclose($this->file);
if (!empty($conf->global->MAIN_UMASK)) { if (!empty($conf->global->MAIN_UMASK)) {
@chmod($this->file, octdec($conf->global->MAIN_UMASK)); @chmod($this->filename, octdec($conf->global->MAIN_UMASK));
} }
return $result; return $result;
@ -2180,7 +2175,8 @@ class BonPrelevement extends CommonObject
$XML_SEPA_INFO .= ' </CdtrSchmeId>'.$CrLf;*/ $XML_SEPA_INFO .= ' </CdtrSchmeId>'.$CrLf;*/
} }
} else { } else {
fputs($this->file, 'INCORRECT EMETTEUR '.$XML_SEPA_INFO.$CrLf); fputs($this->file, 'INCORRECT EMETTEUR '.$this->raison_sociale.$CrLf);
$XML_SEPA_INFO = '';
} }
return $XML_SEPA_INFO; return $XML_SEPA_INFO;
} }