mdmali2 4/29/2019 4:04:28 PM

eConnect Matched Invoice Type with Distribution

Hello All, 

I am working for a client to post the PopEnterMatchInvoiceType but when we post the invoice and line items the Distribution account automatically Populate with the wrong information. Does any one know how this can be avoided and I can provide the correct information? I have CREATEDIST = 0 in my taPopEnterMatchInvHdr and I have supplied the taPopDistrbution_ItemsTaPopDisribution after my line item. However when I post to GP my hard coded data is not considered. It is as follows:

taPopDistribution_ItemsTaPopDistribution purchaseDist = new taPopDistribution_ItemsTaPopDistribution
{
    POPTYPE = 2,
    POPRCTNM = purchaseHd.POPRCTNM,
    ACTNUMST = "01-2085",
    CRDTAMNT = purchaseLn[i].EXTDCOST,
    DISTTYPE = 9,
    VENDORID = purchaseHd.VENDORID
};
purchaseDistItems[i] = purchaseDist;
}

Please let me know what I can do to either get the correct Distribution populated or how to pass the distribution account. 

Thank you!

Version: GP 2013
Section: .NET Development


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3