prepare test for porting
This commit is contained in:
parent
619a17bcd6
commit
3467c08895
16 changed files with 690 additions and 373 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue