-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fivetran/sales_receipt_var
Sales receipt var
- Loading branch information
Showing
53 changed files
with
633 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
index,purchase_order_id,_fivetran_synced,bill_id,purchase_id,vendor_credit_id | ||
0,22302,2020-01-28 22:40:07,22433,, | ||
0,14423,2020-01-15 0:03:46,,16091, | ||
0,14432,2020-01-15 0:03:46,,16091, | ||
0,14435,2020-01-15 0:03:46,,16091, | ||
0,14431,2020-01-15 0:03:46,,16091, | ||
0,14433,2020-01-15 0:03:46,,16091, | ||
0,14448,2020-01-15 0:03:46,,16091, | ||
0,14452,2020-01-15 0:03:46,,16091, | ||
0,14421,2020-01-15 0:03:46,,16091, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% macro get_purchase_order_columns() %} | ||
|
||
{% set columns = [ | ||
{"name": "_fivetran_deleted", "datatype": "boolean"}, | ||
{"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "class_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "created_at", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "currency_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "custom_customer_type", "datatype": dbt_utils.type_string()}, | ||
{"name": "custom_po_number", "datatype": dbt_utils.type_string()}, | ||
{"name": "doc_number", "datatype": dbt_utils.type_string()}, | ||
{"name": "due_date", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "exchange_rate", "datatype": dbt_utils.type_float()}, | ||
{"name": "global_tax_calculation", "datatype": dbt_utils.type_string()}, | ||
{"name": "id", "datatype": dbt_utils.type_int()}, | ||
{"name": "memo", "datatype": dbt_utils.type_string()}, | ||
{"name": "payable_account_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "private_note", "datatype": dbt_utils.type_string()}, | ||
{"name": "sales_term_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "shipping_address_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "status", "datatype": dbt_utils.type_string()}, | ||
{"name": "sync_token", "datatype": dbt_utils.type_string()}, | ||
{"name": "tax_code_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "total_amount", "datatype": dbt_utils.type_float()}, | ||
{"name": "total_tax", "datatype": dbt_utils.type_float()}, | ||
{"name": "transaction_date", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "updated_at", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "vendor_address_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "vendor_id", "datatype": dbt_utils.type_int()} | ||
] %} | ||
|
||
{{ return(columns) }} | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% macro get_purchase_order_line_columns() %} | ||
|
||
{% set columns = [ | ||
{"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "account_expense_account_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "account_expense_billable_status", "datatype": dbt_utils.type_string()}, | ||
{"name": "account_expense_class_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "account_expense_customer_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "account_expense_tax_amount", "datatype": dbt_utils.type_float()}, | ||
{"name": "account_expense_tax_code_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "amount", "datatype": dbt_utils.type_float()}, | ||
{"name": "description", "datatype": dbt_utils.type_string()}, | ||
{"name": "index", "datatype": dbt_utils.type_int()}, | ||
{"name": "item_expense_billable_status", "datatype": dbt_utils.type_string()}, | ||
{"name": "item_expense_class_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "item_expense_customer_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "item_expense_item_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "item_expense_quantity", "datatype": dbt_utils.type_float()}, | ||
{"name": "item_expense_tax_code_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "item_expense_unit_price", "datatype": dbt_utils.type_float()}, | ||
{"name": "purchase_order_id", "datatype": dbt_utils.type_int()} | ||
] %} | ||
|
||
{{ return(columns) }} | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% macro get_purchase_order_linked_txn_columns() %} | ||
|
||
{% set columns = [ | ||
{"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, | ||
{"name": "bill_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "index", "datatype": dbt_utils.type_int()}, | ||
{"name": "purchase_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "purchase_order_id", "datatype": dbt_utils.type_int()}, | ||
{"name": "vendor_credit_id", "datatype": dbt_utils.type_int()} | ||
] %} | ||
|
||
{{ return(columns) }} | ||
|
||
{% endmacro %} |
Oops, something went wrong.