diff --git a/tailbone/views/purchases/batch.py b/tailbone/views/purchases/batch.py index 16389463..0f1599e5 100644 --- a/tailbone/views/purchases/batch.py +++ b/tailbone/views/purchases/batch.py @@ -301,8 +301,10 @@ class PurchaseBatchView(BatchMasterView): elif batch.mode == self.enum.PURCHASE_BATCH_MODE_RECEIVING: kwargs['date_ordered'] = batch.date_ordered kwargs['date_received'] = batch.date_received + kwargs['invoice_number'] = batch.invoice_number elif batch.mode == self.enum.PURCHASE_BATCH_MODE_COSTING: kwargs['invoice_date'] = batch.invoice_date + kwargs['invoice_number'] = batch.invoice_number if batch.mode in (self.enum.PURCHASE_BATCH_MODE_RECEIVING, self.enum.PURCHASE_BATCH_MODE_COSTING):