Business Central | How to keep Sales Order after completely shipped and Invoiced

Hello Expert,

I have a question, I want to keep sales order after completely shipped / invoiced in Dynamics BC. How I can achieve this in BC. In older version of NAV we can go in codeunit 80 and update the variable (EverythingInvoiced) but how we can do in BC-16?  Any suggestion?

Thank you