Fix how "unknown product" row is added to receiving batch
This commit is contained in:
parent
8d0dfd631b
commit
2ffb930f7f
|
@ -642,8 +642,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
row = model.PurchaseBatchRow()
|
||||
row.upc = provided # TODO: why not checked? how to know?
|
||||
row.description = "(unknown product)"
|
||||
batch.add_row(row)
|
||||
self.handler.refresh_row(row)
|
||||
self.handler.add_row(batch, row)
|
||||
self.handler.refresh_batch_status(batch)
|
||||
|
||||
self.Session.flush()
|
||||
|
|
Loading…
Reference in a new issue