diff --git a/tailbone/views/purchases/batch.py b/tailbone/views/purchases/batch.py index 06a5684d..efec7c0c 100644 --- a/tailbone/views/purchases/batch.py +++ b/tailbone/views/purchases/batch.py @@ -288,12 +288,12 @@ class PurchaseBatchView(BatchMasterView): kwargs['buyer_uuid'] = batch.buyer_uuid kwargs['po_number'] = batch.po_number + # TODO: should these always get set? if batch.mode == self.enum.PURCHASE_BATCH_MODE_ORDERING: kwargs['date_ordered'] = batch.date_ordered - elif batch.mode == self.enum.PURCHASE_BATCH_MODE_RECEIVING: + kwargs['date_ordered'] = batch.date_ordered kwargs['date_received'] = batch.date_received - elif batch.mode == self.enum.PURCHASE_BATCH_MODE_COSTING: kwargs['invoice_date'] = batch.invoice_date