1
Answer

How we can get invoice no and receipt no from quick books

Mohan Chandra

Mohan Chandra

7y
338
1
hi, I am working in a application, I need urgent help,
I want to get receipt no and including invoices on that receipt no when i am fetching receive payment from my code.
 
msgSetReq = qbsm.CreateMsgSetRequest("US", 8, 0);                 IReceivePaymentQuery RecPayQuery = msgSetReq.AppendReceivePaymentQueryRq();                   msgSetRes = qbsm.DoRequests(msgSetReq);                   if (msgSetRes != null)                 {                     IResponseList responseList = msgSetRes.ResponseList;                     List<Receipt> LstCustPay = new List<Receipt>();                       for (int i = 0; i < responseList.Count; i++)                     {                         IResponse res = responseList.GetAt(i);                         if (res != null)                         {                             IReceivePaymentRetList RecPayRetList = (IReceivePaymentRetList)res.Detail;                               if (RecPayRetList != null)                             {                                 for (int j = 0; j < RecPayRetList.Count; j++)                                 {                                     IReceivePaymentRet RecPayRet = RecPayRetList.GetAt(j);                                     Receipt Receipt = new Receipt();                                     if (RecPayRet != null)
if (RecPayRet.CustomerRef != null)                                         {                                             if (RecPayRet.CustomerRef.ListID != null)                                             {                                                 Receipt.CustomerCode = RecPayRet.CustomerRef.ListID.GetValue();                                             }                                             if (RecPayRet.CustomerRef.FullName != null)                                             {                                                 Receipt.CustomerName = RecPayRet.CustomerRef.FullName.GetValue();                                             }                                         }                                         else                                         {                                             Receipt.CustomerCode = string.Empty;                                         }
now I want to get receipt no and invoices on that receipt no.
can anyone help me for my problem please.there may be multiple invoices in a receipt no.
please give me a good solution
 
Answers (1)