Pages

Wednesday, 24 September 2014

Creating A Record in CustTrans Form During An Invoice Process In Sales Order Form

                            Classes------>SalesFormLetter_Invoice------>createCustTrans() Method Will Start the Process.
                            Class--------------->CustVendVoucher------>post()  Method Will Do The Insert....

Another Easiest Way Is Go To Tables---->CustTrans----->insert() method you will Give which field you want to flown from CustTable To CustTrans Table.....

creating the Map:
                          create  new fields in both table CustTable,CustTrans Tables   and then go ------>AOT------>DataDictionary------>Map---->Select the CustTrans--->add fields in custTrans mapping fields....
select Mapping ---->Give Mapped Field property --> to Remarks fields.
Goto Class----->CustVoucher---->In initCustTransTable--->Add code 

custTrans.Remarks = custTable::Find(custTrans.AccountNum).Remarks;

thats it

For Example...
Creating a new field as Remarks in CustTable and also same way to create Remark field in CustTrans.I mean customer form - transactions button
when we post sales order invoice, I want customer table remarks to be flown to customer transactions form .....So just go to table custTrans open the insert method  and paste the following code....

this .Remarks = custTable::find(this.OrderAccount).Remarks;

Thats it......

No comments:

Post a Comment