Refactoring the C/AL Code
When we discuss the methodology for refactoring, we need to focus on two areas. The first focus is on the data model—the way we store data in tables. The other is business logic—the code that is executed.
When we refactor the application, the restriction is that we do not introduce new functional features. We should focus on optimizing our application. This makes it easier to test the application, since the functional result of our transactions should match the old application.
Combining refactoring and implementing new features is very possible, but this introduces a substantial risk to our project that should be avoided if possible.
There is only a limited set of scenarios where refactoring tables is required to optimize the maintainability of the code without changing the functional application, since the Dynamics NAV user interface is typically bound to the database structure.
We will focus on the scenarios...