From 34ce63b981a2bb7b5df935e14d70015286e9b3e2 Mon Sep 17 00:00:00 2001 From: Andrea Pollastri Date: Thu, 1 Feb 2024 15:23:24 +0100 Subject: [PATCH] Fixing "Causale" --- src/Models/DatiGeneraliDocumento.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/DatiGeneraliDocumento.php b/src/Models/DatiGeneraliDocumento.php index ec93d0c..2a625d7 100644 --- a/src/Models/DatiGeneraliDocumento.php +++ b/src/Models/DatiGeneraliDocumento.php @@ -23,7 +23,7 @@ public function __construct(...$args) $this->Numero = $args[0]; $this->Data = $args[1]; $this->ImportoTotaleDocumento = $args[2]; - $this->Causale = (isset($args[4]) && $args[4]) ? $args[4] : Settings::CausaleDefault(); + $this->Causale = (isset($args[3]) && $args[3]) ? $args[3] : Settings::CausaleDefault(); $this->TipoDocumento = (isset($args[4]) && $args[4]) ? $args[4] : Settings::TipoDocumentoDefault(); $this->Divisa = (isset($args[5]) && $args[5]) ? $args[5] : Settings::ValutaDefault(); }