{"id":73924,"date":"2023-08-10T14:26:38","date_gmt":"2023-08-10T17:26:38","guid":{"rendered":"https:\/\/datacaixa.com.br\/?post_type=kb&p=73924"},"modified":"2023-09-08T14:18:59","modified_gmt":"2023-09-08T17:18:59","slug":"integer-overflow-vendas_itens_buo","status":"publish","type":"kb","link":"https:\/\/datacaixa.com.br\/ajuda\/pdv\/pdv-problemas-solucoes\/integer-overflow-vendas_itens_buo\/","title":{"rendered":"Integer Overflow – VENDAS_ITENS_BUO"},"content":{"rendered":"\n

Mensagem<\/strong>: [FireDAC][Phys][FB] Integer overflow. The result of an integer operation caused the most significant bit of the result to carry. At trigger ‘VENDAS_ITENS_BUO’.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Solu\u00e7\u00e3o<\/strong>: Para seguran\u00e7a do banco de dados, feche o Sistema e realize um backup da pasta Datacaixa > BD<\/strong>.<\/p>\n\n\n\n

1-<\/strong> Realize a conex\u00e3o com o BANCO.FBD<\/strong> dentro da pasta Datacaixa<\/strong> > BD<\/strong> no IBExpert<\/strong>. Clique Aqui!<\/a><\/strong> para verificar como fazer a conex\u00e3o.<\/p>\n\n\n\n

2-<\/strong> Clique em Tools<\/strong> > SQL Editor (F12)<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

3-<\/strong> Execute o script pressionando o bot\u00e3o verde<\/strong> com s\u00edmbolo Play. <\/p>\n\n\n

\n
\n <\/i>\n <\/div>\n
\n select
id_venda_item, quantidade, valor_unitario, valor_total, valor_desconto,
valor_acrescimo, valor_total_geral, valor_total_liquido
from vendas_itens
where (1=0)
or (quantidade < -99999) or (quantidade > 99999)
or (valor_unitario < -99999) or (valor_unitario > 99999)
or (valor_total < -99999) or (valor_total > 99999)
or (valor_desconto < -99999) or (valor_desconto > 99999)
or (valor_acrescimo < -99999) or (valor_acrescimo > 99999)
or (valor_total_geral < -99999) or (valor_total_geral > 99999)
or (valor_total_liquido < -99999) or (valor_total_liquido > 99999) <\/div>\n <\/div>\n <\/div>\n\n\n
\"\"<\/figure>\n\n\n\n

4-<\/strong> Remova os itens clicando no bot\u00e3o –<\/strong> como indicado na imagem abaixo em Results<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

5-<\/strong> Clique no bot\u00e3o V<\/strong> como indicado na imagem abaixo para salvar as altera\u00e7\u00f5es.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Pronto! Ap\u00f3s realizado este processo conseguir\u00e1 abrir o Sistema novamente.<\/p>\n","protected":false},"excerpt":{"rendered":"

Mensagem: [FireDAC][Phys][FB] Integer overflow. The result of an integer operation caused the most significant bit of the result to carry. At trigger ‘VENDAS_ITENS_BUO’. Solu\u00e7\u00e3o: Para seguran\u00e7a do banco de dados, feche o Sistema e realize um backup da pasta Datacaixa > BD. 1- Realize a conex\u00e3o com o BANCO.FBD dentro da pasta Datacaixa > BD… <\/p>\n

Ler mais…Integer Overflow – VENDAS_ITENS_BUO<\/span><\/a><\/div>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"_ti_tpc_template_sync":false,"_ti_tpc_template_id":"","footnotes":""},"kbtopic":[66],"kbtag":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kb\/73924"}],"collection":[{"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/comments?post=73924"}],"version-history":[{"count":4,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kb\/73924\/revisions"}],"predecessor-version":[{"id":74745,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kb\/73924\/revisions\/74745"}],"wp:attachment":[{"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/media?parent=73924"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kbtopic?post=73924"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/datacaixa.com.br\/wp-json\/wp\/v2\/kbtag?post=73924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}