use path ... but still todo: set as base path to invoide.yaml
This commit is contained in:
@@ -119,6 +119,8 @@ def main():
|
|||||||
generator = html_generator.HtmlTemplate(args.template)
|
generator = html_generator.HtmlTemplate(args.template)
|
||||||
template = generator.prepare_template(invoice_data, envelope_data)
|
template = generator.prepare_template(invoice_data, envelope_data)
|
||||||
|
|
||||||
|
print(template)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print('Generating invoice...')
|
print('Generating invoice...')
|
||||||
invoice_pdf = Path(invoice_data.Id).with_suffix('.pdf')
|
invoice_pdf = Path(invoice_data.Id).with_suffix('.pdf')
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ AddressContent:
|
|||||||
AddressBoxSender: "Abs.: Torsten Ueberschar - Pfarrweg 1 - 57439 Attendorn"
|
AddressBoxSender: "Abs.: Torsten Ueberschar - Pfarrweg 1 - 57439 Attendorn"
|
||||||
Contents:
|
Contents:
|
||||||
- Text: |
|
- Text: |
|
||||||

|

|
||||||
Torsten Ueberschar
|
Torsten Ueberschar
|
||||||
Pfarrweg 1
|
Pfarrweg 1
|
||||||
57439 Attendorn
|
57439 Attendorn
|
||||||
|
|||||||
@@ -71,7 +71,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
font-family: 'Barlow Semi Condensed', sans-serif !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#address_frame_content {
|
#address_frame_content {
|
||||||
@@ -125,6 +124,12 @@
|
|||||||
.small {
|
.small {
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#letter_head_content img {
|
||||||
|
display: block;
|
||||||
|
margin-left: -.55cm;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -138,7 +143,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="letter_head_content" class="small">
|
<div id="letter_head_content" class="small">
|
||||||
{% for address in envelope.AddressContent.Contents %}
|
{% for address in envelope.AddressContent.Contents %}
|
||||||
<p>{{ address.Text | markdown_to_html }}</p>
|
{{ address.Text | markdown_to_html }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user