Fix assertion bug
This commit is contained in:
parent
225a0ba380
commit
ddca6b7d9b
|
@ -292,7 +292,7 @@ class PurchaseBatchHandler(BatchHandler):
|
|||
ordered -= total
|
||||
|
||||
if ordered and avail_damaged:
|
||||
assert ordered > avail_damaged
|
||||
assert ordered >= avail_damaged
|
||||
possible_credits = [credit for credit in truck_dump_row.credits
|
||||
if credit.credit_type == 'damaged']
|
||||
possible_shorted = sum([self.get_units_shorted(credit)
|
||||
|
|
Loading…
Reference in a new issue