Default adferd for tom linje på antall innkjøpte av et produkt i AddStockMenu er nå at ett eksemplar er innkkjøpt.

This commit is contained in:
Øyvind Almelid 2011-06-05 20:30:09 +00:00
parent e94d450f15
commit 1efe8d5238
1 changed files with 5 additions and 2 deletions

View File

@ -1212,8 +1212,11 @@ much money you're due in credits for the purchase when prompted.
if amount:
self.products[thing] = amount
else:
amount = self.input_int('How many items were purchased?> ', (0,100000))
amount = self.input_int('How many items were purchased?> ', (0,100000),True)
if amount:
self.products[thing] = amount
else:
self.products[thing] = 1
def perform_transaction(self):
# self.user.credit += self.price