You can extend the table PurchReqTableVersion with a new field for a version sequence number. When inserting the records, you can determine the highest version number per purchase requisition. Then add 1 to that number for the current record. You can then concatenate the PR number and version field for printing.
You can refer to this official documentation: Number sequences overview - Finance & Operations | Dynamics 365 | Microsoft Learn. Number sequences are used to generate readable, unique identifiers for master data records and transaction records that require identifiers. A master data record or transaction record that requires an identifier is referred to as a reference.
Best regards,
Kevin
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.