From 6ac07e125575c4dd630e9a7475c3d77d2e969af8 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 6 Dec 2022 19:31:22 -0600 Subject: [PATCH] Fix bug when viewing certain receiving batches --- tailbone/views/purchasing/receiving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index d654289b..7b668dc5 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -975,7 +975,7 @@ class ReceivingBatchView(PurchasingBatchView): # nb. only show PO *or* invoice cost; prefer the latter unless # we have a PO and no invoice if (self.batch_handler.has_purchase_order(batch) - and not self.batch_handler.has_invoice(batch)): + and not self.batch_handler.has_invoice_file(batch)): g.remove('invoice_unit_cost') else: g.remove('po_unit_cost')