| 1 |
%% |
| 2 |
%% This is file `factura-ejemplo-reporte2.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% factura.dtx (with options: `repdos') |
| 8 |
%% |
| 9 |
%% Copyright 2022 Emilio Augusto Lazo Zaia <[email protected]> |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either |
| 13 |
%% version 1.3c of this license or (at your option) any later |
| 14 |
%% version. This version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf} |
| 16 |
%% and the latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3c or later is part of all distributions of |
| 19 |
%% LaTeX version 2008/05/04 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia. |
| 24 |
%% |
| 25 |
%% This work consists of the files README and factura.dtx |
| 26 |
%% with its derived files factura.ins, factura.cls, factura.def, |
| 27 |
%% factura-ejemplo-aux.tex, factura-ejemplo-firma.tex, |
| 28 |
%% factura-ejemplo-fondo.tex, factura-ejemplo-membrete.tex, |
| 29 |
%% factura-ejemplo-notadecredito.tex, factura-ejemplo-notadedebito.tex, |
| 30 |
%% factura-ejemplo-cotizacion.tex, factura-ejemplo-prefactura.tex, |
| 31 |
%% factura-ejemplo-factura01.tex, factura-ejemplo-factura02.tex, |
| 32 |
%% factura-ejemplo-factura03.tex, factura-ejemplo-factura04.tex, |
| 33 |
%% factura-ejemplo-factura05.tex, factura-ejemplo-factura06.tex, |
| 34 |
%% factura-ejemplo-factura07.tex, factura-ejemplo-factura08.tex, |
| 35 |
%% factura-ejemplo-factura09.tex, factura-ejemplo-factura10.tex, |
| 36 |
%% factura-ejemplo-reporte1.tex, factura-ejemplo-reporte2.tex, |
| 37 |
%% factura-ejemplo-reporte3.tex, factura-ejemplo-reporte4.tex |
| 38 |
%% and factura-beispiel-rechnung.tex. |
| 39 |
%% |
| 40 |
%% Descripción de este ejemplo: |
| 41 |
%%<desc> |
| 42 |
%% Escribimos una factura |
| 43 |
%% Escribimos un reporte |
| 44 |
%% (soloreporte) Escribimos factura y reporte, pero sólo producimos el reporte |
| 45 |
%% (\Proveedor) Especificando el nombre del proveedor para el encabezado y/o firma en el reporte |
| 46 |
%% (\GeometriaReporte) Cambiando la geometría del papel del reporte |
| 47 |
%% (\FondoReporte*) Especificamos el fondo o membrete del reporte para todas las páginas y sale info página como pie de página |
| 48 |
%% (\TituloReporte) Establecemos el título del reporte sin que salga en las cabeceras ni pies de página |
| 49 |
%% Sin resumen |
| 50 |
%% (\NotaFinal) Con nota final |
| 51 |
%% (\Descripcion) Con descripción larga |
| 52 |
%% Con etiquetas y referencias |
| 53 |
%% Haciendo mención en el documento a valores establecidos en el preámbulo |
| 54 |
%% (\FirmaReporte) Agregando en el reporte la línea para firmar a mano |
| 55 |
%% Con \FirmaReporte, cambiando el nombre de la persona que va a firmar |
| 56 |
%%</desc> |
| 57 |
%% |
| 58 |
\documentclass[ |
| 59 |
soloreporte, |
| 60 |
]{factura} |
| 61 |
|
| 62 |
\input{factura-ejemplo-aux.tex}% Se incluye para efectos del ejemplo, así tendremos disponible la macro \Ejemplo. |
| 63 |
\usepackage[utf8]{inputenc} |
| 64 |
|
| 65 |
\Num{1} |
| 66 |
\RazonSocial{Ayala San Vicente Usureros} |
| 67 |
\RIF{Y-12.345.678-9} |
| 68 |
\Contacto{Jacinto de Ayala} |
| 69 |
\Direccion{Av. Ayala, Galpón San Vicente, Sector Arauca, Apure, Venezuela} |
| 70 |
\Telefono{+58 (987) 654.32.10} |
| 71 |
\Email{[email protected]} |
| 72 |
\Proveedor{Lázaro de la Vega y San Román} |
| 73 |
|
| 74 |
\Fecha{02-07-2022} |
| 75 |
|
| 76 |
\GeometriaReporte{vmargin={4.4cm,2.5cm},hmargin={3cm,2cm},footskip=1.2cm,headsep=0.777cm,headheight=1.5cm} |
| 77 |
\FondoReporte*{factura-ejemplo-membrete} |
| 78 |
\TituloReporte{El título del reporte} |
| 79 |
% \EstiloPagina{soloarriba} |
| 80 |
% \EstiloPagina{soloabajo} |
| 81 |
% \EstiloPagina[soloabajo]{plain} |
| 82 |
% \EstiloPagina[empty]{plain} |
| 83 |
% \EstiloPagina[empty]{soloabajo} |
| 84 |
% \EstiloPagina[empty]{soloarriba} |
| 85 |
% \EstiloPagina{plain} |
| 86 |
% \EstiloPagina{solonumpag} |
| 87 |
% \EstiloPagina{soloabajo} |
| 88 |
% \EstiloPagina[solonumpag]{plain} |
| 89 |
% \EstiloPagina[solonumpag]{soloarriba} |
| 90 |
% \EstiloPagina[solonumpag]{soloabajo} |
| 91 |
% \EstiloPagina[empty]{soloarriba} |
| 92 |
|
| 93 |
\NotaFinal{Esta es la nota final} |
| 94 |
|
| 95 |
\begin{document} |
| 96 |
|
| 97 |
\begin{factura} |
| 98 |
\Item{2}{ítem con IVA general, viene con descuento}{1000}{8}[Un ítem que ofrecemos a precio de costo y que está gravado con IVA general]\label{primeritem} |
| 99 |
\Item{4}{otro ítem con IVA general}{100} |
| 100 |
\end{factura} |
| 101 |
|
| 102 |
\Descripcion{Esta es la descripción larga} |
| 103 |
|
| 104 |
\begin{reporte} |
| 105 |
El reporte - página 1\newpage El reporte - página 2 \newpage El reporte - página 3. |
| 106 |
|
| 107 |
Se facturaron en total \arabic{NumItem} artículos. |
| 108 |
|
| 109 |
En el artículo número \itemref{primeritem} se facturaron \cantref{primeritem} “\descref{primeritem}”, cada uno por un valor de \Moneda~\puref{primeritem}, dando un subtotal por este elemento de \Moneda~\subtref{primeritem}; el descuento en ese artículo es del \dctoref{primeritem}\%, dando un total de \Moneda~\ptref{primeritem}, y esta gravado con IVA de \ivaref{primeritem}\%. Ampliando la descripción podemos decir que este ítem es: “\ldescref{primeritem}”. |
| 110 |
|
| 111 |
La base imponible general de esta factura es de \Moneda~\numprint\BIG; el IVA general es de \Moneda~\numprint\AlicuotaG, y el total final es de \Moneda~\numprint\Total. |
| 112 |
|
| 113 |
% Estas son todas las macros para las totalizaciones: \BIG, \BIR, \BIA, \BIE, \AlicuotaG, \AlicuotaR, \AlicuotaA, \SubtG, \SubtR, \SubtA, \SubtE, \DescG, \DescR, \DescA, \DescE. |
| 114 |
\vspace{1.5cm}\FirmaReporte{el que firma} |
| 115 |
\end{reporte} |
| 116 |
|
| 117 |
%% Este es un comando auxiliar suministrado por factura-ejemplo-aux.tex para escribir el detalle del ejemplo en la última hoja. |
| 118 |
\Ejemplo |
| 119 |
|
| 120 |
\end{document} |
| 121 |
%% |
| 122 |
%% |
| 123 |
%% End of file `factura-ejemplo-reporte2.tex'. |