SELECT substring(fbkl.json_line ->> 'data_emissao_documento', 1, 7) as periodoEmissao, fbkl.json_line ->> 'chave_documento' as chaveDocumento from fiscal_book_keeping_line fbkl where fbkl.book_keeping_id = ? and fbkl.identifier = 'D100' and CAST(fbkl.json_line ->> 'valor_icms' as numeric) > 0 and fbkl.cnpj_raiz = ? order by fbkl.id limit ? |
4
|
34
|
7
|
|
0.00
|