sw

simple wallet
git clone git://git.bitsmanent.org/sw
Log | Files | Refs | README | LICENSE

commit 534b442622cc7b30f1f1a59f07e7bccc49a206a0
parent 5f02de891bf38a1cc6443c029ffaa0661c6d57aa
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 29 Jun 2024 15:36:44 +0200

Only show partials if differs from totals.

Diffstat:
Msw.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sw.c b/sw.c @@ -241,7 +241,7 @@ showmovs(void) { strftime(time, sizeof time, "%d/%m/%Y %H:%M", localtime(&ts)); printf("%5d | %16s | %8.2f | %s\n", m->id, time, m->amount, m->note); } - if(listcount > 1) + if(listcount > 1 && listcount < totals.count) printf("%5s | %17s: %8.2f | income=%.2f expense=%.2f movements=%d\n", "", "Partial", totals.pamount, totals.pincome, totals.pexpense, totals.pcount); printf("%5s | %17s: %8.2f | income=%.2f expense=%.2f movements=%d\n",