This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TRUNCATE AccountingBalanceSheetLayoutEnvironment; | |
| INSERT INTO AccountingBalanceSheetLayoutEnvironment(id_balanco_contabil_layout, id_empresa) SELECT | |
| id_balanco_contabil_layout , | |
| c.id_empresa | |
| FROM | |
| AccountingBalanceSheetLayoutMainData a | |
| LEFT JOIN CorporationMainData c ON c.stat <> 0; | |
| TRUNCATE AccountingBalanceSheetLayoutProfile; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE FROM AccountingTransactionDescriptionProfile; | |
| INSERT INTO AccountingTransactionDescriptionProfile (id_descricao_transacao_contabil, id_perfil) SELECT | |
| id_descricao_transacao_contabil, p.id_perfil | |
| FROM | |
| AccountingTransactionDescriptionMainData | |
| LEFT JOIN ProfileMainData p ON 1 = 1 | |
| WHERE | |
| p.id_perfil IN (62 , 146, 120, 117, 114, 98); | |
NewerOlder