generalbots/bottemplates/crm/crm.gbai/crm.gbdialog/pipeline-summary.bas
Rodrigo Rodriguez (Pragmatismo) 037db5c381 feat: Major workspace reorganization and documentation update
- Add comprehensive documentation in botbook/ with 12 chapters
- Add botapp/ Tauri desktop application
- Add botdevice/ IoT device support
- Add botlib/ shared library crate
- Add botmodels/ Python ML models service
- Add botplugin/ browser extension
- Add botserver/ reorganized server code
- Add bottemplates/ bot templates
- Add bottest/ integration tests
- Add botui/ web UI server
- Add CI/CD workflows in .forgejo/workflows/
- Add AGENTS.md and PROD.md documentation
- Add dependency management scripts (DEPENDENCIES.sh/ps1)
- Remove legacy src/ structure and migrations
- Clean up temporary and backup files
2026-04-19 08:14:25 -03:00

21 lines
728 B
QBasic

DESCRIPTION "Exibe resumo do pipeline de vendas: total por estágio, valor, taxa de conversão."
stats = GET "/api/crm/stats"
stages = GET "/api/crm/pipeline"
TALK "📊 **Resumo do Pipeline de Vendas**"
TALK ""
TALK "💰 Valor total no pipeline: R$ " + FORMAT(stats.total_value, "#,##0")
TALK "🏆 Valor ganho: R$ " + FORMAT(stats.won_value, "#,##0")
TALK "📈 Taxa de conversão: " + FORMAT(stats.conversion_rate, "#0.0") + "%"
TALK "📐 Ticket médio: R$ " + FORMAT(stats.avg_deal_size, "#,##0")
TALK ""
IF stats.stages THEN
TALK "**Por estágio:**"
FOR EACH sg IN stats.stages
TALK " " + sg.name + ": " + sg.count + " deals — R$ " + FORMAT(sg.total_value, "#,##0")
NEXT sg
END IF
RETURN stats