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:
parent
020d2f06b5
commit
314186bd5c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue