I am using QB 12 and I use RSS Bus to integrate quickbooks with my project.
While inserting BillPaymentCheck
I am getting error as QBXML Version not supported.
If you look at this link, it says QBXML version 6 or higher is supported.
I changed the version to 6, but that did not work.
Below is my code for more details:
foreach (DAL.ACHTransaction dalTransaction in lstTransactions)
{
string PayeeId = dbCntxt.TechnicianBillingRecords.Where(c => c.BillId == dalTransaction.BillId).FirstOrDefault().TechnicianBilling.TechnicianTripDetail.Technician.QBId;
QuickBooks qbCntxt = new QuickBooks();
Bill qbBill = qbCntxt.Bills.Where(c => c.ID == dalTransaction.BillId).FirstOrDefault();
BillPaymentCheck billCheck = new BillPaymentCheck();
string bankAccntId = dbCntxt.Configurations.Where(c => c.ConfigKey == "BankId").FirstOrDefault().ConfigValues;
billCheck.Amount = dalTransaction.Amount;
billCheck.PayeeId = PayeeId;
billCheck.ReferenceNumber = "ACH";
billCheck.BankAccountId = bankAccntId;
string appliedTo = "<BillPaymentChecksAppliedTo><Row><AppliedToRefId>" + dalTransaction.BillId + "</AppliedToRefId><AppliedToAmount>" + dalTransaction.Amount.ToString() + "</AppliedToAmount></Row></BillPaymentChecksAppliedTo>";
billCheck.AppliedToAggregate = appliedTo;
qbCntxt.AddToBillPaymentChecks(billCheck);
qbBill.IsPaid = 1;
qbCntxt.SaveChanges();
dalTransaction.IsProccessedInQB = true;
dbCntxt.SaveChanges();
}
Can anyone help me with this.
Thanks, Dhaval Shukla