Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

New field from VendPaymSchedLine to VendTransOpen

$
0
0

Hello everybody,

We have a particular issue here and we created a new field on VendPaymSchedLine to be filled when the user is creating a Purchase Order.

I need to save this information during PO posting (invoice) on VendTransOpen table.

I changed the Map CUSTVENDTRANSOPEN and included this new field and changed the Class PaymSchedCalc as bellow, but I´m stopped on this point.

Searching on internet I found the class VendVoucher ans its method createTransOpen but I didnt find how to bring data from VendPaymSchedLine at this point.

THanks in advance for any support

if (remainAmountCur || firstTransOpen)
{
custVendTransOpen.AmountCur = Currency::amount(custVendPaymSchedLine.DueAmount * custVendPaymSched.factor(), currencyCode);
custVendTransOpen.PossibleCashDisc = Currency::amount(custVendPaymSchedLine.DiscAmount * custVendPaymSched.factor(), currencyCode);
custVendTransOpen.CashDiscDate = custVendPaymSchedLine.DiscDate;
custVendTransOpen.DueDate = custVendPaymSchedLine.DueDate;
//begin
custVendTransOpen.EPBarCodeInfo_BR = custVendPaymSchedLine.EPBarCodeInfo_BR;
//end


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>