Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,12 @@
"test": "phpunit",
"lint": "phpstan analyse",
"lint:ci": "phpstan analyse --error-format=github"
},
"config": {
"policy": {
"advisories": {
"ignore": ["twig/twig"]
}
}
}
}
}
26 changes: 26 additions & 0 deletions packages/core/src/Core/Model/Despatch/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class Shipment
* @var DateTime
*/
private $fecTraslado;
/**
* Fecha de entrega de bienes al transportista.
*
* @var DateTime
*/
private $fecEntregaBienes;
/**
* Numero de Contenedor (Motivo Importación).
*
Expand Down Expand Up @@ -352,6 +358,26 @@ public function setFecTraslado(?DateTime $fecTraslado): Shipment
return $this;
}

/**
* @return DateTime
*/
public function getFecEntregaBienes(): ?DateTime
{
return $this->fecEntregaBienes;
}

/**
* @param DateTime $fecEntregaBienes
*
* @return Shipment
*/
public function setFecEntregaBienes(?DateTime $fecEntregaBienes): Shipment
{
$this->fecEntregaBienes = $fecEntregaBienes;

return $this;
}

/**
* @return string
*/
Expand Down
5 changes: 5 additions & 0 deletions packages/xml/src/Xml/Templates/despatch2022.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@
</cac:PartyLegalEntity>
</cac:CarrierParty>
{% endif %}
{% if envio.fecEntregaBienes %}
<cac:LoadingTransportEvent>
<cbc:OccurrenceDate>{{ envio.fecEntregaBienes|date('Y-m-d') }}</cbc:OccurrenceDate>
</cac:LoadingTransportEvent>
{% endif %}
{% for chofer in envio.choferes %}
<cac:DriverPerson>
<cbc:ID schemeID="{{ chofer.tipoDoc }}" schemeName="Documento de Identidad" schemeAgencyName="PE:SUNAT" schemeURI="urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo06">{{ chofer.nroDoc }}</cbc:ID>
Expand Down
Loading