Skip to content

Commit 4c36e91

Browse files
authored
Merge pull request #99 from danielebuso/hotfix_formato_pa
Hotfix formato trasmissione FPR12/FPA12 in nodo radice
2 parents f8a7ca7 + 2afa62f commit 4c36e91

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [1.1.23] - 2022-04-13
9+
### Fixed
10+
- Hotfix formato trasmissione FPR12/FPA12 in nodo radice #99 by danielebuso
11+
12+
## [1.1.22] - 2022-03-02
13+
### Fixed
14+
- Fix DatiContratto su DatiDocumentiCorrelati #98 by danielebuso
15+
816
## [1.1.21] - 2021-10-06
917
### Fixed
1018
- Fix sconto e maggiorazione su importo #93 by danielebuso

src/FatturaElettronica.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
public function toXmlBlock(\XMLWriter $writer)
4444
{
4545
$writer->startElementNS('p', 'FatturaElettronica', null);
46-
$writer->writeAttribute('versione', 'FPR12');
46+
$writer->writeAttribute('versione', $this->fatturaElettronicaHeader->datiTrasmissione->formatoTrasmissione);
4747
$writer->writeAttributeNS('xmlns', 'ds', null, 'http://www.w3.org/2000/09/xmldsig#');
4848
$writer->writeAttributeNS('xmlns', 'p', null, 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2');
4949
$writer->writeAttributeNS('xmlns', 'xsi', null, 'http://www.w3.org/2001/XMLSchema-instance');

src/FatturaElettronica/FatturaElettronicaHeader/DatiTrasmissione.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DatiTrasmissione implements XmlSerializableInterface
2727
/** @var string */
2828
public $progressivoInvio;
2929
/** @var string */
30-
protected $formatoTrasmissione;
30+
public $formatoTrasmissione;
3131
/** @var string */
3232
protected $codiceDestinatario;
3333
/** @var array */

0 commit comments

Comments
 (0)