Table: dbo.Spreadsheet_Import_Payment_Term
Table to store the mapping data information of payment terms for spreadsheet import.
Columns
Name | Type | Constraints | Description
spreadsheet_import_payment_term_KEY | int (4) | NOT NULL | Key which uniquely identify each row of the table.
client_KEY | int (4) | NOT NULL | Client key for which we are importing the spreadsheet data.
id | nvarchar (318) | NOT NULL | External id which is used to match to an existing payment term id, else to a payment term description when trying to find a match
is_interim_data | bit (1) | NOT NULL | When the user cancels the import process,the data mapped till that point has to be saved and presented to the user when he starts the import next time.For such mapping data we set the value of this column to true.
payment_term_KEY | int (4) |  | payment_term_KEY of Payment_Term table to which the payment term description in the spreadsheet is mapped to,a null value indicates that it was mapped as Do not import.

Primary key
Name | Columns | Description
PK_Spreadsheet_Import_Payment_Term | spreadsheet_import_payment_term_KEY |
Unique constraints
Name | Columns | Description
UK_Spreadsheet_Import_Payment_Term$client_KEY$id | client_KEY, id |

Foreign keys
Name | Columns | Referenced table | Description
FK_Spreadsheet_Import_Payment_Term__Client__client_KEY | client_KEY | Client (client_KEY) |
FK_Spreadsheet_Import_Payment_Term__Payment_Term__payment_term_KEY | payment_term_KEY | Payment_Term (payment_term_KEY) |