Add basic support for viewing inventory batches on mobile
This commit is contained in:
parent
60104f05c7
commit
452cb99349
8 changed files with 82 additions and 12 deletions
|
@ -92,7 +92,6 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
rows_deletable = False
|
||||
mobile_creatable = True
|
||||
mobile_rows_filterable = True
|
||||
mobile_rows_viewable = True
|
||||
|
||||
@property
|
||||
def batch_mode(self):
|
||||
|
@ -159,11 +158,6 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
kwargs['sms_transaction_number'] = batch.sms_transaction_number
|
||||
return kwargs
|
||||
|
||||
def get_mobile_data(self, session=None):
|
||||
# TODO: this hard-codes the sort by batch ID desc
|
||||
return super(ReceivingBatchView, self).get_mobile_data(session=session)\
|
||||
.order_by(model.PurchaseBatch.id.desc())
|
||||
|
||||
def configure_mobile_grid(self, g):
|
||||
super(ReceivingBatchView, self).configure_mobile_grid(g)
|
||||
g.listitem.set(renderer=ReceivingBatchRenderer)
|
||||
|
@ -184,10 +178,6 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
else:
|
||||
del fs.complete
|
||||
|
||||
def get_mobile_row_data(self, batch):
|
||||
return super(ReceivingBatchView, self).get_mobile_row_data(batch)\
|
||||
.order_by(model.PurchaseBatchRow.sequence)
|
||||
|
||||
def render_mobile_row_listitem(self, row, **kwargs):
|
||||
if row is None:
|
||||
return ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue