From aea185e9c336228ad1a41c25b3a5e295482b5602 Mon Sep 17 00:00:00 2001 From: "amir.mattar" Date: Thu, 13 Jun 2024 11:29:33 +0200 Subject: [PATCH] feat: Checksum change to include also the Prefix BPN(L-S-A) --- .../org/eclipse/tractusx/bpdm/pool/service/BpnIssuingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BpnIssuingService.kt b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BpnIssuingService.kt index 8fb0f03f8..a3f157e01 100644 --- a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BpnIssuingService.kt +++ b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BpnIssuingService.kt @@ -92,7 +92,7 @@ class BpnIssuingService( private fun createBpn(number: Long, bpnChar: Char): String { val code = toBpnCode(number) - val checksum = calculateChecksum(code) + val checksum = calculateChecksum(bpnConfigProperties.id + bpnChar + code) return "${bpnConfigProperties.id}$bpnChar$code$checksum" }