Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Applying payment to more than one invoiceSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Applying payment to more than one invoice 
 Author   Message 
  Joanna 
  
 Group: Members 
 Posts: 25 
 Joined: 2006-12-07 
 Profile
 Posted : 2006-12-16 09:04:07

How do I apply one payment to more than one invoice?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-16 10:12:02

We can create a payment with multiple lines for multipe invoices by using multiple INSERT commands (with the FQSaveToCache caching flag set true '1' except for the last insert where it is false '0') like this:

INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, TotalAmount,
AppliedToTxnTxnID, AppliedToTxnPaymentAmount, TxnDate, Memo, FQSaveToCache
Values ('AC0000-1197757899', '80000-933270541', 200.00, 'EEC-1197680711', 80.00,
{d'2007-12-15'}, 'Payment for Invoice #1000 & 1002', 1)

INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, TotalAmount,
AppliedToTxnTxnID, AppliedToTxnPaymentAmount, TxnDate, Memo, FQSaveToCache
Values ('AC0000-1197757899', '80000-933270541', 200.00, 'EFB-1197675550', 120.00,
{d'2007-12-15'}, 'Payment for Invoice #1001 & 1002', 0)

You will need to locate the TxnID of each of the invoices for payment. See: How do I create a new Customer, invoice them and mark the invoice as paid? for more details.

 

  Top 
  Joanna 
  
 Group: Members 
 Posts: 25 
 Joined: 2006-12-07 
 Profile
 Posted : 2006-12-16 10:32:40
Thank you, that was very helpful! 

  Top 
  Joanna 
  
 Group: Members 
 Posts: 25 
 Joined: 2006-12-07 
 Profile
 Posted : 2006-12-20 08:12:42
Is this also true for inserting records into DepositLine? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-20 08:26:46
Yes, the FQSaveToCache multi-line transaction technique applies to all tranactions in QODBC. See: How do I write Deposits using QODBC? for more on using DepositLine. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to