Skip to content

Commit

Permalink
Merge pull request #1 from giansalex/master
Browse files Browse the repository at this point in the history
Update Greenter-Master
  • Loading branch information
fabriciojd committed Apr 19, 2020
2 parents 707632e + 3ba1102 commit 1e18ac7
Show file tree
Hide file tree
Showing 16 changed files with 364 additions and 108 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,5 +1,3 @@
![Greenter](docs/img/logo.png)
<img src="https://raw.githubusercontent.com/giansalex/greenter/master/docs/img/sunat.ico" align=right>
# Greenter - Facturación Electrónica

[![Travis-CI](https://img.shields.io/travis/giansalex/greenter.svg?label=travis-ci&branch=master&style=flat-square)](https://travis-ci.org/giansalex/greenter)
Expand All @@ -14,8 +12,10 @@ Esta libreria le permite realizar la implementación de la **Facturación Electr
contribuyente, la cual esta normado por SUNAT.
Greenter realiza la mayoria de tareas del proceso, genera el XML según el estándar UBL, firma con el certificado digital que sunat exige,
comprime el archivo XML en formato zip, conexión al webservice de SUNAT y procesa el CDR (Comprobante de Recepción).

[![Throughput Graph](https://graphs.waffle.io/giansalex/greenter/throughput.svg)](https://waffle.io/giansalex/greenter/metrics/throughput)

<p align="center">
<img alt="Sunat Facturacion Electronica" width="256px" src="docs/img/logo.svg">
</p>

## Sobre la Libreria y su Desarrollo
En este enlace podemos tener mas informacion sobre la libreria y su desarrllo.
Expand Down
114 changes: 114 additions & 0 deletions docs/css/codehilite.css
@@ -0,0 +1,114 @@
/*
/////////////////
// Inline Code //
/////////////////
*/

.md-typeset code {
background-color: #424242;
color: #F5F5F5;
margin: 0;
padding: 0.07353em 0.29412em;
box-shadow: none;
}

/*
/////////////////
// Code Blocks //
/////////////////
*/

/*
line number
*/
.linenos {
color: #F5F5F5 !important;
background-color: #313131 !important;
}

/*
code block background
*/
.codehilite {
background-color: #424242 !important;
}

/*
scroll bar size
*/

.md-typeset .codehilite::-webkit-scrollbar {
height: 1rem !important;
}

/*
actual syntax highlighting
*/
.codehilite pre { color: #FAFAFA !important; background-color: transparent !important; }
.codehilite .hll { background-color: #272822 !important; }
.codehilite .c { color: #75715e !important } /* Comment */
.codehilite .err { color: #960050 !important; background-color: #1e0010 !important } /* Error */
.codehilite .k { color: #66d9ef !important } /* Keyword */
.codehilite .l { color: #ae81ff !important } /* Literal */
.codehilite .n { color: #f8f8f2 !important } /* Name */
.codehilite .o { color: #f92672 !important } /* Operator */
.codehilite .p { color: #f8f8f2 !important } /* Punctuation */
.codehilite .cm { color: #75715e !important } /* Comment.Multiline */
.codehilite .cp { color: #75715e !important } /* Comment.Preproc */
.codehilite .c1 { color: #75715e !important } /* Comment.Single */
.codehilite .cs { color: #75715e !important } /* Comment.Special */
.codehilite .ge { font-style: italic !important } /* Generic.Emph */
.codehilite .gs { font-weight: bold !important } /* Generic.Strong */
.codehilite .kc { color: #66d9ef !important } /* Keyword.Constant */
.codehilite .kd { color: #66d9ef !important } /* Keyword.Declaration */
.codehilite .kn { color: #f92672 !important } /* Keyword.Namespace */
.codehilite .kp { color: #66d9ef !important } /* Keyword.Pseudo */
.codehilite .kr { color: #66d9ef !important } /* Keyword.Reserved */
.codehilite .kt { color: #66d9ef !important } /* Keyword.Type */
.codehilite .ld { color: #e6db74 !important } /* Literal.Date */
.codehilite .m { color: #ae81ff !important } /* Literal.Number */
.codehilite .s { color: #e6db74 !important } /* Literal.String */
.codehilite .na { color: #a6e22e !important } /* Name.Attribute */
.codehilite .nb { color: #f8f8f2 !important } /* Name.Builtin */
.codehilite .nc { color: #a6e22e !important } /* Name.Class */
.codehilite .no { color: #66d9ef !important } /* Name.Constant */
.codehilite .nd { color: #a6e22e !important } /* Name.Decorator */
.codehilite .ni { color: #f8f8f2 !important } /* Name.Entity */
.codehilite .ne { color: #a6e22e !important } /* Name.Exception */
.codehilite .nf { color: #a6e22e !important } /* Name.Function */
.codehilite .nl { color: #f8f8f2 !important } /* Name.Label */
.codehilite .nn { color: #f8f8f2 !important } /* Name.Namespace */
.codehilite .nx { color: #a6e22e !important } /* Name.Other */
.codehilite .py { color: #f8f8f2 !important } /* Name.Property */
.codehilite .nt { color: #f92672 !important } /* Name.Tag */
.codehilite .nv { color: #f8f8f2 !important } /* Name.Variable */
.codehilite .ow { color: #f92672 !important } /* Operator.Word */
.codehilite .w { color: #f8f8f2 !important } /* Text.Whitespace */
.codehilite .mf { color: #ae81ff !important } /* Literal.Number.Float */
.codehilite .mh { color: #ae81ff !important } /* Literal.Number.Hex */
.codehilite .mi { color: #ae81ff !important } /* Literal.Number.Integer */
.codehilite .mo { color: #ae81ff !important } /* Literal.Number.Oct */
.codehilite .sb { color: #e6db74 !important } /* Literal.String.Backtick */
.codehilite .sc { color: #e6db74 !important } /* Literal.String.Char */
.codehilite .sd { color: #e6db74 !important } /* Literal.String.Doc */
.codehilite .s2 { color: #e6db74 !important } /* Literal.String.Double */
.codehilite .se { color: #ae81ff !important } /* Literal.String.Escape */
.codehilite .sh { color: #e6db74 !important } /* Literal.String.Heredoc */
.codehilite .si { color: #e6db74 !important } /* Literal.String.Interpol */
.codehilite .sx { color: #e6db74 !important } /* Literal.String.Other */
.codehilite .sr { color: #e6db74 !important } /* Literal.String.Regex */
.codehilite .s1 { color: #e6db74 !important } /* Literal.String.Single */
.codehilite .ss { color: #e6db74 !important } /* Literal.String.Symbol */
.codehilite .bp { color: #f8f8f2 !important } /* Name.Builtin.Pseudo */
.codehilite .vc { color: #f8f8f2 !important } /* Name.Variable.Class */
.codehilite .vg { color: #f8f8f2 !important } /* Name.Variable.Global */
.codehilite .vi { color: #f8f8f2 !important } /* Name.Variable.Instance */
.codehilite .il { color: #ae81ff !important } /* Literal.Number.Integer.Long */

.codehilite .gh { } /* Generic Heading & Diff Header */
.codehilite .gu { color: #75715e !important ; } /* Generic.Subheading & Diff Unified/Comment? */
.codehilite .gd { color: #f92672 !important ; } /* Generic.Deleted & Diff Deleted */
.codehilite .gi { color: #a6e22e !important ; } /* Generic.Inserted & Diff Inserted */

.codehilite .md-clipboard:before { color: rgba(255, 255, 255, 0.07) } /* Clipboard button (no hover) */
.codehilite:hover .md-clipboard:before { color: rgba(255, 255, 255, 0.54) } /* Clipboard button (hovered) */
150 changes: 150 additions & 0 deletions docs/css/dark_theme.css
@@ -0,0 +1,150 @@
/*
//////////////////
// Main content //
//////////////////
*/

/*
Default text color
and background color
*/
.md-main {
color: #F5F5F5 !important;
background-color: #212121 !important;
}

/*
Main headlines
*/
.md-main h1 {
color: white !important;
}

/*
Tables
*/
tbody {
background-color: rgba(255, 255, 255, 0.05) !important;
}

.md-typeset table:not([class]) th {
background-color: rgba(255,255,255,0.11) !important;
}

.md-typeset table:not([class]) tr:hover {
box-shadow: none !important;
background-color: rgba(255, 255, 255, 0.04) !important;
}

/*
Blockquotes
*/
.md-typeset blockquote {
color: rgba(255,255,255,0.8) !important;
border-color: rgba(255,255,255,0.54) !important;
}

/*
////////////////////
// Navigation bar //
////////////////////
*/

/*
Left and right toc scrollbar
*/
.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
background-color: #E0E0E0 !important;
}



.md-nav {
color: #F5F5F5 !important;
background-color: #212121 !important;
}

/*
Arrow Left Icon
*/
html .md-nav--primary .md-nav__title:before {
color: #FAFAFA !important;
}

.md-nav__title {
color: rgba(255,255,255,1) !important;
background-color: #212121 !important;
}

/*
Arrow Right Icon
*/
.md-nav--primary .md-nav__link:after {
color: #FAFAFA !important;
}

.md-nav__list {
color: rgba(255,255,255,1) !important;
background-color: #212121 !important;
}

.md-nav__item {
color: rgba(255,255,255,1) !important;
background-color: #212121 !important;
}

.md-nav__link[data-md-state=blur] {
color: rgba(255,255,255,0.54) !important;
}

/*
////////////
// Search //
////////////
*/

/*
scroll bar
attention:
background is scroll handle color!
*/
.md-search__scrollwrap::-webkit-scrollbar-thumb {
background-color: #E0E0E0 !important;
}
/*
scroll bar background color
*/
.md-search__scrollwrap {
background-color: #424242 !important;
}

/*
Icon color
*/
.md-search-result__article--document:before {
color: #EEEEEE !important;
}

/*
headline color and
result list background
*/
.md-search-result__list {
color: #EEEEEE !important;
background-color: #212121 !important;
}

/*
result info/count
*/
.md-search-result__meta {
background-color: #EEEEEE !important;
}

/*
article preview text color
*/
.md-search-result__teaser {
color: #BDBDBD !important;
}
Binary file removed docs/img/favicon.ico
Binary file not shown.
Binary file added docs/img/greenter.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/img/illustration.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/logo.png
Binary file not shown.
1 change: 1 addition & 0 deletions docs/img/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/sunat.ico
Binary file not shown.
76 changes: 4 additions & 72 deletions docs/index.md
@@ -1,72 +1,4 @@
# Greenter

[![Travis-CI](https://img.shields.io/travis/giansalex/greenter.svg?label=travis-ci&branch=master&style=flat-square)](https://travis-ci.org/giansalex/greenter)
[![Coverage Status](https://img.shields.io/coveralls/giansalex/greenter.svg?label=coveralls&style=flat-square&branch=master)](https://coveralls.io/github/giansalex/greenter?branch=master)
[![Codacy Badge](https://img.shields.io/codacy/grade/eccd5a16d035464cbe40b1cf9d0f9f43.svg?style=flat-square)](https://www.codacy.com/app/giansalex/greenter?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=giansalex/greenter&amp;utm_campaign=Badge_Grade)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/giansalex/greenter.svg?branch=master&style=flat-square)](https://scrutinizer-ci.com/g/giansalex/greenter/?branch=master)
[![Build Status](https://img.shields.io/scrutinizer/build/g/giansalex/greenter.svg?branch=master&style=flat-square)](https://scrutinizer-ci.com/g/giansalex/greenter/build-status/master)
[![Packagist](https://img.shields.io/packagist/v/greenter/greenter.svg?style=flat-square)](https://packagist.org/packages/greenter/greenter)

Esta libreria le permite realizar la implementación de la **Facturación Electrónica** en Perú, desde los sistemas desarrollados por el
contribuyente, la cual esta normado por SUNAT.
Greenter realiza la mayoria de tareas del proceso, genera el XML según el estándar UBL, firma con el certificado digital que sunat exige,
comprime el archivo XML en formato zip, conexión al webservice de SUNAT y procesa el CDR (Comprobante de Recepción).


<p align="center">
<img alt="Sunat Facturacion Electronica" src="https://github.com/giansalex/greenter/raw/master/docs/img/logo.png">
</p>

!!! info "API REST"

Puede hacer uso de [Lycet](https://github.com/giansalex/lycet), un API REST basado en Greenter.

## Requerimientos
- PHP 5.6 o superior
- Extensiones PHP Activadas: `soap`, `dom`, `zip`, `zlib`, `openssl`.

## Instalación
Instala [Composer](https://getcomposer.org/download/) y ejecuta el siguiente comando para obtener la última versión:

```bash
composer require greenter/greenter
```

Puede ver una demostración en [giansalex/greenter-sample](https://github.com/giansalex/greenter-sample).

## Caracteristicas

### Comprobantes Soportados

* Factura Electrónica
* Boleta Electrónica
* Nota de Crédito Electrónica
* Nota de Débito Electrónica
* Resumen Diario de Boletas
* Comunicación de Bajas
* Guia Remisión Electrónica
* Retención Electrónica
* Percepción Electrónica
* Resumen de Reversiones


### Detalles
- XML estándar ==UBL v2.0, v2.1==
- Consulta de tickets
- Consulta de CDR

## Contribución
Siéntase en la libertad de hacer un fork de los diferentes repositorios, corregir o aportar mejoras, todo pull request será bienvenido.

## Notas de Interes

### Representación Impresa
- Generación de [HTML Report](https://github.com/giansalex/greenter-report)
- Generación de [PDF](https://github.com/giansalex/greenter-htmltopdf)

### Tools
- [UBL Validator](https://github.com/giansalex/ubl-validator-cli)

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/giansalex)
También puedes contactarme por correo.
---
template: home.html
title: Greenter
---
4 changes: 2 additions & 2 deletions docs/manifest.json
Expand Up @@ -3,8 +3,8 @@
"name": "Greenter - Facturación Electrónica SUNAT - Perú",
"icons": [
{
"src": "img/logo.png",
"type": "image/png",
"src": "img/logo.svg",
"type": "image/svg+xml",
"sizes": "170x170"
}
],
Expand Down
8 changes: 8 additions & 0 deletions docs/overrides/404.html
@@ -0,0 +1,8 @@
{#-
This file was automatically generated - do not edit
-#}
{% extends "base.html" %}
{% block content %}
<h1>404 - Recurso no encontrado</h1>
<img src="https://assets-ouch.icons8.com/preview/826/3331bbd7-6698-4a7b-bacb-be274dd83c83.png" alt="No encontrado">
{% endblock %}

0 comments on commit 1e18ac7

Please sign in to comment.