INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1745505519982','3','','7021','2025-04-24','2025-04-26','08:00:00','09:00:00','Pendente','110','110','','-1745505519982','','') - 110; UPDATE agenda_tarefa SET idPrimario = 52547 WHERE idPrimario = -1745505519982 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52547 WHERE tarefa = -1745505519982 - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; statusNaoFinalizado - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1746628994255','3','','843','2025-05-07','2025-05-20','08:00:00','08:00:00','Finalizado','110','110','','-1746628994255','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1746628994255','3','','843','2025-05-07','2025-05-07','','','','','110','32064801','-1746629004566','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1746628994255','3','','843','2025-05-07','2025-05-07','','','','','110','13854801','-1746629044283','','') - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629004566','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1746629044283','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1746628994255','','','') - 110; UPDATE agenda_tarefa SET idPrimario = 52548 WHERE idPrimario = -1746628994255 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52548 WHERE tarefa = -1746628994255 - 110; UPDATE agenda_resposta_formulario SET tarefa = 52549 WHERE tarefa = -1746629004566 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52549 WHERE tarefa = -1746629004566 - 110; UPDATE agenda_resposta_formulario SET tarefa = 52550 WHERE tarefa = -1746629044283 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52550 WHERE tarefa = -1746629044283 - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; sqlCabecalho-> SELECT a.idPrimario, f.descricao, concat(b.supervisor,' - ',g.nome) supervisor, concat(b.vendedor,' - ',h.nome) vendedor, DATE_FORMAT(b.data, '%d/%m/%Y') as data, b.horario_inicial, b.horario_final, b.supervisor, b.vendedor FROM agenda_tarefa a, agenda_tarefa b left join agenda_assunto f on b.assunto = f.id left join vendedor g on b.supervisor = g.id left join vendedor h on b.vendedor = h.id, agenda_resposta_formulario c left join agenda_item d on c.item = d.id left join agenda_grupo e on d.grupo = e.id WHERE a.idPrimario = b.id AND a.id = c.tarefa AND a.idPrimario = '52548' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
1 - 1 - PLANEJAR 6 50.00
2 - 2 - LEITURA DE LOJA 8 50.00
3 - 3 - EXECUTAR 2 0.00
4 - 4 - NEGOCIAR 14 21.43
5 - 5 - ANALISAR 4 0.00
- 110; Respostas->

Questões:

GrupoQuestesQtdPercentual
1 - 1 - PLANEJAR 101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? 2 50.00
1 - 1 - PLANEJAR 302 - 2 - TEM AS PARCIAIS (TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, O QUE FALTA PARA BATER 10KG, TAREFA ANTERIOR, ETC)? 2 100.00
1 - 1 - PLANEJAR 303 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? 2 0.00
2 - 2 - LEITURA DE LOJA 106 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS? 2 100.00
2 - 2 - LEITURA DE LOJA 107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? 2 0.00
2 - 2 - LEITURA DE LOJA 206 - 7 - LOJA TEM PONTO EXTRA? (ILHA/EXPOSITOR/PILHA NA ENTRADA DA LOJA/SACHE NO BALCÃO) 2 100.00
2 - 2 - LEITURA DE LOJA 305 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS(PREÇO E CAMPANHA) OU A FICHA IMPRESSA? 2 0.00
3 - 3 - EXECUTAR 207 - 8 - EXECUTOU NO PONTO DE VENDA (ABASTECEU, COLOCOU MATERIAL, ORGANIZOU, ARRUMOU E/OU COLOCOU PREÇO)? (SE NÃO, CORRIJA PREÇOS DE IMEDIATO) 2 0.00
4 - 4 - NEGOCIAR 109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) 2 50.00
4 - 4 - NEGOCIAR 110 - 15 - APRESENTOU A PAUTA AO CLIENTE (MESMO SENDO FILIAL OU COMPRADOR AUSENTE, APRESENTE AO GESTOR DA LOJA ITENS QUE DESEJA INTRODUZIR)? 2 0.00
4 - 4 - NEGOCIAR 111 - 12 - INICIOU A VENDA POR TOP 20 DO PET ESPECIALIZADO (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE TOP 20)? 2 50.00
4 - 4 - NEGOCIAR 112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? 2 0.00
4 - 4 - NEGOCIAR 114 - 14 - NEGOCIOU A VENDA DE ALGUM ITEM QUE ESTA EM PREMIO/CAMPANHA PARA O VENDEDOR? (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) 2 0.00
4 - 4 - NEGOCIAR 208 - 15 - CONSEGUIU REVERTER OBJEÇÃO(SE NÃO TEVE=RESPOSTA SIM)?SE NÃO CONSEGUIR REVERTER ESTE É UM TEMA PARA ABORDAR NO FEEDBACK, INCLUIR NAS TAREFA/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC SE FOR FILIAL OU COMPRADOR AUSENTE MAR 2 50.00
4 - 4 - NEGOCIAR 210 - 17 - TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!) (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) 2 0.00
5 - 5 - ANALISAR 115 - 18 - AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO? (VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR) 2 0.00
5 - 5 - ANALISAR 117 - 20 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) 2 0.00
- 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; DELETE FROM agenda_tarefa WHERE idPrimario ='52548' - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;