From b1f98c1023c557c11c9fd1216d269bc4d89d13bb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 28 Mar 2017 19:56:02 -0500 Subject: [PATCH] Add 'status' column to vendor cost table in product view (available vs. discontinued) --- tailbone/templates/products/view.mako | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 6aebde06..3841ba7b 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -196,6 +196,7 @@ Case Size Case Cost Unit Cost + Status % for cost in instance.costs: @@ -206,6 +207,7 @@ ${h.pretty_quantity(cost.case_size)} ${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''} ${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''} + ${"discontinued" if cost.discontinued else "available"} % endfor