Hi,
The Store Client Data Snapshot option has this functionality: https://docs.whmcs.com/Invoice_Tab#Store_Client_Data_Snapshot