mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 01:08:08 +01:00
Allineamento modifiche a versione XML 1.2.1
This commit is contained in:
parent
31e645e0b6
commit
8d59408846
@ -335,7 +335,7 @@ class FatturaElettronica
|
||||
$fattura = new FluidXml(null, ['stylesheet' => 'http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2.1/fatturaPA_v1.2.1.xsl']);
|
||||
|
||||
// Generazione dell'elemento root
|
||||
$fattura->namespace('p', 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2');
|
||||
$fattura->namespace('p', 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2.1');
|
||||
$root = $fattura->addChild('p:FatturaElettronica', true);
|
||||
$rootNode = $root[0];
|
||||
|
||||
@ -344,7 +344,7 @@ class FatturaElettronica
|
||||
'versione' => ($cliente['tipo'] == 'Ente pubblico') ? 'FPA12' : 'FPR12',
|
||||
'xmlns:ds' => 'http://www.w3.org/2000/09/xmldsig#',
|
||||
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
|
||||
'xsi:schemaLocation' => 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2 http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2/Schema_del_file_xml_FatturaPA_versione_1.2.xsd',
|
||||
'xsi:schemaLocation' => 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2.1 http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2.1/Schema_del_file_xml_FatturaPA_versione_1.2.1.xsd',
|
||||
];
|
||||
foreach ($attributes as $key => $value) {
|
||||
$rootNode->setAttribute($key, $value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user