From f47a0b8c9d3e4db041864a1fe6ea06172ea059a1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 14:41:14 +0200 Subject: [PATCH] Use neg for negative numbers in invoices --- apps/treasury/templatetags/escape_tex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/treasury/templatetags/escape_tex.py b/apps/treasury/templatetags/escape_tex.py index c8094ae1..7cc41fb5 100644 --- a/apps/treasury/templatetags/escape_tex.py +++ b/apps/treasury/templatetags/escape_tex.py @@ -17,7 +17,7 @@ def do_latex_escape(value): def fp_value(value): - return value.replace("-", "neg ") + return value.replace("-", "").replace("-", "neg") register = template.Library()