Skip to content

Commit

Permalink
Merge pull request #99 from danielebuso/hotfix_formato_pa
Browse files Browse the repository at this point in the history
Hotfix formato trasmissione FPR12/FPA12 in nodo radice
  • Loading branch information
salgua authored Apr 14, 2022
2 parents f8a7ca7 + 2afa62f commit 4c36e91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.1.23] - 2022-04-13
### Fixed
- Hotfix formato trasmissione FPR12/FPA12 in nodo radice #99 by danielebuso

## [1.1.22] - 2022-03-02
### Fixed
- Fix DatiContratto su DatiDocumentiCorrelati #98 by danielebuso

## [1.1.21] - 2021-10-06
### Fixed
- Fix sconto e maggiorazione su importo #93 by danielebuso
Expand Down
2 changes: 1 addition & 1 deletion src/FatturaElettronica.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
public function toXmlBlock(\XMLWriter $writer)
{
$writer->startElementNS('p', 'FatturaElettronica', null);
$writer->writeAttribute('versione', 'FPR12');
$writer->writeAttribute('versione', $this->fatturaElettronicaHeader->datiTrasmissione->formatoTrasmissione);
$writer->writeAttributeNS('xmlns', 'ds', null, 'http://www.w3.org/2000/09/xmldsig#');
$writer->writeAttributeNS('xmlns', 'p', null, 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2');
$writer->writeAttributeNS('xmlns', 'xsi', null, 'http://www.w3.org/2001/XMLSchema-instance');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DatiTrasmissione implements XmlSerializableInterface
/** @var string */
public $progressivoInvio;
/** @var string */
protected $formatoTrasmissione;
public $formatoTrasmissione;
/** @var string */
protected $codiceDestinatario;
/** @var array */
Expand Down

0 comments on commit 4c36e91

Please sign in to comment.