Fix bug when viewing certain receiving batches
This commit is contained in:
parent
1509b6fce5
commit
6ac07e1255
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue