Use shared logic for rendering percentage values
This commit is contained in:
parent
22c33b58c7
commit
c2b2d11141
3 changed files with 7 additions and 7 deletions
|
@ -670,7 +670,9 @@ class ProductView(MasterView):
|
|||
return ""
|
||||
if product.volatile.true_margin is None:
|
||||
return ""
|
||||
return "{:0.3f} %".format(product.volatile.true_margin * 100)
|
||||
app = self.get_rattail_app()
|
||||
return app.render_percent(product.volatile.true_margin,
|
||||
places=3)
|
||||
|
||||
def render_on_hand(self, product, column):
|
||||
inventory = product.inventory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue