Fix assertion bug

This commit is contained in:
Lance Edgar 2018-05-18 16:06:15 -05:00
parent 225a0ba380
commit ddca6b7d9b

View file

@ -292,7 +292,7 @@ class PurchaseBatchHandler(BatchHandler):
ordered -= total ordered -= total
if ordered and avail_damaged: if ordered and avail_damaged:
assert ordered > avail_damaged assert ordered >= avail_damaged
possible_credits = [credit for credit in truck_dump_row.credits possible_credits = [credit for credit in truck_dump_row.credits
if credit.credit_type == 'damaged'] if credit.credit_type == 'damaged']
possible_shorted = sum([self.get_units_shorted(credit) possible_shorted = sum([self.get_units_shorted(credit)