From b9a96f306b732c39a852d5dce262e2c7939c5f8c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 22 Jun 2017 01:17:34 -0500 Subject: [PATCH] Add row count to inventory and label batch views --- tailbone/views/batch/core.py | 1 + tailbone/views/inventory.py | 12 ++++++++++-- tailbone/views/labels/batch.py | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 58334de2..05cc9f22 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -172,6 +172,7 @@ class BatchMasterView(MasterView): g.id, g.created, g.created_by, + g.rowcount, g.executed, g.executed_by, ], diff --git a/tailbone/views/inventory.py b/tailbone/views/inventory.py index a376a459..5b4c98a3 100644 --- a/tailbone/views/inventory.py +++ b/tailbone/views/inventory.py @@ -55,8 +55,15 @@ class InventoryBatchView(BatchMasterView): label="Count Mode") def configure_grid(self, g): - super(InventoryBatchView, self).configure_grid(g) - g.append(g.mode) + g.configure(include=[ + g.id, + g.created, + g.created_by, + g.rowcount, + g.executed, + g.executed_by, + g.mode, + ], readonly=True) def _preconfigure_fieldset(self, fs): super(InventoryBatchView, self)._preconfigure_fieldset(fs) @@ -73,6 +80,7 @@ class InventoryBatchView(BatchMasterView): fs.created_by, fs.handheld_batches, fs.mode, + fs.rowcount, fs.executed, fs.executed_by, ]) diff --git a/tailbone/views/labels/batch.py b/tailbone/views/labels/batch.py index 6bab77d1..b3c3ec5b 100644 --- a/tailbone/views/labels/batch.py +++ b/tailbone/views/labels/batch.py @@ -61,6 +61,7 @@ class LabelBatchView(BatchMasterView): fs.created, fs.created_by, fs.handheld_batches, + fs.rowcount, fs.executed, fs.executed_by, ])