cashbook_report/templates.py

30 lines
904 B
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
# This file is part of the cashbook-module from m-ds for Tryton.
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
2023-06-16 12:15:57 +00:00
cashbook_types = [
'cashbooks', 'cashbooks_gldiff', 'cashbooks_glperc',
2023-03-10 22:44:02 +00:00
'cashbooks_glvalue', 'cashbooks_glyield']
2023-06-16 12:15:57 +00:00
category_types = [
2024-01-13 14:08:20 +00:00
'categories', 'categories_gldiff', 'categories_glvalue',
'categories_glperc', 'categories_glyield']
2023-06-16 12:15:57 +00:00
booktype_types = [
'types', 'types_gldiff', 'types_glvalue',
2023-03-10 22:44:02 +00:00
'types_glperc', 'types_glyield']
2024-01-13 14:08:20 +00:00
currency_types = ['currencies']
2024-01-13 14:08:20 +00:00
template_view_line = '<field name="%(fname)s" fill="%(fill)s" ' + \
2023-06-16 12:15:57 +00:00
'empty="0" string="%(string)s"/>'
2022-10-31 19:45:40 +00:00
template_view_graph = """<?xml version="1.0"?>
<graph type="%(type)s" legend="%(legend)s" %(colscheme)s %(bgcol)s>
<x>
2022-10-31 19:45:40 +00:00
<field name="name"/>
</x>
<y>
%(lines)s
</y>
</graph>
"""