From e608c0b4286df2490d268871ac2ed6fde8778fa0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 7 Jun 2018 16:03:17 -0500 Subject: [PATCH] Allow products view to set some labels in costs grid --- tailbone/templates/products/view.mako | 8 ++++---- tailbone/views/products.py | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 8bfc9acc..1aa7858d 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -179,10 +179,10 @@
- - - - + + + + diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 3a6d83ad..4425b071 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -619,6 +619,10 @@ class ProductsView(MasterView): if product.upc: kwargs['image_url'] = pod.get_image_url(self.rattail_config, product.upc) kwargs['image_path'] = pod.get_image_path(self.rattail_config, product.upc) + kwargs['costs_label_preferred'] = "Pref." + kwargs['costs_label_vendor'] = "Vendor" + kwargs['costs_label_code'] = "Order Code" + kwargs['costs_label_case_size'] = "Case Size" return kwargs def edit(self):
Pref.VendorOrder CodeCase Size${costs_label_preferred}${costs_label_vendor}${costs_label_code}${costs_label_case_size} Case Cost Unit Cost Status