Set "order date" when creating new receiving batch
This commit is contained in:
parent
ed06ada8c4
commit
55973bf30a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue