diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c3fc4df..ff4c2f9 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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. diff --git a/templates/generic.php b/templates/generic.php index 63d1c45..1a0375e 100644 --- a/templates/generic.php +++ b/templates/generic.php @@ -299,6 +299,7 @@ Serie: e($doctoRelacionado['Serie'])?> Folio: e($doctoRelacionado['Folio'])?> Moneda DR: e($doctoRelacionado['MonedaDR'])?> + Tipo de cambio DR: e($doctoRelacionado['TipoCambioDR'])?> Método de pago DR: e($doctoRelacionado['MetodoDePagoDR'])?> Número parcialidad: e($doctoRelacionado['NumParcialidad'])?> Imp pagado: e($doctoRelacionado['ImpPagado'])?> diff --git a/tests/Integration/ConverterTest.php b/tests/Integration/ConverterTest.php index 2db600a..a618852 100644 --- a/tests/Integration/ConverterTest.php +++ b/tests/Integration/ConverterTest.php @@ -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); diff --git a/tests/_files/cfdi33-payment-valid.xml b/tests/_files/cfdi33-payment-valid.xml index 5234100..b6489c1 100644 --- a/tests/_files/cfdi33-payment-valid.xml +++ b/tests/_files/cfdi33-payment-valid.xml @@ -33,7 +33,7 @@ El SelloCFD del complemento TimbreFiscalDigital no tiene datos válidos. FormaDePagoP="03" MonedaP="MXN" Monto="4000.00"> - +