From 2ffb930f7fe8acdad89709591b503f913cd1e1e0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 28 Jun 2018 12:27:40 -0500 Subject: [PATCH] Fix how "unknown product" row is added to receiving batch --- tailbone/views/purchasing/receiving.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 7af5536a..452a8a75 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -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()