Update bonprelevement.class.php
This commit is contained in:
parent
3dd9eb5a3e
commit
cba04c9648
@ -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
|
||||||
@ -1039,15 +1036,15 @@ class BonPrelevement extends CommonObject
|
|||||||
$account = new Account($this->db);
|
$account = new Account($this->db);
|
||||||
if ($account->fetch($id) > 0) {
|
if ($account->fetch($id) > 0) {
|
||||||
$this->emetteur_code_banque = $account->code_banque;
|
$this->emetteur_code_banque = $account->code_banque;
|
||||||
$this->emetteur_code_guichet = $account->code_guichet;
|
$this->emetteur_code_guichet = $account->code_guichet;
|
||||||
$this->emetteur_numero_compte = $account->number;
|
$this->emetteur_numero_compte = $account->number;
|
||||||
$this->emetteur_number_key = $account->cle_rib;
|
$this->emetteur_number_key = $account->cle_rib;
|
||||||
$this->emetteur_iban = $account->iban;
|
$this->emetteur_iban = $account->iban;
|
||||||
$this->emetteur_bic = $account->bic;
|
$this->emetteur_bic = $account->bic;
|
||||||
|
|
||||||
$this->emetteur_ics = ($type == 'bank-transfer' ? $account->ics_transfer : $account->ics);
|
$this->emetteur_ics = ($type == 'bank-transfer' ? $account->ics_transfer : $account->ics);
|
||||||
|
|
||||||
$this->raison_sociale = $account->proprio;
|
$this->raison_sociale = $account->proprio;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->factures = $factures_prev_id;
|
$this->factures = $factures_prev_id;
|
||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user