From 8e35b68e05053783353480a32beeaeabf7565f50 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 14 Feb 2017 23:12:37 -0600 Subject: [PATCH] Make sure invoice number is saved when making new purchasing batch --- tailbone/views/purchases/batch.py | 2 ++ 1 file changed, 2 insertions(+) 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):