Site Search:
Sign in | Join | Help

eConnect Distribution - PMTransactionType - Debit Amount getting doubled.

Last post 06-17-2008 5:27 AM by arvindpnr. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-16-2008 7:51 AM

    eConnect Distribution - PMTransactionType - Debit Amount getting doubled.

    Hi All,

    When am doing an entry for distribution via eConnect code the Debit entry is going as double.

    Code Example:

    PMTransactionType PAInvoiceEntry = new PMTransactionType();

    taPMDistribution_ItemsTaPMDistribution NonPrjDisDebit = new taPMDistribution_ItemsTaPMDistribution();

    taPMDistribution_ItemsTaPMDistribution NonPrjDisCredit = new taPMDistribution_ItemsTaPMDistribution();

    taPMDistribution_ItemsTaPMDistribution[ NonProjDis = new taPMDistribution_ItemsTaPMDistribution[1];

    taPMTransactionInsert PMHeader = new taPMTransactionInsert();

     

    NonPrjDisDebit.DOCTYPE = 1;

    NonPrjDisDebit.VCHRNMBR =
    "10010";

    NonPrjDisDebit.VENDORID = "00011";

    NonPrjDisDebit.DISTTYPE = 6;

    NonPrjDisDebit.ACTNUMST = "39701-50";

    NonPrjDisDebit.DEBITAMT = 70.25m;

    NonProjDis[0] = NonPrjDisDebit;

    PAInvoiceEntry.taPMDistribution_Items = NonProjDis;

     

    PMHeader.DOCTYPE = 1;

    PMHeader.BACHNUMB =
    "eConnect";

    PMHeader.VCHNUMWK = "10010";

    PMHeader.VENDORID = "00011";

    PMHeader.DUEDATE = "06/11/2008";

    PMHeader.DOCNUMBR = "DOCB";

    PMHeader.DOCAMNT = 70.25m;

    PMHeader.PYMTRMID =
    "N30";

    PMHeader.VADDCDPR = "PRIMARY";

    PMHeader.DOCDATE = "06/10/2008";PMHeader.PSTGDATE = "06/10/2008";

    PMHeader.PRCHAMNT = 70.25m;

    PMHeader.CHRGAMNT = 70.25m;

    This code is working fine but only problem is when i check in distribution amount Debit entry is showing as 140.5 $ which id double. what could the reason?

    If anyone has faced the same please reply.

    Thanks

    Arvind 

    • 220.227.66.222
  • 06-16-2008 8:18 AM In reply to

    Re: eConnect Distribution - PMTransactionType - Debit Amount getting doubled.

    two things.

    First, right before you send the transaction to eConnect stop the code and print out the xml document. Be sure that the distributions look OK there. If they do, be sure that the CREATEDIST node is set to 0 in the PMTransaction is set to 0.

     

    • 216.64.79.2
  • 06-17-2008 5:27 AM In reply to

    Re: eConnect Distribution - PMTransactionType - Debit Amount getting doubled.

    Thanks we are able to solve the problem.
    • 220.227.66.222
Page 1 of 1 (3 items)