select nota,dav, cod_vendedor, telemarketing, domicílio, - TopicsExpress



          

select nota,dav, cod_vendedor, telemarketing, domicílio, sum(quantidade*valorvenda) as total,sum((quantidade*valorvenda)-devolucao) as liquido,data, sum(quantidade) as itens, rota, status, data_entrega, cartao_nsu, autenticacao, pbm, excluir,id,sum(if(cod_produto=?m.gnProdutoManipulação,1,0)) as manipulacao,prevenda, as mesclar from caixacentral where filial=?m.gnFilial and status = 0 group by nota order by nota
Posted on: Mon, 23 Sep 2013 13:57:33 +0000

Trending Topics



Recently Viewed Topics




© 2015