Fix template/styles for v3 grid views, add purchasing batch status
This commit is contained in:
parent
c774d6c8e3
commit
c18774e5e5
6 changed files with 62 additions and 34 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue