Skip to content

Commit

Permalink
Merge pull request #11 from administracioncfdi/fix/pagos-display
Browse files Browse the repository at this point in the history
Add Tipo de Cambio field to Documentos Relacionados
  • Loading branch information
eclipxe13 authored Jan 21, 2021
2 parents 01747ec + 6ebc24e commit 2fda6ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 0.3.4 2021-01-20

- Add missing `Tipo de cambio DR` field to documentos relacionados

# UNRELEASED 2020-10-11

- Testing: move `cadenaoriginal_TFD_1_1.xslt` to its correct location.
Expand Down
1 change: 1 addition & 0 deletions templates/generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
<strong>Serie: </strong><span><?=$this->e($doctoRelacionado['Serie'])?></span>
<strong>Folio: </strong><span><?=$this->e($doctoRelacionado['Folio'])?></span>
<strong>Moneda DR: </strong><span><?=$this->e($doctoRelacionado['MonedaDR'])?></span>
<strong>Tipo de cambio DR: </strong><span><?=$this->e($doctoRelacionado['TipoCambioDR'])?></span>
<strong>Método de pago DR: </strong><span><?=$this->e($doctoRelacionado['MetodoDePagoDR'])?></span>
<strong>Número parcialidad: </strong><span><?=$this->e($doctoRelacionado['NumParcialidad'])?></span>
<strong>Imp pagado: </strong><span><?=$this->e($doctoRelacionado['ImpPagado'])?></span>
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function testConverterWithPaymentData()
$this->assertContains($doctoRelacionado['Serie'], $contents);
$this->assertContains($doctoRelacionado['Folio'], $contents);
$this->assertContains($doctoRelacionado['MonedaDR'], $contents);
$this->assertContains($doctoRelacionado['TipoCambioDR'], $contents);
$this->assertContains($doctoRelacionado['MetodoDePagoDR'], $contents);
$this->assertContains($doctoRelacionado['NumParcialidad'], $contents);
$this->assertContains($doctoRelacionado['ImpPagado'], $contents);
Expand Down
2 changes: 1 addition & 1 deletion tests/_files/cfdi33-payment-valid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ El SelloCFD del complemento TimbreFiscalDigital no tiene datos válidos.
FormaDePagoP="03"
MonedaP="MXN"
Monto="4000.00">
<pago10:DoctoRelacionado IdDocumento="1A3CD882-EB73-484A-6971-1C2D29C9F264" Serie="A" Folio="1847" MonedaDR="MXN" MetodoDePagoDR="PPD" NumParcialidad="1" ImpPagado="4000.00" ImpSaldoInsoluto="0.00" ImpSaldoAnt="4000.00" />
<pago10:DoctoRelacionado IdDocumento="1A3CD882-EB73-484A-6971-1C2D29C9F264" Serie="A" Folio="1847" MonedaDR="USD" MetodoDePagoDR="PPD" NumParcialidad="1" ImpPagado="4000.00" ImpSaldoInsoluto="0.00" ImpSaldoAnt="4000.00" TipoCambioDR="0.050522"/>
</pago10:Pago>
</pago10:Pagos>
<tfd:TimbreFiscalDigital xmlns:tfd="http://www.sat.gob.mx/TimbreFiscalDigital" xsi:schemaLocation="http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigitalv11.xsd" Version="1.1" UUID="9FB6ED1A-5F37-4FEF-980A-7F8C83B51894" FechaTimbrado="2017-06-05T09:09:37" RfcProvCertif="SFE0807172W7" SelloCFD="W2Fr9AiEuUIFJUVRWMXWMHndDcwvpNCu2g0uTE58wutNkUgjq3J+5f7Kl/ygpAlQggmJB9dKBd2UsYjd94dGTvIso26CFdmW3QY+KBa5d/qpFBsnLxVq+NgP4l2MpAzMMlzD4AsyaTSPnKc6/xmFzIQszCEQ0DsQO+twW0VsxrI=" NoCertificadoSAT="20001000000300022779" SelloSAT="a0U3KSPH6ouIzOnO3A5KUG+wKJ0Kg77SeDLdw8c4a4bLaib5dCxh4nv1Y/GFq7fgm3DQDCmPTzmcJ8BATwO8r9+e36Zcw0kHcVlJ8+VRz/oHYWyCgq4etsTybXtrqcnLeyCy6Oi38Yk/2lvEwnvtqSFSXrNTL/jA5ZEyeZxpwerGmuQ/NmUC4Ta5+DjjON7bZomfMNBMoAsnLj5uTEQa03mZGhbPg+h/RMLZ7GA2VXLFhxj68YXt/uR5tu4kJTjwTn0ZAK83wzYp68V2TJdEaW3JMLw/5EwXpqctV2drek3u2gt63S9Po2FHpmXDKVNM6LTw57iRQ8tnLSCeKP68Nw=="/>
Expand Down

0 comments on commit 2fda6ba

Please sign in to comment.