-
Notifications
You must be signed in to change notification settings - Fork 20
/
stg_quickbooks.yml
1351 lines (1311 loc) · 59 KB
/
stg_quickbooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
version: 2
models:
- name: stg_quickbooks__account
description: "{{ doc('account_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- account_id
- source_relation
columns:
- name: account_id
description: Unique identifier for an account.
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_number
description: User-defined account number intended to identify the account within the Chart of Accounts.
- name: is_sub_account
description: Specifies whether this object represents a parent (false) or a sub_account (true).
- name: parent_account_id
description: User entered description for the account.
- name: name
description: User recognizable name for the Account.
- name: account_type
description: A detailed account classification that specifies the use of this account. The type is based on the Classification.
- name: is_active
description: Boolean indicating whether an account is currently active.
- name: account_sub_type
description: The account sub-type classification and is based on the AccountType value.
- name: classification
description: The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.
tests:
- accepted_values:
values: ['Asset', 'Equity', 'Expense', 'Liability', 'Revenue']
- name: created_at
description: Timestamp of the date the account was created.
- name: currency_id
description: Reference to the currency which the account records the balance in.
- name: description
description: Description of the account.
- name: fully_qualified_name
description: Full name of the account.
- name: balance
description: Specifies the balance amount for the current Account.
- name: balance_with_sub_accounts
description: Specifies the balance amount for the current Account sub accounts.
- name: updated_at
description: Timestamp of the date which the account was last updated.
- name: stg_quickbooks__address
description: "{{ doc('address_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- address_id
- source_relation
columns:
- name: address_id
description: Unique identifier for an address.
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: city
description: The city which the address is located.
- name: country
description: The country which the address is located.
- name: address_1
description: The address_line_1 associated with the address.
- name: address_2
description: The address_line_2 associated with the address (if applicable).
- name: postal_code
description: The postal code which the address is located.
- name: stg_quickbooks__bill_line
description: "{{ doc('bill_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- bill_id
- index
- source_relation
columns:
- name: bill_id
description: "The {{ doc('id') }} parent bill record."
tests:
- not_null
- name: index
description: Bill line index in reference to the parent bill.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_expense_class_id
description: The class reference associated with the account based expense bill line.
- name: account_expense_customer_id
description: The customer reference associated with the account based expense bill line.
- name: item_expense_item_id
description: The item reference associated with the item based expense bill line.
- name: item_expense_customer_id
description: The customer reference associated with the item based expense bill line.
- name: item_expense_billable_status
description: The billable status of the item based expense bill line.
- name: item_expense_class_id
description: The class reference associated with the item based expense bill line.
- name: account_expense_account_id
description: The id of the account being expensed from the bill.
- name: account_expense_billable_status
description: The status of the bill line item expense.
- name: account_expense_tax_code_id
description: The tax code id associated with the bill.
- name: amount
description: Monetary amount of the bill line item.
- name: description
description: Description of the bill line item.
- name: stg_quickbooks__bill_linked_txn
description: "{{ doc('bill_linked_txn_table') }}"
columns:
- name: bill_id
description: "The {{ doc('id') }} bill record."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: index
description: Index count of records from a single bill record associated with payment ids.
- name: bill_payment_id
description: "The {{ doc('id') }} bill payment id record."
- name: stg_quickbooks__bill_payment_line
description: "{{ doc('bill_payment_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- bill_payment_id
- index
- source_relation
columns:
- name: bill_payment_id
description: "The {{ doc('id') }} bill payment record."
tests:
- not_null
- name: index
description: Index count of payments associated with the parent bill payment record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: amount
description: Monetary amount of the bill payment.
- name: bill_id
description: "{{ doc('id') }} bill record associated with the bill payment."
- name: deposit_id
description: "{{ doc('id') }} deposit record associated with the bill payment."
- name: expense_id
description: "{{ doc('id') }} purchase record associated with the bill payment."
- name: linked_bill_payment_id
description: "{{ doc('id') }} bill record associated with the bill payment."
- name: vendor_credit_id
description: "{{ doc('id') }} vendor_credit record associated with the bill payment."
- name: journal_entry_id
description: "{{ doc('id') }} journal entry record associated with the bill payment."
- name: stg_quickbooks__bill_payment
description: "{{ doc('bill_payment_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- bill_payment_id
- source_relation
columns:
- name: bill_payment_id
description: "{{ doc('id') }} bill payment."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: check_bank_account_id
description: Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.
- name: check_print_status
description: Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.
- name: credit_card_account_id
description: Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: department_id
description: Reference to a Department object specifying the location of the transaction.
- name: pay_type
description: The payment type. Valid values include Check, CreditCard
- name: total_amount
description: Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.
- name: transaction_date
description: Date of the day the transaction took place.
- name: vendor_id
description: Reference to the vendor for this transaction.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__bill
description: "{{ doc('bill_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- bill_id
- source_relation
columns:
- name: bill_id
description: "{{ doc('id') }} bill record."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: balance
description: The balance reflecting any payments made against the transaction.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: department_id
description: Reference to the department the bill is linked with.
- name: total_amount
description: Total monetary amount of all bill line items.
- name: doc_number
description: Reference number for the transaction.
- name: vendor_id
description: Reference to the vendor the bill is linked with.
- name: due_date_at
description: Date which the bill is due.
- name: transaction_date
description: Date when the bill transaction occurred.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: payable_account_id
description: Account id of the account which the bill is credited.
- name: private_note
description: User entered, organization-private note about the transaction.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__bundle_item
description: "{{ doc('bundle_item_table') }}"
columns:
- name: bundle_id
description: Reference to the bundle table.
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: item_id
description: Reference to the item which the bundle is mapped.
- name: item_quantity
description: Total item quantity associated with the bunlde and item mapping.
- name: stg_quickbooks__bundle
description: "{{ doc('bundle_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- bundle_id
- source_relation
columns:
- name: bundle_id
description: "{{ doc('id') }} bundle."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: created_at
description: Timestamp of the date which the bundle was created.
- name: is_active
description: Boolean indicating whether the bundle is active.
- name: fully_qualified_name
description: Full name given to the bundle.
- name: updated_at
description: Timestamp of the date when the bundle was last updated.
- name: stg_quickbooks__credit_card_payment_txn
description: "{{ doc('credit_card_payment_txn_table') }}"
columns:
- name: credit_card_payment_id
description: "{{ doc('id') }} credit card payment transaction."
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: amount
description: Total amount of money applied to the credit card payment transaction.
- name: bank_account_id
description: Reference to the bank account which the credit card payment is debited towards.
- name: credit_card_account_id
description: Reference to the credit card account which the credit card payment is credited towards.
- name: created_at
description: Timestamp when the credit card payment was created.
- name: updated_at
description: Timestamp when the credit card payment was last updated.
- name: currency_id
description: Reference to the currency used for the credit card payment.
- name: transaction_date
description: Date the credit card payment transaction took place.
- name: _fivetran_deleted
description: Boolean indicating if the credit card payment was deleted.
- name: is_most_recent_record
description: Boolean indicating if the record is the most recent updated version of the credit card payment transaction.
- name: stg_quickbooks__credit_memo_line
description: "{{ doc('credit_memo_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- credit_memo_id
- index
- source_relation
columns:
- name: credit_memo_id
description: "{{ doc('id') }} credit memo record."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: index
description: Index count of records from a credit memo record.
- name: amount
description: Monetary amount of the credit memo line.
- name: sales_item_account_id
description: "{{ doc('account_id') }} with the credited refund."
- name: sales_item_class_id
description: "{{ doc('class_id') }} with the refunded item."
- name: sales_item_item_id
description: "{{ doc('item_id') }} with the refunded item."
- name: sales_item_quantity
description: Quantity of item related to the credit memo line.
- name: sales_item_unit_price
description: Unit price of the item related to the credit memo line.
- name: discount_account_id
description: "{{ doc('account_id') }} with the income account used to track discounts."
- name: discount_class_id
description: "{{ doc('class_id') }} with the discount of the refunded item."
- name: description
description: Description of the credit memo line.
- name: stg_quickbooks__credit_memo
description: "{{ doc('credit_memo_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- credit_memo_id
- source_relation
columns:
- name: credit_memo_id
description: Unique identifier for a credit memo.
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: balance
description: The balance reflecting any payments made against the transaction.
- name: total_amount
description: Indicates the total amount of the transaction.
- name: doc_number
description: Reference number for the transaction.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: class_id
description: Reference to the class associated with the credit memo.
- name: department_id
description: Reference to the department associated with the credit memo.
- name: customer_id
description: Reference to the customer associated with the credit memo.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: transaction_date
description: Date when the credit memo occurred.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__customer
description: "{{ doc('customer_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- customer_id
- source_relation
columns:
- name: customer_id
description: "{{ doc('id') }} customer."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: is_active
description: Boolean indicating whether it is currently enabled for use by QuickBooks.
- name: balance
description: Specifies the open balance amount or the amount unpaid by the customer.
- name: balance_with_jobs
description: Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.
- name: bill_with_parent
description: Boolean indicating whether this Customer object is billed with its parent.
- name: company_name
description: Full name of the company.
- name: fully_qualified_name
description: Fully qualified name of the company.
- name: currency_id
description: Reference to the currency in which all amounts associated with this customer are expressed.
- name: display_name
description: Name of the customer which is displayed.
- name: website
description: Website url associated with the vendor.
- name: taxable
description: Boolean indicating whether the customer is taxable.
- name: stg_quickbooks__department
description: "{{ doc('department_table') }}"
columns:
- name: department_id
description: "{{ doc('id') }} department."
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: is_active
description: Boolean indicating whether the department is currently active.
- name: created_at
description: Timestamp of the date when the department was created.
- name: updated_at
description: Timestamp of the date when the department was last updated.
- name: fully_qualified_name
description: Fully qualified name of the department.
- name: name
description: Name of the department.
- name: is_sub_department
description: Boolean indicating whether the department is a sub department.
- name: parent_department_id
description: "Reference to the {{ doc('id') }} parent department if is_sub_department = true."
- name: stg_quickbooks__deposit_line
description: "{{ doc('deposit_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- deposit_id
- index
- source_relation
columns:
- name: deposit_id
description: "{{ doc('id') }} deposit record."
tests:
- not_null
- name: index
description: Index count of records associated with the deposit record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: amount
description: Monetary amount of the deposit line record.
- name: description
description: Description of the deposit line record.
- name: deposit_class_id
description: Reference to the class which the deposit line record is associated with.
- name: deposit_account_id
description: Account id of the account which the deposit is credited.
- name: deposit_customer_id
description: Customer id of the customer which the deposit is credited.
- name: stg_quickbooks__deposit
description: "{{ doc('deposit_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- deposit_id
- source_relation
columns:
- name: deposit_id
description: "{{ doc('id') }} deposit."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_id
description: Identifies the account to be used for this deposit.
- name: created_at
description: Timestamp of the date which the deposit was created.
- name: department_id
description: Reference to the department associated with the deposit line.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: total_amount
description: Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.
- name: transaction_date
description: Date which the deposit transaction occurred.
- name: transaction_status
description: Status of the deposit transaction.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__estimate
description: "{{ doc('estimate_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- estimate_id
- source_relation
columns:
- name: estimate_id
description: "{{ doc('id') }} estimate."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: class_id
description: Reference to the class associated with the estimate record.
- name: created_at
description: Timestamp of the date when the estimate was created.
- name: currency_id
description: Reference to the currency which the estimate was provided.
- name: customer_id
description: Reference to the customer associated with the estimate.
- name: department_id
description: Reference to the department associated with the estimate.
- name: due_date
description: Date which the estimate is due.
- name: total_amount
description: Total amount of all line items included in the estimate.
- name: transaction_date
description: Date which the estimate occurred.
- name: transaction_status
description: Current status of the estimate.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__estimate_line
description: "{{ doc('estimate_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- estimate_id
- index
- source_relation
columns:
- name: estimate_id
description: Reference to the unique estimate record.
tests:
- not_null
- name: index
description: Index count of records associated with the estimate line record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: description
description: Description of the estimate line.
- name: discount_account_id
description: Reference to the account associated with the discount estimate line.
- name: discount_class_id
description: Reference to the class associated with the discount estimate line.
- name: sales_item_account_id
description: Reference to the account associated with the sales estimate line.
- name: sales_item_class_id
description: Reference to the class associated with the sales estimate line.
- name: sales_item_item_id
description: Reference to the item associated with a sales estimate line.
- name: sales_item_quantity
description: Quantity of the item for a sales estimate line.
- name: item_id
description: Reference to the item associated with the estimate line.
- name: quantity
description: Quantity of the item for the estimate line.
- name: account_id
description: Reference to the account associated with the estimate line.
- name: amount
description: Monetary amount of the estimate line.
- name: stg_quickbooks__invoice_linked_txn
description: "{{ doc('invoice_linked_txn_table') }}"
columns:
- name: invoice_id
description: Reference to the unique invoice.
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: payment_id
description: Reference to the respective payment object for the invoice.
- name: estimate_id
description: Reference to the respective estimate object for the invoice.
- name: index
description: Index count of records associated with the invoice mapping record.
- name: stg_quickbooks__invoice_line
description: "{{ doc('invoice_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- invoice_id
- index
- source_relation
columns:
- name: invoice_id
description: "{{ doc('id') }} invoice record."
tests:
- not_null
- name: index
description: Index count of records associated with the invoice record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: amount
description: Monetary amount of the invoice line record.
- name: sales_item_account_id
description: Account reference for an item invoice record.
- name: sales_item_item_id
description: Item reference for an item invoice record.
- name: sales_item_class_id
description: Class reference for an item invoice record.
- name: sales_item_quantity
description: Quantity of the item for an item invoice record.
- name: sales_item_unit_price
description: Unit price of the item for an item invoice record.
- name: discount_account_id
description: Account reference for a discount invoice record.
- name: discount_class_id
description: Class reference for a discount invoice record.
- name: description
description: Description of the invoice line.
- name: bundle_quantity
description: Quantity of items included in the invoice bundle.
- name: bundle_id
description: Reference to the bundle associated with the invoice line.
- name: account_id
description: Reference to the account associated with the invoice line.
- name: item_id
description: Reference to the item associated with the invoice line.
- name: quantity
description: Quantity of the item included on the invoice line.
- name: detail_type
description: Individual line items of a transaction. Valid line types include SalesItemLineDetail, DescriptionOnly (also used for inline Subtotal lines), DiscountLineDetail and SubTotalLineDetail (used for the overall transaction). FYI - Records synced prior to 11/2021 will have a null value.
- name: stg_quickbooks__invoice_line_bundle
description: "{{ doc('invoice_line_bundle_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- invoice_id
- index
- invoice_line_index
- source_relation
columns:
- name: invoice_id
description: "{{ doc('id') }} invoice record."
tests:
- not_null
- name: index
description: Index count of records associated with the invoice bundle line.
- name: invoice_line_index
description: Invoice index count of records associated with the invoice bundle line.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: class_id
description: Reference to the class associated with the invoice line bundle.
- name: description
description: Description of the invoice bundle line.
- name: amount
description: Total monetary value of the invoice bundle line.
- name: sales_item_item_id
description: Reference to the sales item on the invoice bundle line.
- name: item_id
description: Reference to the item on the invoice bundle line.
- name: quantity
description: Total quantity of the item on the invoice bundle line.
- name: sales_item_quantity
description: Total quantity in relation to the sales item on the invoice bundle line.
- name: account_id
description: Reference to the account associated with the invoice bundle line.
- name: unit_price
description: Unit price of the line item included on the invoice bundle line.
- name: stg_quickbooks__invoice
description: "{{ doc('invoice_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- invoice_id
- source_relation
columns:
- name: invoice_id
description: "{{ doc('id') }} invoice."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: balance
description: The balance reflecting any payments made against the transaction.
- name: total_amount
description: Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.
- name: doc_number
description: Reference number for the transaction.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: department_id
description: Reference to the department associated with the invoice.
- name: deposit_to_account_id
description: Identifies the account to be used for this invoice.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: transaction_date
description: Date which the deposit transaction occurred.
- name: customer_id
description: Customer reference is associated with the invoice.
- name: billing_address_id
description: Reference to the address where the invoice is billed.
- name: shipping_address_id
description: Reference to the address where the invoice is to be shipped.
- name: delivery_type
description: How the invoice is delivered to the customer.
- name: due_date
description: Date which the invoice payment is due.
- name: class_id
description: Reference to the class to which the invoice is associated with.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__item
description: "{{ doc('item_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- item_id
- source_relation
columns:
- name: item_id
description: "{{ doc('id') }} item."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: is_active
description: Boolean indicating whether the object is currently enabled for use by QuickBooks.
- name: created_at
description: Timestamp of the date when the item was created within QuickBooks.
- name: income_account_id
description: Reference to the posting account, that is, the account that records the proceeds from the sale of this item.
- name: asset_account_id
description: Reference to the Inventory Asset account that tracks the current value of the inventory.
- name: expense_account_id
description: Reference to the expense account used to pay the vendor for this item.
- name: name
description: Full name of the item.
- name: inventory_start_date
description: Timestamp of the date the item was started as inventory.
- name: parent_item_id
description: Reference to the parent item.
- name: purchase_cost
description: Amount paid when buying or ordering the item, as expressed in the home currency.
- name: taxable
description: Boolean indicating whether the item is taxable.
- name: type
description: Classification that specifies the use of this item.
- name: unit_price
description: The monetary value of the service or product, as expressed in the home currency.
- name: stg_quickbooks__journal_entry_line
description: "{{ doc('journal_entry_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- journal_entry_id
- index
- source_relation
columns:
- name: journal_entry_id
description: "{{ doc('id') }} journal entry record."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: index
description: Index count of records associated with the journal entry record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_id
description: Account id of the account which the journal entry is credited.
- name: amount
description: Monetary amount of the journal entry line.
- name: customer_id
description: Customer id of the customer which the journal entry is credited.
- name: department_id
description: Reference to the department which the journal entry is associated.
- name: class_id
description: Reference to the class which the journal entry is associated.
- name: billable_status
description: Status of the journal entry indicating whether it is billable or not.
- name: description
description: User defined description of the journal entry line.
- name: posting_type
description: Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit
tests:
- accepted_values:
values: ['Credit', 'Debit']
- name: vendor_id
description: Reference to the vendor for this journal entry.
- name: stg_quickbooks__journal_entry
description: "{{ doc('journal_entry_table') }}"
columns:
- name: journal_entry_id
description: "{{ doc('id') }} journal entry."
tests:
- not_null
- name: is_adjustment
description: Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.
- name: created_at
description: Timestamp of the date when the journal entry was created.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: doc_number
description: Reference number for the transaction.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: private_note
description: User entered, organization-private note about the transaction.
- name: total_amount
description: The value of this field will always be set to zero.
- name: transaction_date
description: Date when the journal entry was transacted.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__payment_line
description: "{{ doc('payment_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- payment_id
- index
- source_relation
columns:
- name: payment_id
description: "{{ doc('id') }} payment record."
tests:
- not_null
- name: index
description: Index count of records associated with the payment record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: amount
description: Monetary amount of the payment line.
- name: journal_entry_id
description: Journal entry reference associated with the payment.
- name: deposit_id
description: Deposit reference associated with the payment.
- name: invoice_id
description: Invoice reference associated with the payment.
- name: credit_memo_id
description: credit memo reference associated with the payment.
- name: stg_quickbooks__payment
description: "{{ doc('payment_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- payment_id
- source_relation
columns:
- name: payment_id
description: "{{ doc('id') }} payment."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: unapplied_amount
description: Indicates the amount that has not been applied to pay amounts owed for sales transactions.
- name: total_amount
description: Indicates the total amount of the transaction.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: receivable_account_id
description: Identifies the account for obtaining a receivable from this payment.
- name: deposit_to_account_id
description: Identifies the account to be used for this payment.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: transaction_date
description: Date when the payment occurred.
- name: customer_id
description: Reference to a customer or job.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__purchase_line
description: "{{ doc('purchase_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- purchase_id
- index
- source_relation
columns:
- name: purchase_id
description: "{{ doc('id') }} purchase record."
tests:
- not_null
- name: index
description: Index count of records associated with the purchase record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_expense_account_id
description: Account id of the account which the purchase is credited.
- name: account_expense_class_id
description: The class reference associated with the account based expense purchase line.
- name: account_expense_billable_status
description: Status of the purchase billable.
- name: account_expense_customer_id
description: The customer id associated with the account based expense purchase line
- name: account_expense_tax_code_id
description: Tax code reference associated to the purchase.
- name: item_expense_item_id
description: The item reference associated with the item based expense purchase line.
- name: item_expense_billable_status
description: The billable status of the item based expense purchase line.
- name: item_expense_class_id
description: The class id associated with the item based expense purchase line.
- name: item_expense_customer_id
description: The customer id associated with the item based expense purchase line.
- name: amount
description: Monetary amount of the purchase.
- name: description
description: User defined description of the purchase line.
- name: stg_quickbooks__purchase
description: "{{ doc('purchase_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- purchase_id
- source_relation
columns:
- name: purchase_id
description: "{{ doc('id') }} purchase."
tests:
- not_null
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_id
description: Specifies the account reference to which this purchase is applied based on the PaymentType.
- name: created_at
description: Timestamp of the date when the purchase was created.
- name: doc_number
description: Reference number for the transaction.
- name: currency_id
description: Reference to the currency in which all amounts on the associated transaction are expressed.
- name: exchange_rate
description: The number of home currency units it takes to equal one unit of currency specified by currency_id.
- name: credit
description: Boolean where `false` represents a charge and `true` represents a refund.
- name: department_id
description: Reference to the department which the purchase is associated.
- name: customer_id
description: Reference to the customer which the purchase is associated.
- name: transaction_date
description: Date when the purchase occurred.
- name: total_amount
description: Indicates the total amount of the transaction.
- name: payment_type
description: Payment type of the purchase. Type can be Cash, Check, or CreditCard.
tests:
- accepted_values:
values: ['Cash', 'Check', 'CreditCard']
- name: vendor_id
description: Reference to the vendor for the purchase.
- name: _fivetran_deleted
description: Boolean created by Fivetran to indicate whether the record has been deleted.
- name: stg_quickbooks__purchase_order_line
description: "{{ doc('purchase_order_line_table') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- purchase_order_id
- index
- source_relation
columns:
- name: purchase_order_id
description: "{{ doc('id') }} purchase order record."
tests:
- not_null
- name: index
description: Index count of records associated with the purchase order record.
- name: source_relation
description: "{{ doc('source_relation') }}"
- name: account_expense_account_id
description: Account id of the account which the purchase order is credited.
- name: account_expense_class_id
description: The class reference associated with the account based expense purchase order line.
- name: account_expense_billable_status
description: Status of the purchase billable.
- name: account_expense_customer_id
description: The customer id associated with the account based purchase order line.
- name: account_expense_tax_code_id
description: Tax code reference associated to the purchase order.
- name: item_expense_item_id
description: The item reference associated with the item based expense purchase order line.
- name: item_expense_billable_status
description: The billable status of the item based expense purchase order line.
- name: item_expense_customer_id
description: The customer id associated with the item based purchase order line.
- name: amount
description: Monetary amount of the purchase.
- name: description
description: User defined description of the purchase line.