Mulighet til aa endre total amount

This commit is contained in:
Vegard Aksland Sjonfjell 2013-02-11 19:42:19 +00:00
parent 5aa4c9553f
commit 9d5b2d0907
1 changed files with 3 additions and 0 deletions

View File

@ -1227,6 +1227,9 @@ much money you're due in credits for the purchase when prompted.
# Add the thing to the pending adjustments: # Add the thing to the pending adjustments:
self.add_thing_to_pending(thing,amount) self.add_thing_to_pending(thing,amount)
if self.confirm('Do you want to change the total amount?', default=False):
self.price = self.input_int('Total amount> ', (1,100000), default=self.price)
self.perform_transaction() self.perform_transaction()
def complete_input(self): def complete_input(self):