From f6fc47a69e919e29c5b04d38e2b4e0666853be91 Mon Sep 17 00:00:00 2001 From: Giancarlos Salas Date: Sun, 4 Aug 2019 00:21:13 -0500 Subject: [PATCH] add ICBPER example --- docs/examples/icbper.md | 84 +++++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 85 insertions(+) create mode 100644 docs/examples/icbper.md diff --git a/docs/examples/icbper.md b/docs/examples/icbper.md new file mode 100644 index 00000000..dee073ef --- /dev/null +++ b/docs/examples/icbper.md @@ -0,0 +1,84 @@ +# Factura con ICBPER + +> Las lineas resaltadas son propias de este modelo de factura. + +## Código + +```php hl_lines="19 51" +setFecVencimiento(new \DateTime()) + ->setUblVersion('2.1') + ->setTipoOperacion('0101') + ->setTipoDoc('01') + ->setSerie('F001') + ->setCorrelativo('123') + ->setFechaEmision(new \DateTime()) + ->setTipoMoneda('PEN') + ->setClient($this->getClient()) + ->setCompany($this->getCompany()) + ->setMtoOperGravadas(200.20) + ->setMtoIGV(36.24) + ->setIcbper(0.40) + ->setTotalImpuestos(36.64) + ->setMtoImpVenta(236.64); + + $detail = new SaleDetail(); + $detail + ->setCodProducto('P001') + ->setUnidad('NIU') + ->setCantidad(2) + ->setDescripcion('PRODUCTO 1') + ->setMtoBaseIgv(200.00) + ->setPorcentajeIgv(18.0) + ->setIgv(36) + ->setTotalImpuestos(36) + ->setTipAfeIgv('10') + ->setMtoValorVenta(200) + ->setMtoValorUnitario(100) + ->setMtoPrecioUnitario(118); + + $bolsa = new SaleDetail(); + $bolsa + ->setCodProducto('P002') + ->setUnidad('NIU') + ->setCantidad(4) + ->setDescripcion('BOLSA DE PLASTICO') + ->setMtoValorUnitario(0.05) + ->setMtoPrecioUnitario(0.059) + ->setMtoValorVenta(0.20) + ->setTipAfeIgv('10') + ->setMtoBaseIgv(0.20) + ->setPorcentajeIgv(18.0) + ->setIgv(0.236) + ->setIcbper(0.40) // (cantidad)*(factor ICBPER) + ->setTotalImpuestos(36) + ; + +$invoice->setDetails([$detail, $bolsa]) + ->setLegends([ + (new Legend()) + ->setCode('1000') + ->setValue('SON DOSCIENTOS TREINTA Y SEIS CON 64/100 SOLES') + ]); +``` + +!!! tip "Factor ICBPER" + Puedes cambiar el factor ICBPER usando el campo `$bolsa->setFactorIcbper(0.10)` + + +## Monto ICBPER + +La cuantía del impuesto al consumo de las bolsas de plástico es gradual y se aplica por la adquisición unitaria de bolsas de plástico, de acuerdo con el siguiente cronograma: + +Monto | Año | +--------|-------| +S/ 0.10 | 2019 | +S/ 0.20 | 2020 | +S/ 0.30 | 2021 | +S/ 0.40 | 2022 | +S/ 0.50 | 2023+ | \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 693667cf..6186ea00 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -19,6 +19,7 @@ nav: - F. Anticipos: examples/anticipo.md - F. Detracción: examples/detraccion.md - F. Exportación: examples/exportacion.md + - F. ICBPER: examples/icbper.md - 'Boleta de Venta': examples/boleta.md - Contingencia: examples/contingencia.md - 'Preguntas Frecuentes': faq.md