prepare test for porting

This commit is contained in:
Frederik Jaeckel 2023-06-02 20:40:12 +02:00
parent 619a17bcd6
commit 3467c08895
16 changed files with 690 additions and 373 deletions

View file

@ -121,7 +121,9 @@ class SplitLine(SecondCurrencyMixin, MemCacheIndexMx, ModelSQL, ModelView):
"""
return '%(type)s|%(amount)s %(symbol)s|%(desc)s [%(target)s]' % {
'desc': (self.description or '-')[:40],
'amount': Report.format_number(self.amount, None),
'amount': Report.format_number(
self.amount, None,
digits=getattr(self.currency, 'digits', 2)),
'symbol': getattr(self.currency, 'symbol', '-'),
'target': self.category_view
if self.splittype == 'cat' else self.booktransf.rec_name,