Creating an electronic payment format
Electronic payments, in general, can save time and reduce paperwork when making or receiving payments within a company. Dynamics AX provides a number of standard out of the box electronic payment formats. The system also provides an easy way of customizing the existing payment forms or creating new ones.
In this recipe, we will learn how to create a new custom electronic payment format. To demonstrate the principle, we will only output some basic information and will concentrate on the approach itself.
How to do it...
1. In the AOT, create a new class named
VendOutPaymRecord_Test
with the following code:class VendOutPaymRecord_Test extends VendOutPaymRecord { } public void output() { str outRecord; Name companyName; BankAccount bankAccount; outRecord = strRep(' ', 50); companyName = subStr( custVendPaym.receiversCompanyName(), 1, 40); bankAccount = subStr( custVendPaym.receiversBankAccount(), 1, 8); outRecord = strPoke(outRecord, companyName, 1); outRecord...