-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path14-create-an-abor-configuration.sql
45 lines (32 loc) · 1.23 KB
/
14-create-an-abor-configuration.sql
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
/*
----------------------------
Create an ABOR configuration
----------------------------
In this snippet we create an ABOR Configurtion.
For more details on LUSID providers, see this page:
https://support.lusid.com/knowledgebase/category/?id=CAT-01099
Prerequisite setup steps:
1. Setup Chart of Accounts referenced below
2. Setup a Posting Module wuth the scope/code referenced below
3. Setup the recipe referenced below
*/
@@scope = select 'luminesce-examples';
@@chartOfAccountsCode = select 'standardChartOfAccounts';
@@code = select 'standardAborConfiguration';
@@writeAction = select 'Insert';
@@PostingModuleCodes = select 'standardPostingModule';
-- Step 1: Create an ABOR configuration
@aborConfigurationForUpload = select
@@code as AborConfigurationCode,
@@scope as AborConfigurationScope,
@@code as Description,
@@chartOfAccountsCode as ChartOfAccountsCode,
@@scope as ChartOfAccountsScope,
@@PostingModuleCodes as PostingModuleCodes,
@@code as DisplayName,
@@scope as RecipeScope,
'marketValue' as RecipeCode,
@@writeAction as WriteAction;
-- Step 2: Load ABOR configurtion into LUSID
select * from Lusid.AborConfiguration.Writer
where ToWrite = @aborConfigurationForUpload;