Allow products view to set some labels in costs grid
This commit is contained in:
parent
bac82f47d8
commit
e608c0b428
|
@ -179,10 +179,10 @@
|
||||||
<div class="grid full no-border">
|
<div class="grid full no-border">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th>Pref.</th>
|
<th>${costs_label_preferred}</th>
|
||||||
<th>Vendor</th>
|
<th>${costs_label_vendor}</th>
|
||||||
<th>Order Code</th>
|
<th>${costs_label_code}</th>
|
||||||
<th>Case Size</th>
|
<th>${costs_label_case_size}</th>
|
||||||
<th>Case Cost</th>
|
<th>Case Cost</th>
|
||||||
<th>Unit Cost</th>
|
<th>Unit Cost</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
|
|
|
@ -619,6 +619,10 @@ class ProductsView(MasterView):
|
||||||
if product.upc:
|
if product.upc:
|
||||||
kwargs['image_url'] = pod.get_image_url(self.rattail_config, 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['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
|
return kwargs
|
||||||
|
|
||||||
def edit(self):
|
def edit(self):
|
||||||
|
|
Loading…
Reference in a new issue