Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Automatically fetch user settings from previous versions of RDMP when installing the latest version
- Allow new columns to be added to archive extractions
- Simplify use of Extraction Progress
- Update CHI validation to allow mod10 CHIs


## [9.1.1] - 2025-12-02
- Allow Atlassian service workers to write to Confluence from RDMP
Expand Down
11 changes: 8 additions & 3 deletions Rdmp.Core/Validation/Constraints/Primary/Chi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,16 @@ private static char GetCHICheckDigit([NotNull] string sCHI)
int c = '0';
for (var i = 0; i < lsCHI - 1; i++)
sum += ((int)sCHI.Substring(i, 1)[0] - c) * (lsCHI - i);
sum %= 11;
var mod11Sum = sum % 11;

c = 11 - sum;
c = 11 - mod11Sum;
if (c == 11) c = 0;

if (c != int.Parse(sCHI.Substring(9, 1)))
{
var mod10Sum = sum % 10;
c = 10 - mod10Sum;
if (c == 10) c = 0;
}
return (char)(c + '0');
}

Expand Down
4 changes: 2 additions & 2 deletions rdmp-client.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>9.1.1.0</version>
<url>https://github.com/HicServices/RDMP/releases/download/v9.1.0/rdmp-9.1.0-client.zip</url>
<version>9.1.2.0</version>
<url>https://github.com/HicServices/RDMP/releases/download/v9.1.2/rdmp-9.1.2-client.zip</url>
<changelog>https://github.com/HicServices/RDMP/blob/main/CHANGELOG.md#7</changelog>
<mandatory>true</mandatory>
</item>
Loading