Skip to content

Commit

Permalink
Se añade mapa de campos al TemplateDataHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
nbcontreras committed Jan 30, 2025
1 parent d22648e commit 9d79d3f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
use libredte\lib\Core\Package\Billing\Component\Document\Entity\FormaPago;
use libredte\lib\Core\Package\Billing\Component\Document\Entity\ImpuestoAdicionalRetencion;
use libredte\lib\Core\Package\Billing\Component\Document\Entity\MedioPago;
use libredte\lib\Core\Package\Billing\Component\Document\Entity\FormaPagoExportacion;
use libredte\lib\Core\Package\Billing\Component\Document\Entity\TagXml;
use libredte\lib\Core\Package\Billing\Component\Document\Entity\Traslado;
use TCPDF2DBarcode;
Expand Down Expand Up @@ -93,6 +94,7 @@ protected function createHandlers(): array
'FchEmis' => fn (string $fecha) => Date::formatSpanish($fecha),
'FchRef' => 'alias:FchEmis',
'FchVenc' => 'alias:FchEmis',
'FchCancel' => 'alias:FchEmis',
// Fechas cortas.
'PeriodoDesde' => function (string $fecha) {
$timestamp = strtotime($fecha);
Expand Down Expand Up @@ -134,6 +136,9 @@ protected function createHandlers(): array
'FmaPago' => $this->entityComponent->getRepository(
FormaPago::class
),
'FmaPagExp' => $this->entityComponent->getRepository(
FormaPagoExportacion::class
),
'Nacionalidad' => $this->entityComponent->getRepository(
AduanaPais::class
),
Expand Down

0 comments on commit 9d79d3f

Please sign in to comment.