Update bonprelevement.class.php

This commit is contained in:
Frédéric FRANCE 2022-09-13 20:48:59 +02:00 committed by GitHub
parent 3dd9eb5a3e
commit cba04c9648
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;