Skip to content

Commit

Permalink
./kassenbuch client show --detail is now --transactions
Browse files Browse the repository at this point in the history
 - Auf Support Anfrage von @vale ist das jetzt eindeutig
 - See #127 and #76
  • Loading branch information
sedrubal committed Apr 27, 2016
1 parent ce569c6 commit 6a61a2e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions FabLabKasse/kassenbuch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ def parse_args(argv=sys.argv[1:]):
# client show
parser_client_show = client_subparsers.add_parser(
'show',
help="Shows transactions of an existing client",
help="Shows details for an existing client " +
"(--transactions for transactions)"
)
parser_client_show.add_argument(
'client',
Expand All @@ -1034,11 +1035,11 @@ def parse_args(argv=sys.argv[1:]):
help="The name or id of the client",
).completer = client_argcomplete
parser_client_show.add_argument(
'--detail',
'--transactions',
action='store_true',
dest='detail',
dest='transactions',
default=False,
help="Show accounting of the client",
help="Show transactions of the client",
) # replaces old 'client summary'
# client charge
parser_client_charge = client_subparsers.add_parser(
Expand Down Expand Up @@ -1360,7 +1361,7 @@ def check_number_greater_zero_or_minus_one(n):

elif args.client_action == 'show':

print(kunde.to_string(short=not args.detail))
print(kunde.to_string(short=not args.transactions))

print("Kontostand: " + moneyfmt(kunde.summe) + ' EUR')

Expand Down

0 comments on commit 6a61a2e

Please sign in to comment.