Trades tabs from report with formatting honey

This commit is contained in:
Luís Murta 2020-07-06 21:56:23 +01:00
parent 02bf111b6d
commit a70ca6951c
Signed by: satprog
GPG Key ID: DDF2EFC6179009DC

View File

@ -132,28 +132,27 @@ class MonthlyTransactions:
info.extend([k, v]) info.extend([k, v])
p = """ p = """
\t\t\t\t{0} Report {0:>40} Report
Income\t\t\tFixed Expenses\t\tVariable Expenses Income Fixed Expenses Variable Expenses
{1}\t{2}\t{11}\t\t{12}\t{25}\t\t{26} {1:<16}{2:>9.2f} {11:<16}{12:>9.2f} {25:<16}{26:>9.2f}
{3}\t{4}\t{13}\t{14}\t{27}\t{28} {3:<16}{4:>9.2f} {13:<16}{14:>9.2f} {27:<16}{28:>9.2f}
{5}\t{6}\t{15}\t{16}\t{29}\t{30} {5:<16}{6:>9.2f} {15:<16}{16:>9.2f} {29:<16}{30:>9.2f}
{7}\t{8}\t{17}\t\t{18}\t{31}\t{32} {7:<16}{8:>9.2f} {17:<16}{18:>9.2f} {31:<16}{32:>9.2f}
{9}\t{10}\t{19}\t\t{20}\t{33}\t{34} {9:<16}{10:>9.2f} {19:<16}{20:>9.2f} {33:<16}{34:>9.2f}
\t\t\t{21}\t\t{22}\t{35}\t\t{36} {21:<16}{22:>9.2f} {35:<16}{36:>9.2f}
\t\t\t{23}\t{24}\t{37}\t\t{38} {23:<16}{24:>9.2f} {37:<16}{38:>9.2f}
\t\t\t\t\t\t{39}\t\t{40} {39:<16}{40:>9.2f}
\t\t\t\t\t\t{41}\t\t{42} {41:<16}{42:>9.2f}
\t\t\t\t\t\t{43}\t\t{44} {43:<16}{44:>9.2f}
\t\t\t\t\t\t{45}\t\t{46} {45:<16}{46:>9.2f}
\t\t\t\t\t\t{47}\t{48} {47:<16}{48:>9.2f}
\t\t\t\t\t\t{49}\t\t{50} {49:<16}{50:>9.2f}
\t\t\t\t\t\t{51}\t{52} {51:<16}{52:>9.2f}
\t\t{53}\t\t\t{54}\t\t\t{55} {53:>25.2f} {54:>25.2f} {55:>25.2f}
Expenses:\t{56} Expenses:{56:>16.2f}
Net:\t\t{57} Net:{57:>21.2f}""".format(
""".format(
self.month.strftime("%B"), self.month.strftime("%B"),
*info, *info,
self.income(), self.income(),