Skip to content

Commit

Permalink
Fix Carta Porte 2.0 XML Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipxe13 committed Dec 17, 2021
1 parent a50f859 commit 384fb3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion development/ElementsMaker/specifications/cartaporte20.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"php-namespace": "CfdiUtils\\Elements\\CartaPorte20",
"prefix": "cartaporte20",
"xml-namespace": "http://www.sat.gob.mx/cartaporte",
"xml-namespace": "http://www.sat.gob.mx/CartaPorte20",
"xml-schemalocation": "http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte20.xsd",
"version-attribute": "Version",
"version-value": "2.0",
Expand Down
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
The following changes apply only to development and has been applied to main branch.


## Version 2.18.2 2021-12-17

Fix *Carta Porte 2.0* XML Namespace.


## Version 2.18.1 2021-12-17

Remove `development/` from distribution package.
Expand Down
4 changes: 2 additions & 2 deletions src/CfdiUtils/Elements/CartaPorte20/CartaPorte.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function getChildrenOrder(): array
public function getFixedAttributes(): array
{
return [
'xmlns:cartaporte20' => 'http://www.sat.gob.mx/cartaporte',
'xsi:schemaLocation' => 'http://www.sat.gob.mx/cartaporte'
'xmlns:cartaporte20' => 'http://www.sat.gob.mx/CartaPorte20',
'xsi:schemaLocation' => 'http://www.sat.gob.mx/CartaPorte20'
. ' http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte20.xsd',
'Version' => '2.0',
];
Expand Down
4 changes: 2 additions & 2 deletions tests/CfdiUtilsTests/Elements/CartaPorte20/CartaPorteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function testCartaPorte(): void
'cartaporte20:FiguraTransporte',
]);
$this->assertElementHasFixedAttributes($element, [
'xmlns:cartaporte20' => 'http://www.sat.gob.mx/cartaporte',
'xsi:schemaLocation' => 'http://www.sat.gob.mx/cartaporte'
'xmlns:cartaporte20' => 'http://www.sat.gob.mx/CartaPorte20',
'xsi:schemaLocation' => 'http://www.sat.gob.mx/CartaPorte20'
. ' http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte20.xsd',
'Version' => '2.0',
]);
Expand Down

0 comments on commit 384fb3f

Please sign in to comment.