Skip to content

Commit

Permalink
Merge pull request #238 from Jhamnerx/master-dev
Browse files Browse the repository at this point in the history
añadir prefijo en Signature cbc:ID (para id signature) firmante externo
  • Loading branch information
giansalex authored Jul 26, 2024
2 parents 5755d88 + cd30419 commit 14e3be0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"mockery/mockery": "^1.2",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9",
"vimeo/psalm": "^5.4"
"vimeo/psalm": "~5.10.0"
},
"suggest": {
"ext-dom": "For xml, xml-parser, cpe-validator, ws package",
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/despatch.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/despatch2022.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{% endfor %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/invoice2.0.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/invoice2.1.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{% endfor %}
{% endif %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/notacr2.0.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/notacr2.1.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/notadb2.0.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/notadb2.1.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% endif %}
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/perception.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<cbc:CustomizationID>1.0</cbc:CustomizationID>
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/retention.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<cbc:CustomizationID>1.0</cbc:CustomizationID>
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/summary.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<cbc:IssueDate>{{ doc.fecResumen|date('Y-m-d') }}</cbc:IssueDate>
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Templates/voided.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<cbc:IssueDate>{{ doc.fecComunicacion|date('Y-m-d') }}</cbc:IssueDate>
{% set emp = doc.company %}
<cac:Signature>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
<cbc:ID>SIGN{{ emp.ruc }}</cbc:ID>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>{{ emp.ruc }}</cbc:ID>
Expand Down

0 comments on commit 14e3be0

Please sign in to comment.