1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-24 12:51:05 +01:00

Fix scadenze XML senza data

This commit is contained in:
Thomas Zilio 2019-02-19 09:14:35 +01:00
parent c21b03e91a
commit 5a0ed16733

View File

@ -273,7 +273,7 @@ class Fattura extends Document
$scadenze = isset($pagamenti[0]) ? $pagamenti : [$pagamenti];
foreach ($scadenze as $scadenza) {
$data = $scadenza['DataScadenzaPagamento'];
$data = $scadenza['DataScadenzaPagamento'] ?: $this->data;
$importo = $scadenza['ImportoPagamento'];
$dbo->insert('co_scadenziario', [