Shop: Create null inventory fix transaction in case amount is correct

This commit is contained in:
brmbar 2013-08-06 21:51:58 +02:00
parent ac4f2f2c62
commit d74ca2b6c0

View file

@ -164,6 +164,10 @@ class Shop:
self.db.commit()
return True
else:
transaction = self._transaction(description = "BrmBar inventory fix of {}pcs {} in system to {}pcs in reality".format(amount_in_system, item.name,amount_in_reality))
item.debit(transaction, 0, "Inventory fix - amount was correct")
item.credit(transaction, 0, "Inventory fix - amount was correct")
self.db.commit()
return False
def fix_cash(self, amount):
amount_in_reality = amount