-
Notifications
You must be signed in to change notification settings - Fork 3
/
dags_config.py
62 lines (57 loc) · 1.68 KB
/
dags_config.py
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
class Config:
ACCOUNTING_BOOKS = {
'primary': 0,
'secondary': 3
}
SUPPORTED_RECORD_TYPES = [
'transaction',
'invoice',
'vendorbill',
'journalentry',
'creditmemo',
'payment',
'customerpayment',
'customer',
'vendor',
'class',
'department',
'subsidiary',
'currency',
]
RECORD_TYPES = [
{
'type': 'transaction',
'search_id': 'customsearch_gl_posting_transactions_india',
'filter': [
['taxline','is','F'],
'AND',
['cogs','is','F'],
'AND',
['posting','is','T'],
'AND',
['accountingbook','anyof', ACCOUNTING_BOOKS['secondary']]
],
'subsearches': [
('transaction', 'customsearch_gl_posting_transactions_india', []),
('vendor', 'customsearch_vendor', []),
('customer', 'customsearch_customer', []),
('class', 'customsearch_class', []),
('department', 'customsearch_department', []),
('subsidiary', 'customsearch_subsidiary', []),
('currency', 'customsearch_currency', []),
]
}
]
S3_CONN_ID = 'minio_conn'
S3_CONFIG = {
'host': 'http://host.docker.internal',
'port': '9000',
}
LANDING_BUCKET = 'finance-data-lake-landing'
LAKE_BUCKET = 'finance-data-lake'
POSTGRES_CONN_ID = 'postgres_localhost'
POSTGRES_CONFIG = {
'host': 'host.docker.internal',
'port': '5432',
'db': 'finance'
}