Both sample applications use classes in the Microsoft.Dynamics.GP.eConnect assembly.
The two applications vary in how they use the Microsoft.Dynamics.GP.eConnect classes. If you review the button click event handlers for each application you will note the following differences:
The application uses the GetNextDocNumbers object to retrieve numbers for the other document types it displays. To retrieve these numbers, the application uses the GetNextPMPaymentNumber, GetNextRMNumber, GetNextIVNumber, and GetNextPONumber methods.