Commit 8d9d9e17 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: show price unit

parent d48d51bf
...@@ -42,7 +42,7 @@ for allocation_predicate in allocation_predicate_list: ...@@ -42,7 +42,7 @@ for allocation_predicate in allocation_predicate_list:
price = tmp_context.getPrice(None) price = tmp_context.getPrice(None)
if price is not None: if price is not None:
result_list.append(allocation_predicate.asContext( result_list.append(allocation_predicate.asContext(
title = '%s (%s)' % (software_product.getTitle(), price) title = '%s (%s %s/%s)' % (software_product.getTitle(), price, tmp_context.getPriceCurrencyTitle(), tmp_context.getQuantityUnitTitle())
)) ))
return result_list return result_list
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment