From 54f1a52ed0e164ec8276cf1627ee6fc1048cc6f9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Aug 2021 19:52:44 -0500 Subject: [PATCH] Add hover text for vendor ID column of pricing batch row grid --- tailbone/views/batch/pricing.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index 57a97a62..1f054e61 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -210,10 +210,11 @@ class PricingBatchView(BatchMasterView): g.set_renderer('true_margin', self.render_true_margin) def render_vendor_id(self, row, field): - vendor_id = row.vendor.id if row.vendor else None - if not vendor_id: - return "" - return vendor_id + vendor = row.vendor + if not vendor: + return + text = vendor.id or "(no id)" + return HTML.tag('span', c=text, title=vendor.name) def render_subdepartment_number(self, row, field): if row.subdepartment_number: