We need to have NAV print a CID number generated from the document number. This is using algorithm MOD10 V01 or something compatible. I wonder if there are any resources available on doing this purely in C/AL if possible, or perhaps in .NET that anyone has encountered?
Bruce Anderson0
Answers
viewtopic.php?f=23&t=48786&hilit=Luhn+algorithm
However the calculation there was slightly different to what I need for the service I have to comply with, BPay.
Below is the code i came up with. It accepts a string of the CRN to add a checksum, calculates and adds the checksums and then returns it.
Bruce Anderson