Add 'status' column to vendor cost table in product view

(available vs. discontinued)
This commit is contained in:
Lance Edgar 2017-03-28 19:56:02 -05:00
parent 5a2f20e489
commit b1f98c1023

View file

@ -196,6 +196,7 @@
<th>Case Size</th> <th>Case Size</th>
<th>Case Cost</th> <th>Case Cost</th>
<th>Unit Cost</th> <th>Unit Cost</th>
<th>Status</th>
</thead> </thead>
<tbody> <tbody>
% for cost in instance.costs: % for cost in instance.costs:
@ -206,6 +207,7 @@
<td class="center">${h.pretty_quantity(cost.case_size)}</td> <td class="center">${h.pretty_quantity(cost.case_size)}</td>
<td class="right">${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''}</td> <td class="right">${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''}</td>
<td class="right">${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''}</td> <td class="right">${'$ %0.4f' % cost.unit_cost if cost.unit_cost is not None else ''}</td>
<td>${"discontinued" if cost.discontinued else "available"}</td>
</tr> </tr>
% endfor % endfor
</tbody> </tbody>