-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSectionSignature.py
More file actions
59 lines (51 loc) · 1.84 KB
/
SectionSignature.py
File metadata and controls
59 lines (51 loc) · 1.84 KB
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
# -*- coding: utf-8 -*-
""" Signature Section of the Document
Contains:
* Form for
"""
from .TemplateElement import TemplateElement
class SectionSignature(TemplateElement):
"""
%% -----------------------------------------------------------------
%% SECTION - Signature
%% -----------------------------------------------------------------
\\begin{mdframed}[style=signature]
\\begin{spacing}{1.5}
\\%s{
Nombre:{\\leaders\\hbox{\\rule{1mm}{0.8pt}}\\hfill} \\\\
RUT:{\\leaders\\hbox{\\rule{1mm}{0.8pt}}\\hfill}
FECHA:{\\leaders\\hbox{\\rule{1mm}{0.8pt}}\\hfill} \\\\
Recinto:{\\leaders\\hbox{\\rule{1mm}{0.8pt}}\\hfill}
FIRMA:{\\leaders\\hbox{\\rule{1mm}{0.8pt}}\\hfill}
}
\\end{spacing}%%%%
%%%%
\\tiny{
El acuse de recibo que se declara en este acto, de acuerdo a lo
dispuesto en la letra b) del Art. 4° y la letra c) del Art. 5° de la
Ley 19.983, acredita que la entrega de mercadería(s) o servicio(s)
prestado(s) ha(n) sido recibido(s).
}
\\end{mdframed}
\\vspace{0.5em}
%s
"""
@property
def carta(self):
return self._template('small')
@property
def oficio(self):
return self._template('small')
@property
def thermal80mm(self):
return self._template('scriptsize')
def _template(self, size):
assert self.__document__, "Have not been yet registered onto a Document"
if self.__document__.tex_cedible:
if self.__document__.doc_type == 52:
cedible = "CEDIBLE CON SU FACTURA"
else:
cedible = "CEDIBLE"
return self.__doc__ % (size, "\\raggedleft{\\textbf{%s}}" % cedible)
else:
return ""