Fix template/styles for v3 grid views, add purchasing batch status

This commit is contained in:
Lance Edgar 2017-07-14 15:45:31 -05:00
parent c774d6c8e3
commit c18774e5e5
6 changed files with 62 additions and 34 deletions

View file

@ -224,6 +224,7 @@ class ReceivingBatchView(PurchasingBatchView):
rows = self.Session.query(model.PurchaseBatchRow)\
.filter(model.PurchaseBatchRow.batch == batch)\
.filter(model.PurchaseBatchRow.upc.in_((provided, checked)))\
.filter(model.PurchaseBatchRow.removed == False)\
.all()
if rows:
@ -252,6 +253,7 @@ class ReceivingBatchView(PurchasingBatchView):
row.description = "(unknown product)"
batch.add_row(row)
self.handler.refresh_row(row)
self.handler.refresh_batch_status(batch)
self.Session.flush()
return self.redirect(self.mobile_row_route_url('view', uuid=row.uuid))