Getting ready

We will continue to build on the alExtensibleAppProject project that we started in this chapter. You can download it from the GitHub link at the start of this chapter.

The scenario that we'll handle in this recipe is as follows:

  • Currently, we have duplicate functions in the Copy Transaction routine:
    • CopyFromPostedTransaction()
    • CopyFromTransaction()
  • Both functions create a new Transaction Entry record with the only difference being the source table (open versus posted).

We want to clean up this routine to eliminate the duplicate code so that we have a single point of entry into the Copy Transaction routine. This will make the routine easier to read and maintain.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.187.19