From 5c26041d7959d846bbecc129be4e5ec8539e9b9d Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 20 Apr 2009 09:57:56 +0000 Subject: Added '-' to the cpr number. --- server/xml/macros/B.0.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'server/xml') diff --git a/server/xml/macros/B.0.xml b/server/xml/macros/B.0.xml index f2b3e68..ad7bd5e 100644 --- a/server/xml/macros/B.0.xml +++ b/server/xml/macros/B.0.xml @@ -1,4 +1,8 @@ + @@ -6,6 +10,20 @@ + + value = 0 + timestamp = 0 + source = 'pentominos' + + if(cpr and cpr.cpr and cpr.cpr.value and cpr.cpr.timestamp and cpr.cpr.source) + then + value = string.sub(cpr.cpr.value,1,6) .. '-' .. string.sub(cpr.cpr.value,7,11) + timestamp = cpr.cpr.timestamp + source = cpr.cpr.source + end + + return value, timestamp, source + @@ -20,7 +38,7 @@