1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-20 12:14:01 +01:00

Fix generazione sepa

This commit is contained in:
MatteoPistorello 2023-03-30 10:27:47 +02:00
parent a3cd71e07f
commit e2dc1423c2
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class CbiSepa
$el1->appendChild($el2); $el1->appendChild($el2);
$el->appendChild($el1); $el->appendChild($el1);
$el1 = $domDoc->createElement("Amt", ""); $el1 = $domDoc->createElement("Amt", "");
$el2 = $domDoc->createElement("InstdAmt", number_format(round($ricevuta->importo,2),2,'.','')); $el2 = $domDoc->createElement("InstdAmt", number_format($ricevuta->importo,2,'.',''));
$newel2 = $el1->appendChild($el2); $newel2 = $el1->appendChild($el2);
$newel2->setAttribute("Ccy", "EUR"); $newel2->setAttribute("Ccy", "EUR");
$el->appendChild($el1); $el->appendChild($el1);

View File

@ -256,7 +256,7 @@ class Gestore
return true; return true;
} }
public function aggiungiBonifico(int $identifier, Anagrafica $controparte, Banca $banca_controparte, string $descrizione, int $totale, DateTime $data_prevista, $ctgypurp) public function aggiungiBonifico(int $identifier, Anagrafica $controparte, Banca $banca_controparte, string $descrizione, float $totale, DateTime $data_prevista, $ctgypurp)
{ {
$data_scadenza = $data_prevista->format('dmy'); $data_scadenza = $data_prevista->format('dmy');