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:
parent
e94d450f15
commit
1efe8d5238
|
@ -1212,8 +1212,11 @@ much money you're due in credits for the purchase when prompted.
|
||||||
if amount:
|
if amount:
|
||||||
self.products[thing] = amount
|
self.products[thing] = amount
|
||||||
else:
|
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
|
self.products[thing] = amount
|
||||||
|
else:
|
||||||
|
self.products[thing] = 1
|
||||||
|
|
||||||
def perform_transaction(self):
|
def perform_transaction(self):
|
||||||
# self.user.credit += self.price
|
# self.user.credit += self.price
|
||||||
|
|
Loading…
Reference in New Issue