5
edit csv file - remove 1 line and 3 line
9
delete from chricar_account_move_line_deloitte;
12
insert into ism_konto("MAND","TYP","KONTO")
13
select j."MAND", j."TYP", j."KONTO" from ism_journal j
14
except select k."MAND", k."TYP", k."KONTO" from ism_konto k;
17
insert into chricar_account_move_line_deloitte(account,description,analytic_account,amount,date,symbol,name)
18
select k.code,"TEXT","STELLE",
19
case when j."SH" = 'S' then "BETRAG" else -"BETRAG" end as BETRAG,
20
"DATUM_BU","BUCH","BELEG" from ism_journal j, ism_konto k
21
where k."TYP" = j."TYP"
22
and k."KONTO" = j."KONTO"
23
and k.code is not null
26
case when j."TYP" = 'D' then '200' else '331' end,
28
case when j."SH" = 'S' then "BETRAG" else -"BETRAG" end as BETRAG,
29
"DATUM_BU","BUCH","BELEG"
31
where j."TYP" in ('D','K')