Compare commits
40 commits
main
...
ver-6.8.13
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0607d4c079 | ||
![]() |
7f092befca | ||
![]() |
135ad4a9be | ||
![]() |
d327b999cf | ||
![]() |
e0eec130e5 | ||
![]() |
e97cd71d11 | ||
![]() |
bbe56c578d | ||
![]() |
454087226e | ||
![]() |
188074e025 | ||
![]() |
0af2c94942 | ||
![]() |
78cb4dfbf2 | ||
![]() |
a01aa12cc0 | ||
![]() |
93a60873f6 | ||
![]() |
7dd47e6b2a | ||
![]() |
679d4b0b67 | ||
![]() |
aa5f3e6814 | ||
![]() |
6f6de9ffb4 | ||
![]() |
32ef5159d2 | ||
![]() |
5d0032880c | ||
![]() |
0165d56115 | ||
![]() |
9bff1f142b | ||
![]() |
b3e6133dac | ||
![]() |
bdd0c36483 | ||
![]() |
70f079a0dc | ||
![]() |
bdc98f25fb | ||
![]() |
fc29a63969 | ||
![]() |
e3335655c9 | ||
![]() |
39da264fbe | ||
![]() |
5b72056598 | ||
![]() |
82c70c68d5 | ||
![]() |
52d9b14da8 | ||
![]() |
45fae1ed1c | ||
![]() |
b1364cf7a2 | ||
![]() |
1d99114b2e | ||
![]() |
bd04215c76 | ||
![]() |
1acd251ed9 | ||
![]() |
580f74a84b | ||
![]() |
ebd925f5e8 | ||
![]() |
7c2e56072a | ||
![]() |
69b7678f02 |
5 changed files with 37 additions and 31 deletions
|
@ -1,5 +1,7 @@
|
|||
Copyright (C) 2021-2025 martin-data services.
|
||||
Copyright (C) 2024-2025 Mathias Behrle
|
||||
Copyright (C) 2015-2023 Cédric Krier.
|
||||
Copyright (C) 2015-2023 B2CK SPRL.
|
||||
Copyright (C) 2021-2024 martin-data services.
|
||||
Copyright (C) 2024 Mathias Behrle
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
42
README.rst
42
README.rst
|
@ -9,37 +9,39 @@ pip install mds-edocument-xrechnung
|
|||
|
||||
Requires
|
||||
========
|
||||
- Tryton 7.0
|
||||
- Tryton 6.8
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
*7.0.10 - 12.12.2024*
|
||||
*6.8.13 - 28.01.2025*
|
||||
|
||||
- fix: rounding of unit_price at invoice-line
|
||||
|
||||
*6.8.12 - 09.01.2025*
|
||||
|
||||
- handle tax childs (Jan Grasnick <jan@mittelwind.de>)
|
||||
|
||||
*6.8.11 - 19.12.2024*
|
||||
|
||||
- Lookup parent taxes for unece tax codes.
|
||||
- Improve the help text of xrechnung_routeid. Correct a translation.
|
||||
(Mathias Behrle <mathiasb@m9s.biz>)
|
||||
|
||||
*6.8.10 - 18.12.2024*
|
||||
|
||||
- fix missing views
|
||||
- Remove arguments in super() calls. (Mathias Behrle)
|
||||
|
||||
*7.0.9 - 11.12.2024*
|
||||
*6.8.9 - 11.12.2024*
|
||||
|
||||
- fix name of party in exceptions
|
||||
|
||||
*7.0.7 - 10.12.2024*
|
||||
*6.8.7 - 10.12.2024*
|
||||
|
||||
- add iban to xml-export
|
||||
- add: export of factur-x 1.07.2, XRechnung 2.3 + 3.0
|
||||
|
||||
*7.0.6 - 09.12.2024*
|
||||
*6.8.2 - 30.06.2023*
|
||||
|
||||
- add: check for valid data to generate xml
|
||||
|
||||
*7.0.5 - 05.12.2024*
|
||||
|
||||
- add: export Factur-X 1.07.2
|
||||
|
||||
*7.0.4 - 05.12.2024*
|
||||
|
||||
- add: export XRechnung 2.3 + 3.0
|
||||
- updt: xrechnung-route-id optional
|
||||
|
||||
*7.0.3 - 22.12.2023*
|
||||
|
||||
- compatibility to Tryton 7.0
|
||||
- add credit-note
|
||||
- compatibility to Tryton 6.8
|
||||
|
|
10
mixin.py
10
mixin.py
|
@ -4,13 +4,13 @@
|
|||
# full copyright notices and license terms.
|
||||
|
||||
|
||||
from decimal import Decimal
|
||||
from decimal import Decimal, ROUND_HALF_EVEN
|
||||
import html
|
||||
from trytond.exceptions import UserError
|
||||
from trytond.i18n import gettext
|
||||
from trytond.tools import cached_property
|
||||
from trytond.pool import Pool
|
||||
from trytond.modules.product import round_price
|
||||
from trytond.modules.product import price_digits
|
||||
|
||||
|
||||
class EdocumentMixin(object):
|
||||
|
@ -193,8 +193,10 @@ class EdocumentMixin(object):
|
|||
Returns:
|
||||
Decimal: rounded value
|
||||
"""
|
||||
if value is not None:
|
||||
return round_price(value)
|
||||
if isinstance(value, Decimal):
|
||||
return value.quantize(
|
||||
Decimal(str(1/10 ** price_digits[1])),
|
||||
ROUND_HALF_EVEN)
|
||||
return value
|
||||
|
||||
def quote_text(self, text):
|
||||
|
|
8
setup.py
8
setup.py
|
@ -13,9 +13,11 @@ here = path.abspath(path.dirname(__file__))
|
|||
MODULE = 'edocument_xrechnung'
|
||||
PREFIX = 'mds'
|
||||
|
||||
# Get the long description from the README file
|
||||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
# tryton.cfg einlesen
|
||||
config = ConfigParser()
|
||||
config.readfp(open('tryton.cfg'))
|
||||
info = dict(config.items('tryton'))
|
||||
|
@ -34,8 +36,8 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f:
|
|||
modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]}
|
||||
|
||||
# tryton-version
|
||||
major_version = 7
|
||||
minor_version = 0
|
||||
major_version = 6
|
||||
minor_version = 8
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
|
@ -85,8 +87,6 @@ setup(
|
|||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
],
|
||||
|
||||
keywords='tryton xrechnung edcoument',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=7.0.10
|
||||
version=6.8.13
|
||||
depends:
|
||||
edocument_uncefact
|
||||
party
|
||||
|
|
Loading…
Reference in a new issue