Skip to content

Commit 2fda6ba

Browse files
authored
Merge pull request #11 from administracioncfdi/fix/pagos-display
Add Tipo de Cambio field to Documentos Relacionados
2 parents 01747ec + 6ebc24e commit 2fda6ba

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 0.3.4 2021-01-20
2+
3+
- Add missing `Tipo de cambio DR` field to documentos relacionados
4+
15
# UNRELEASED 2020-10-11
26

37
- Testing: move `cadenaoriginal_TFD_1_1.xslt` to its correct location.

templates/generic.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
<strong>Serie: </strong><span><?=$this->e($doctoRelacionado['Serie'])?></span>
300300
<strong>Folio: </strong><span><?=$this->e($doctoRelacionado['Folio'])?></span>
301301
<strong>Moneda DR: </strong><span><?=$this->e($doctoRelacionado['MonedaDR'])?></span>
302+
<strong>Tipo de cambio DR: </strong><span><?=$this->e($doctoRelacionado['TipoCambioDR'])?></span>
302303
<strong>Método de pago DR: </strong><span><?=$this->e($doctoRelacionado['MetodoDePagoDR'])?></span>
303304
<strong>Número parcialidad: </strong><span><?=$this->e($doctoRelacionado['NumParcialidad'])?></span>
304305
<strong>Imp pagado: </strong><span><?=$this->e($doctoRelacionado['ImpPagado'])?></span>

tests/Integration/ConverterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function testConverterWithPaymentData()
7777
$this->assertContains($doctoRelacionado['Serie'], $contents);
7878
$this->assertContains($doctoRelacionado['Folio'], $contents);
7979
$this->assertContains($doctoRelacionado['MonedaDR'], $contents);
80+
$this->assertContains($doctoRelacionado['TipoCambioDR'], $contents);
8081
$this->assertContains($doctoRelacionado['MetodoDePagoDR'], $contents);
8182
$this->assertContains($doctoRelacionado['NumParcialidad'], $contents);
8283
$this->assertContains($doctoRelacionado['ImpPagado'], $contents);

tests/_files/cfdi33-payment-valid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ El SelloCFD del complemento TimbreFiscalDigital no tiene datos válidos.
3333
FormaDePagoP="03"
3434
MonedaP="MXN"
3535
Monto="4000.00">
36-
<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" />
36+
<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"/>
3737
</pago10:Pago>
3838
</pago10:Pagos>
3939
<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=="/>

0 commit comments

Comments
 (0)