summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/factura/factura-ejemplo-factura6.tex
blob: 47e8bed1e90f33d6a0f7d9f55f599f2c35e590ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
%%
%% This is file `factura-ejemplo-factura6.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% factura.dtx  (with options: `factseis')
%% 
%% Copyright 2017 Emilio Lazo Zaia <emiliolazozaia@gmail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%  http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf}
%% and the latest version of this license is in
%%  http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008/05/04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Emilio Lazo Zaia.
%% 
%% This work consists of the files README and factura.dtx
%% with its derived files factura.ins, factura.cls, factura.def,
%% factura-ejemplo-firma.tex, factura-ejemplo-fondo.tex,
%% factura-ejemplo-membrete.tex, factura-ejemplo-cotizacion.tex,
%% factura-ejemplo-prefactura.tex, factura-ejemplo-factura1.tex
%% factura-ejemplo-factura2.tex, factura-ejemplo-factura3.tex,
%% factura-ejemplo-factura4.tex, factura-ejemplo-factura5.tex,
%% factura-ejemplo-factura6.tex, factura-ejemplo-factura7.tex,
%% factura-ejemplo-factura8.tex, factura-ejemplo-reporte1.tex,
%% factura-ejemplo-reporte2.tex, factura-ejemplo-reporte3.tex,
%% and factura-beispiel-rechnung.tex.
%% 
%% Descripción de este ejemplo:
%%<desc>
%%  Escribimos una factura,
%%  Con la columna para enumerar los ítems (numitem),
%%  Escribe la denominación (“FACTURA”) y el número (denom),
%%  Sin líneas verticales externas (sinlineasve),
%%  Sin líneas horizontales externas (sinlineashe),
%%  Escribimos un ítem cuya descripción ocupa más que una línea,
%%  Obligando a especificar todos los IVA así no existan productos gravados con ellos (todosiva),
%%  Especificando 'G' en los ítems gravados con IVA general (G),
%%  Escribe un archivo CSV con la información numérica de la factura (csv),
%%  Redefiniendo el formato de la fecha (redefiniendo macros \@@Fecha y \@EstiloFecha),
%%  Especificando el nombre de quien firma la copia de la factura como recibida (\Conforme),
%%  Con etiquetas y referencias,
%%  Con descripción larga (\Descripcion).
%%</desc>
%%
\documentclass[
numitem,
denom,
sinlineasve,
% sinlineasv, % sin ninguna línea vertical
sinlineashe,
% sinlineash, % sin ninguna línea horizontal
todosiva,
G,
csv,
]{factura}

\usepackage[utf8]{inputenc}

\makeatletter
 \renewcommand{\@@Fecha}{\slshape FECHA:}
 \renewcommand{\@EstiloFecha}{\@LetraFecha\bfseries\@@Fecha\space{\color{blue}\@Fecha}}
\makeatother

\Fecha{06-11-2017}
\Num{1}
\RazonSocial{Ayala San Vicente Usureros}
\RIF{Y-12.345.678-9}
\Contacto{Jacinto de Ayala}
\Direccion{Av. Ayala, Galpón San Vicente, Sector Arauca, Apure, Venezuela}
\Telefono{+58 (987) 654.32.10}
\Email{jacinto@ayala.sv}
\Conforme{Ramela San Vicente}
\Condiciones{Las condiciones del documento...}

\begin{document}

\begin{factura}
 \Item{2}{ítem con IVA general}{1000}\label{primeritem}
 \Item{10}{otro ítem con IVA general (descripción larga para mostrar el cambio de línea)}{1000}
\end{factura}

\Descripcion{Descripción larga del servicio.

 En el artículo número \itemref{primeritem} se facturaron \cantref{primeritem} \descref{primeritem} por un valor de \Moneda\puref{primeritem} cada uno, el descuento porcentual de ese artículo es \dctoref{primeritem}, dando un total de \Moneda\ptref{primeritem}. El IVA de este ítem es de \Moneda\numprint\AlicuotaG; luego se facturó otro artículo más, dando un total final de \Moneda\numprint\Total.
 % También podemos usar \dctoref{primeritem} para la referencia al descuento, y en cuanto a las totalizaciones: \BIE, \BIR, \BIA, \AlicuotaR, \AlicuotaA, \SubtG, \SubtE, \SubtR, \SubtA, \DescG, \DescE, \DescR, \DescA para los demás totales.
}

\end{document}
%% 
%%
%% End of file `factura-ejemplo-factura6.tex'.