diff --git a/line.py b/line.py index b8c1c99..8e8e5fd 100644 --- a/line.py +++ b/line.py @@ -112,18 +112,21 @@ class Line(SecondUomMixin, metaclass=PoolMeta): 'on_change_with_diff_percent') trade_fee = fields.Function(fields.Numeric(string='Fee', + help='Trading fee for the current booking line.', readonly=True, digits=(16, Eval('currency_digits', 2)), states = { 'invisible': Eval('feature', '') != 'asset', }, depends=['currency_digits', 'feature']), 'get_yield_data', searcher='search_trade_fee') asset_dividend = fields.Function(fields.Numeric(string='Dividend', + help='Dividend received at the current booking line.', readonly=True, digits=(16, Eval('currency_digits', 2)), states = { 'invisible': Eval('feature', '') != 'asset', }, depends=['currency_digits', 'feature']), 'get_yield_data', searcher='search_asset_dividend') asset_gainloss = fields.Function(fields.Numeric(string='Profit/Loss', + help='Profit or loss on sale on the current booking line.', readonly=True, digits=(16, Eval('currency_digits', 2)), states = { 'invisible': Eval('feature', '') != 'asset', diff --git a/locale/de.po b/locale/de.po index d23cc63..675b97f 100644 --- a/locale/de.po +++ b/locale/de.po @@ -266,14 +266,26 @@ msgctxt "field:cashbook.line,trade_fee:" msgid "Fee" msgstr "Gebühr" +msgctxt "help:cashbook.line,trade_fee:" +msgid "Trading fee for the current booking line." +msgstr "Handelsgebühr für die aktuelle Buchungszeile." + msgctxt "field:cashbook.line,asset_dividend:" msgid "Dividend" msgstr "Dividende" +msgctxt "help:cashbook.line,asset_dividend:" +msgid "Dividend received at the current booking line." +msgstr "Erhaltene Dividende an der aktuellen Buchungszeile." + msgctxt "field:cashbook.line,asset_gainloss:" msgid "Profit/Loss" msgstr "Gewinn/Verlust" +msgctxt "help:cashbook.line,asset_gainloss:" +msgid "Profit or loss on sale on the current booking line." +msgstr "Gewinn oder Verlust bei Verkauf auf der aktuellen Buchungszeile." + ################## # cashbook.recon # diff --git a/view/line_form.xml b/view/line_form.xml index 016a1e0..1386487 100644 --- a/view/line_form.xml +++ b/view/line_form.xml @@ -34,6 +34,7 @@ full copyright notices and license terms. -->