Paul Timms
10-5-21
Operating system: Windows
A customer reported that when they created a mail from a sales order, it also linked an unrelated purchase order (record and PDF) to the mail record. Looking at the mail history, the first entry is "Routed to Internet", which corresponds to the time of the mail queue record for the purchase order. The next entry is "Created" which corresponds to when the mail record was created from the sales order. The time difference was 17 minutes. This should not happen.
Looking at the source code, it must be this line which is failing to get the next free number:
Mailr.SerNr = NextSerNr("MailVc",Mailr.TransDate,-1,false,"");
This is worrying as this code is used throughout the system. It's a GDPR failure if incorrect attachments are being sent to external people.
Is this issue known about? The customer's version is 8.5 2020-08-13.