Remove unwanted sanity check

this was preventing us from deleting a row from truck dump child batch, which
was created from invoice file but had no `po_total`
This commit is contained in:
Lance Edgar 2018-09-22 19:26:00 -05:00
parent 020d2f06b5
commit 314186bd5c

View file

@ -599,8 +599,6 @@ class PurchaseBatchHandler(BatchHandler):
batch.po_total -= row.po_total
if batch.mode == self.enum.PURCHASE_BATCH_MODE_RECEIVING:
if row.cases_ordered or row.units_ordered:
raise NotImplementedError
if row.invoice_total:
batch.invoice_total -= row.invoice_total