From c61b42ddfec7ea8ac08b4291bc31876599f34515 Mon Sep 17 00:00:00 2001 From: msyu Date: Thu, 19 Jun 2025 16:31:34 +0300 Subject: [PATCH] 004 number clean fix --- Application.cfc | 2 +- inc/functions.cfm | 12 +++++++++++- specification_item_version.cfm | 13 +++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Application.cfc b/Application.cfc index 3509acb..cf4d9b1 100644 --- a/Application.cfc +++ b/Application.cfc @@ -69,7 +69,7 @@ - + diff --git a/inc/functions.cfm b/inc/functions.cfm index f751234..09ae061 100644 --- a/inc/functions.cfm +++ b/inc/functions.cfm @@ -60,7 +60,17 @@ function filterOn(filter) { request.filterOn = filterOn; function stripWhiteSpace(sNumber) { - return reReplace(sNumber, "[[:space:]]", "", "ALL"); + function hexToChar( required string hexEncoded ) { + return( chr( inputBaseN( hexEncoded, 16 ) ) );/*https://www.bennadel.com/blog/4516-which-whitespace-characters-does-trim-remove-in-coldfusion.htm*/ + } + return reReplace(sNumber, "[[:space:]" + & hexToChar('00A0') & hexToChar('180E') + & hexToChar('2000')& hexToChar('2001')& hexToChar('2002')& hexToChar('2003')& hexToChar('2004') & hexToChar('2005') + & hexToChar('2006')& hexToChar('2007')& hexToChar('2008')& hexToChar('2009')& hexToChar('200A') + & hexToChar('200B') & hexToChar('202F') & hexToChar('205F') & hexToChar('3000') & hexToChar('FEFF') & + "]", "", "ALL"); + /*return reReplace(sNumber, "[[:space:]"& chr(0x00A0) & "]", "", "ALL");*/ + } request.stripWhiteSpace = stripWhiteSpace; /* diff --git a/specification_item_version.cfm b/specification_item_version.cfm index 969c62b..4b4664e 100644 --- a/specification_item_version.cfm +++ b/specification_item_version.cfm @@ -38,6 +38,15 @@ + + select a.agreement, a.dt_agreement, a.contract_id + from specification_item si + join specification s on (si.specification_id=s.specification_id) + join agreement a on (s.contract_id=a.contract_id) + where si.specification_item_uid= + AND a.agreement_version = + + + @@ -162,7 +171,7 @@ /> (версия-номер соглашения) - + #d.agreement_version#