Table: dbo.Quick_Books_Retrieved_Transaction_Distribution
this table contains information on transaction distributions retrieved from quickbooks for a given ACS client, where the transactions have not yet been imported into the permanent ACS tables for that client. For quickbooks online, the process of importing data has two steps. First, we retrieve the data from a quickbooks online company, and then we import the retrieved data into the permanent ACS tables. We need a means to store off the information after that first step has completed, but before that second step. This table provides the means for us to store information on transaction distributions that have been retrieved from a quickbooks online company, but not yet imported into the permanent tables in ACS for the client. Once the import completes for one client, the records in this table for that one client will be removed.
Columns
Name | Type | Constraints | Description
quick_books_retrieved_transaction_distribution_KEY | int (4) | NOT NULL | the primary Key for this table.
quick_books_retrieved_transaction_KEY | int (4) | NOT NULL | the quickbooks retrieved transaction key of the transaction that this transaction distribution is associated with.
quick_books_retrieved_account_KEY | int (4) | NOT NULL | The gl account key of this transaction distribution.
amount | decimal (9, 2) | NOT NULL | The amount of this transaction distribution.
description | nvarchar (400) | NOT NULL | a description of this transaction distribution.

Primary key
Name | Columns | Description
PK_Quick_Books_Retrieved_Transaction_Distribution | quick_books_retrieved_transaction_distribution_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_Quick_Books_Retrieved_Transaction_Distribution__Quick_Books_Retrieved_Transaction__quick_books_retrieved_transaction_KEY | quick_books_retrieved_transaction_KEY | Quick_Books_Retrieved_Transaction (quick_books_retrieved_transaction_KEY) |
FK_Quick_Books_Retrieved_Transaction_Distribution__Quick_Books_Retrieved_Account__quick_books_retrieved_account_KEY | quick_books_retrieved_account_KEY | Quick_Books_Retrieved_Account (quick_books_retrieved_account_KEY) |