Revision 95196671
Von Jan Büren vor fast 3 Jahren hinzugefügt
sql/Pg-upgrade2/tax_reverse_charge.sql | ||
---|---|---|
1 | 1 |
-- @tag: tax_reverse_charge |
2 | 2 |
-- @description: Reverse Charge für Kreditorenbelege |
3 |
-- @depends: release_3_5_0
|
|
3 |
-- @depends: release_3_6_0
|
|
4 | 4 |
-- @ignore: 0 |
5 | 5 |
|
6 | 6 |
ALTER TABLE tax add column reverse_charge_chart_id integer; |
... | ... | |
99 | 99 |
WHERE defaults.coa='Germany-DATEV-SKR04EU' |
100 | 100 |
); |
101 | 101 |
|
102 |
; |
|
103 | 102 |
-- if not defined |
104 | 103 |
insert into taxkeys(chart_id,tax_id,taxkey_id,startdate) SELECT (SELECT chart_id FROM tax WHERE taxkey = '94'),0,0,'1970-01-01' WHERE NOT EXISTS |
105 | 104 |
(SELECT chart_id from taxkeys where chart_id = ( SELECT chart_id FROM tax WHERE taxkey = '94')); |
Auch abrufbar als: Unified diff
reverse Charge Upgrade Skript. Syntax und Vorgängerversion