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 : How can I receive payments or credits against customer invoices?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
 How can I receive payments or credits against customer invoices? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-22 12:47:13

Here is some example code and the setup data required:

CustomerRefListID = '790000-1071511999' (Required)
DepositToAccountRefListID = '80000-933270541' (Undeposited Funds)
TotalAmount = 129.30 (Necessary)
AppliedToTxnTxnID = '4909-1071512260' (Find from Invoice Table)
AppliedToTxnPaymentAmount = 129.30 (Necessary, otherwise the payment in TotalAmount will be unapplied)
AppliedToTxnSetCreditCreditTxnID = '5540-1197772280' (Find from CreditMemo Table)
AppliedToTxnSetCreditAppliedAmount = 10.03
TxnDate = 2007-12-15

TO RECEIVE A PAYMENT
INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, TotalAmount, AppliedToTxnTxnID, AppliedToTxnPaymentAmount, TxnDate, FQSaveToCache) Values ('790000-1071511999', '80000-933270541', 129.30, '4909-1071512260', 129.30, {d'2007-12-15'} ,0)

TO APPLY A CREDIT
INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, TotalAmount, AppliedToTxnTxnID, AppliedToTxnPaymentAmount, AppliedToTxnSetCreditCreditTxnID, AppliedToTxnSetCreditAppliedAmount, TxnDate, FQSaveToCache) Values ('790000-1071511999', '80000-933270541', 129.30, '4909-1071512260', 129.30, '5540-1197772280', 10.03, {d'2007-12-15'}, 0)

See: How do I create a new Customer, invoice them and mark the invoice as paid? for a complete example.

See also: How to I handle Customer credits on account? for more information on the procedure for receiving the payment before the Invoice.

 

  Top 
 New Topic 
 
 Post Reply 

Jump to