Can't Determine Vendor Credit |
Author |
Message |
|
Posted : 2008-12-10 04:43:56 |
QuickBooks properly shows a vendor credit applied against a vendor bill. When I look at the Vendor Credit tables through QODBC, some credits are listed and others are not. I cannot determine any reason that ALL of the credits wouldn't be listed. Any suggestions? |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-12-10 09:36:53 |
Try rebuilding your optimized file by running:
Select * from VendorCredit verify |
|
|
|
|
Posted : 2008-12-17 08:20:13 |
All tables are optimized properly. The specific issue is that about 1/3 of my transactions in VendorCredit do not have corresponding records in VendorCreditLinkedTxn. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-12-17 10:13:59 |
Sorry, but I need to explain what do you mean? Please post examples. |
|
|
|
|
Posted : 2008-12-17 11:10:01 |
It is my understanding that if I have a $100 credit that has been applied to four invoices (at $25 each), their would be one entry in the VendorCredit table for $100 and four $25 related entries in the VendorCreditLinkedTxn table with the same TxnID. In my case, I have 152 credits in VendorCredit and only 98 of them have matching transactions. The remaining 55 do not have detail records in VendorCreditLinkedTxn.
Am I misunderstanding the relationship between these two tables or am I missing records for some reason?
Thanks Tom for trying to help,
Louis Block |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-12-17 16:18:09 |
The relationship would be from the VendorCreditExpenseLine and/or VendorCreditItemLine tables and the applied Bills directly. The BillLinkedTxn shows Bills Paid, Re-imbursed Expense Used/Not Used, Checks Used to Pay Bill that are directly tied to the Main Bill Table. |
|
|
|
|
Posted : 2008-12-18 17:06:02 |
I am not looking for the Expense or Item line details but the history which shows which invoice(s) the credit was applied to. My understanding is that the detail should be in VendorCreditLinkedTxn. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-12-19 10:45:10 |
Ok, as far as, "If you have $100 credit that has been applied to four invoices (at $25 each), there would be one entry in the VendorCredit table for $100 and four $25 related entries in the VendorCreditLinkedTxn table with the same TxnID", is concerned, you are correct. I ran this query and got four rows returned, all with different Bills.
SELECT VendorCreditLinkedTxn.TxnID,VendorCreditLinkedTxn.LInkedTxnTxnID, VendorCreditLinkedTxn.LinkedTxnAmount, Bill.AmountDue, Vendor.Contact FROM VendorCreditLinkedTxn, Bill, Vendor where VendorCreditLinkedTxn.LinkedTxnTxnID=Bill.TxnID and VendorCreditLinkedTxn.VendorRefListID=Vendor.ListID and VendorCreditLinkedTxn.VendorRefFullName ='ABC Company'
|
|
|
|
|
Posted : 2008-12-19 15:00:34 |
That's my whole point! A large number of my credits are missing from the VendorCreditLinkedTxn table. I have verified the data as you previously recommended but about 1/3 of my credits are NOT listed in this table. |
|
|
|