Add row count to inventory and label batch views

This commit is contained in:
Lance Edgar 2017-06-22 01:17:34 -05:00
parent 17017adde8
commit b9a96f306b
3 changed files with 12 additions and 2 deletions

View file

@ -172,6 +172,7 @@ class BatchMasterView(MasterView):
g.id,
g.created,
g.created_by,
g.rowcount,
g.executed,
g.executed_by,
],

View file

@ -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,
])

View file

@ -61,6 +61,7 @@ class LabelBatchView(BatchMasterView):
fs.created,
fs.created_by,
fs.handheld_batches,
fs.rowcount,
fs.executed,
fs.executed_by,
])