Revised the accounting_amount filter to return "-" on 0 in the accounting application.
This commit is contained in:
parent
cb0d42ddd8
commit
393535b6bd
@ -29,6 +29,8 @@ register = template.Library()
|
||||
def accounting_amount(value):
|
||||
if value is None:
|
||||
return ""
|
||||
if value == 0:
|
||||
return "-"
|
||||
s = str(abs(value))
|
||||
while True:
|
||||
m = re.match("^([1-9][0-9]*)([0-9]{3})", s)
|
||||
|
Loading…
Reference in New Issue
Block a user