To illustrate, I'm going to assume that the payment was made to Undeposited Funds, so following this existing example :-
DEPOSIT FROM RECEIVE PAYMENTS MADE TO UNDEPOSITED FUNDS:
The first step is to locate the payment TxnID made to undeposited funds. To do this you run the following query in VB Demo:
SELECT TxnID, CustomerRefFullName, RefNumber, Amount FROM ReceivePaymentToDeposit
The second step is to confirm the exact name of the Bank Account you want to deposit the payment into. To do this you run the following query in VB Demo:
SELECT ListID, Name FROM Account where Name = 'ABC Bank'
Now you're ready to receive the payment made to undeposited funds using the TxnID and Bank Account name found above. To do this you run the following query in VB Demo:
INSERT INTO DepositLine (DepositLinePaymentTxnID, DepositToAccountRefFullName,TxnDate,FQSaveToCache) Values ('EDB-1197676347','ABC Bank',{d'2007-12-15'},0)
I could locate the Check No and even the Invoice No by doing this:
SELECT DepositLine.DepositLineTxnType, ReceivePaymentLine.TxnID, ReceivePaymentLine.RefNumber as CheckNo, ReceivePaymentLine.AppliedToTxnRefNumber as InvoiceNo, ReceivePaymentLine.AppliedToTxnTxnID as InvoiceListID FROM DepositLine, ReceivePaymentLine WHERE DepositLine.DepositLineTxnID = ReceivePaymentLine.TxnID
Please note: If you enconter the error: [QODBC] error : 3180 – There was an error when saving a deposit line. Quickbook error message : The Payment has been changed. (#10053), switch your company file to Single User Mode. This is a "confirmed by Intuit" bug in QuickBooks 2004 through to 2006 and only occurs when you try to do a deposit with the company file in multi-user mode.
|