├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ ├── bug.md
│ └── solicita--o-de-feature.md
└── workflows
│ ├── release.yml
│ └── stale.yml
├── .gitignore
├── .htaccess
├── .php-cs-fixer.php
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── Cronjobs no Windows para enviar os e-emails.md
├── Instalacao_xampp_windows.md
├── LICENSE.txt
├── README.md
├── application
├── .env.example
├── .htaccess
├── cache
│ ├── .htaccess
│ └── index.html
├── config
│ ├── autoload.php
│ ├── config.php
│ ├── constants.php
│ ├── database.php
│ ├── doctypes.php
│ ├── email.php
│ ├── foreign_chars.php
│ ├── form_validation.php
│ ├── github_updater.php
│ ├── hooks.php
│ ├── index.html
│ ├── jwt.php
│ ├── migration.php
│ ├── mimes.php
│ ├── payment_gateways.php
│ ├── profiler.php
│ ├── routes.php
│ ├── routes_api.php
│ ├── smileys.php
│ └── user_agents.php
├── controllers
│ ├── Arquivos.php
│ ├── Auditoria.php
│ ├── Clientes.php
│ ├── Cobrancas.php
│ ├── Email.php
│ ├── Financeiro.php
│ ├── Garantias.php
│ ├── Login.php
│ ├── Mapos.php
│ ├── Mine.php
│ ├── Os.php
│ ├── Permissoes.php
│ ├── Produtos.php
│ ├── Relatorios.php
│ ├── Servicos.php
│ ├── Tools.php
│ ├── Usuarios.php
│ ├── Vendas.php
│ ├── api
│ │ ├── index.html
│ │ └── v1
│ │ │ ├── ApiController.php
│ │ │ ├── ClientesController.php
│ │ │ ├── OsController.php
│ │ │ ├── ProdutosController.php
│ │ │ ├── ServicosController.php
│ │ │ ├── UsuariosController.php
│ │ │ ├── client
│ │ │ ├── ClientCobrancasController.php
│ │ │ ├── ClientComprasController.php
│ │ │ ├── ClientLoginController.php
│ │ │ └── ClientOsController.php
│ │ │ └── index.html
│ └── index.html
├── core
│ ├── MY_Controller.php
│ └── index.html
├── database
│ ├── migrations
│ │ ├── 20121031100537_create_base.php
│ │ ├── 20200306012421_add_cep_to_usuarios_table.php
│ │ ├── 20200428012421_add_contato_and_complemento_to_clientes_table.php
│ │ ├── 20200921012421_add_observacoes_to_vendas_table.php
│ │ ├── 20200921012422_add_observacoes_cliente_to_vendas_table.php
│ │ ├── 20200921012423_add_observacoes_to_lancamentos_table.php
│ │ ├── 20201224012424_add_cep_to_emitente_table.php
│ │ ├── 20201230231550_add_controle_cobrancas.php
│ │ ├── 20210105223548_add_cobrancas_cliente.php
│ │ ├── 20210107190526_fix_table_cobrancas.php
│ │ ├── 20210108201419_add_usuarios_lancamentos.php
│ │ ├── 20210110153941_feature_notificawhats.php
│ │ ├── 20210114151942_feature_control_baixaretroativa.php
│ │ ├── 20210114151943_drop_table_pagamento.php
│ │ ├── 20210114151944_add_payment_gateway_to_cobrancas.php
│ │ ├── 20210125023104_controle_editar_os.php
│ │ ├── 20210125151515_add_clientefornecedor.php
│ │ ├── 20210125173737_add_control_datatable.php
│ │ ├── 20210125173738_add_pix_key.php
│ │ ├── 20210125173739_add_os_status_list.php
│ │ ├── 20210125173740_add_aprovado_to_status_list.php
│ │ ├── 20210125173741_asaas_payment_gateway.php
│ │ ├── 20220216173741_upload_image_user.php
│ │ ├── 20220307173741_add_password_client.php
│ │ ├── 20220313023104_controle_editar_vendas.php
│ │ ├── 20220320173741_add_desconto_lancamentos_os_vendas.php
│ │ ├── 20221112173741_add_tipo_desconto_os_vendas.php
│ │ ├── 20221119210810_add_asaas_id_clientes.php
│ │ ├── 20221130180810_add_config_control_print_2ways_os.php
│ │ ├── 20230428110810_alter_charset_configuracoes.php
│ │ └── 20240503170400_add_garantia_status_to_vendas_table.php
│ ├── seeds
│ │ ├── Configuracoes.php
│ │ ├── Permissoes.php
│ │ └── Usuarios.php
│ └── stubs
│ │ ├── migration.stub
│ │ └── seed.stub
├── errors
│ ├── error_404.php
│ ├── error_db.php
│ ├── error_general.php
│ ├── error_php.php
│ └── index.html
├── helpers
│ ├── audit_helper.php
│ ├── captcha_helper.php
│ ├── codegen_helper.php
│ ├── date_helper.php
│ ├── dd_helper.php
│ ├── general_helper.php
│ ├── index.html
│ ├── mpdf_helper.php
│ ├── security_helper.php
│ └── validation_helper.php
├── hooks
│ ├── compress.php
│ ├── index.html
│ └── whoops.php
├── index.html
├── language
│ ├── english
│ │ └── index.html
│ └── pt-br
│ │ ├── .calendar_lang.php.swp
│ │ ├── .date_lang.php.swp
│ │ ├── .db_lang.php.swp
│ │ ├── .email_lang.php.swp
│ │ ├── .form_validation_lang.php.swp
│ │ ├── .ftp_lang.php.swp
│ │ ├── .imglib_lang.php.swp
│ │ ├── .migration_lang.php.swp
│ │ ├── .number_lang.php.swp
│ │ ├── .profiler_lang.php.swp
│ │ ├── .unit_test_lang.php.swp
│ │ ├── .upload_lang.php.swp
│ │ ├── calendar_lang.php
│ │ ├── date_lang.php
│ │ ├── db_lang.php
│ │ ├── email_lang.php
│ │ ├── form_validation_lang.php
│ │ ├── ftp_lang.php
│ │ ├── imglib_lang.php
│ │ ├── index.html
│ │ ├── migration_lang.php
│ │ ├── number_lang.php
│ │ ├── profiler_lang.php
│ │ ├── rest_controller_lang.php
│ │ ├── unit_test_lang.php
│ │ └── upload_lang.php
├── libraries
│ ├── Authorization_Token.php
│ ├── Format.php
│ ├── Gateways
│ │ ├── Asaas.php
│ │ ├── BasePaymentGateway.php
│ │ ├── Contracts
│ │ │ └── PaymentGateway.php
│ │ ├── GerencianetSdk.php
│ │ └── MercadoPago.php
│ ├── Github_updater.php
│ ├── MY_Email.php
│ ├── Permission.php
│ ├── REST_Controller.php
│ ├── Seeder.php
│ ├── Sqltoci.php
│ └── index.html
├── logs
│ └── index.html
├── models
│ ├── Api_model.php
│ ├── Arquivos_model.php
│ ├── Audit_model.php
│ ├── Clientes_model.php
│ ├── Cobrancas_model.php
│ ├── Conecte_model.php
│ ├── Email_model.php
│ ├── Financeiro_model.php
│ ├── Garantias_model.php
│ ├── Mapos_model.php
│ ├── Os_model.php
│ ├── Permissoes_model.php
│ ├── Produtos_model.php
│ ├── Relatorios_model.php
│ ├── ResetSenhas_model.php
│ ├── Servicos_model.php
│ ├── Usuarios_model.php
│ ├── Vendas_model.php
│ └── index.html
├── third_party
│ ├── index.html
│ └── php-jwt
│ │ ├── BeforeValidException.php
│ │ ├── ExpiredException.php
│ │ ├── JWT.php
│ │ ├── SignatureInvalidException.php
│ │ └── index.html
└── views
│ ├── arquivos
│ ├── adicionarArquivo.php
│ ├── arquivos.php
│ └── editarArquivo.php
│ ├── auditoria
│ └── logs.php
│ ├── clientes
│ ├── adicionarCliente.php
│ ├── clientes.php
│ ├── editarCliente.php
│ └── visualizar.php
│ ├── cobrancas
│ ├── cobrancas.php
│ ├── emails
│ │ └── cobranca.php
│ ├── modalGerarPagamento.php
│ └── visualizarCobranca.php
│ ├── conecte
│ ├── adicionarOs.php
│ ├── cadastrar.php
│ ├── cobrancas.php
│ ├── compras.php
│ ├── conta.php
│ ├── detalhes_os.php
│ ├── editar_dados.php
│ ├── emails
│ │ └── clientenovasenha.php
│ ├── imprimirOs.php
│ ├── imprimirVenda.php
│ ├── login.php
│ ├── minha_os.php
│ ├── nova_senha.php
│ ├── os.php
│ ├── painel.php
│ ├── resetar_senha.php
│ ├── template.php
│ ├── token_digita.php
│ ├── visualizar_compra.php
│ └── visualizar_os.php
│ ├── emails
│ └── emails.php
│ ├── errors
│ ├── cli
│ │ ├── error_404.php
│ │ ├── error_db.php
│ │ ├── error_exception.php
│ │ ├── error_general.php
│ │ ├── error_php.php
│ │ └── index.html
│ ├── html
│ │ ├── error_404.php
│ │ ├── error_db.php
│ │ ├── error_exception.php
│ │ ├── error_general.php
│ │ ├── error_php.php
│ │ └── index.html
│ └── index.html
│ ├── financeiro
│ └── lancamentos.php
│ ├── garantias
│ ├── adicionarGarantia.php
│ ├── editarGarantia.php
│ ├── garantias.php
│ ├── imprimirGarantia.php
│ ├── imprimirGarantiaOs.php
│ └── visualizarGarantia.php
│ ├── index.html
│ ├── mapos
│ ├── configurar.php
│ ├── emitente.php
│ ├── login.php
│ ├── minhaConta.php
│ ├── painel.php
│ └── pesquisa.php
│ ├── os
│ ├── adicionarOs.php
│ ├── editarOs.php
│ ├── emails
│ │ ├── clientenovo.php
│ │ ├── clientenovonotifica.php
│ │ └── os.php
│ ├── imprimirOs.php
│ ├── imprimirOsTermica.php
│ ├── os.php
│ └── visualizarOs.php
│ ├── permissoes
│ ├── adicionarPermissao.php
│ ├── editarPermissao.php
│ └── permissoes.php
│ ├── produtos
│ ├── adicionarProduto.php
│ ├── editarProduto.php
│ ├── produtos.php
│ └── visualizarProduto.php
│ ├── relatorios
│ ├── imprimir
│ │ ├── imprimirClientes.php
│ │ ├── imprimirEtiquetas.php
│ │ ├── imprimirFinanceiro.php
│ │ ├── imprimirOs.php
│ │ ├── imprimirProdutos.php
│ │ ├── imprimirSKU.php
│ │ ├── imprimirServicos.php
│ │ ├── imprimirTopo.php
│ │ └── imprimirVendas.php
│ ├── rel_clientes.php
│ ├── rel_financeiro.php
│ ├── rel_os.php
│ ├── rel_os_topo.php
│ ├── rel_produtos.php
│ ├── rel_receitas_brutas_mei.php
│ ├── rel_servicos.php
│ ├── rel_sku.php
│ └── rel_vendas.php
│ ├── servicos
│ ├── adicionarServico.php
│ ├── editarServico.php
│ └── servicos.php
│ ├── tema
│ ├── conteudo.php
│ ├── menu.php
│ ├── rodape.php
│ └── topo.php
│ ├── usuarios
│ ├── adicionarUsuario.php
│ ├── editarUsuario.php
│ └── usuarios.php
│ └── vendas
│ ├── adicionarVenda.php
│ ├── editarVenda.php
│ ├── imprimirVenda.php
│ ├── imprimirVendaOrcamento.php
│ ├── imprimirVendaTermica.php
│ ├── vendas.php
│ └── visualizarVenda.php
├── assets
├── anexos
│ └── index.html
├── arquivos
│ └── index.html
├── css
│ ├── bootstrap-responsive.min.css
│ ├── bootstrap-wysihtml5.css
│ ├── bootstrap.min.css
│ ├── bootstrap5.3.2.min.css
│ ├── colorpicker.css
│ ├── custom.css
│ ├── datepicker.css
│ ├── fullcalendar.css
│ ├── fullcalendar.min.css
│ ├── imprimir.css
│ ├── index.html
│ ├── jquery.gritter.css
│ ├── matrix-login.css
│ ├── matrix-media.css
│ ├── matrix-style.css
│ ├── mpdf-barcode.css
│ ├── particula.css
│ ├── select2.css
│ ├── table-custom.css
│ ├── tema-dark-orange.css
│ ├── tema-dark-violet.css
│ ├── tema-pure-dark.css
│ ├── tema-white-black.css
│ ├── tema-white-green.css
│ ├── tema-white.css
│ ├── tema.css
│ └── uniform.css
├── font-awesome
│ ├── css
│ │ └── font-awesome.css
│ ├── font-ZXX_Noise.otf
│ ├── font-captcha.ttf
│ ├── font-capture.ttf
│ ├── font-karabine.ttf
│ ├── index.html
│ └── webfonts
│ │ ├── fa-brands-400.eot
│ │ ├── fa-brands-400.svg
│ │ ├── fa-brands-400.ttf
│ │ ├── fa-brands-400.woff
│ │ ├── fa-brands-400.woff2
│ │ ├── fa-regular-400.eot
│ │ ├── fa-regular-400.svg
│ │ ├── fa-regular-400.ttf
│ │ ├── fa-regular-400.woff
│ │ ├── fa-regular-400.woff2
│ │ ├── fa-solid-900.eot
│ │ ├── fa-solid-900.svg
│ │ ├── fa-solid-900.ttf
│ │ ├── fa-solid-900.woff
│ │ └── fa-solid-900.woff2
├── img
│ ├── Descr.WD3
│ ├── Padrão.webp
│ ├── User.png
│ ├── ajax-loader.gif
│ ├── alpha.html
│ ├── breadcrumb.png
│ ├── captcha_bg.jpg
│ ├── circle.953c9ca0.svg
│ ├── dashboard-animate.svg
│ ├── demo
│ │ ├── Descr.WD3
│ │ ├── av1.jpg
│ │ ├── av2.jpg
│ │ ├── av3.jpg
│ │ ├── av4.jpg
│ │ ├── av5.jpg
│ │ ├── demo-image1.jpg
│ │ ├── demo-image2.jpg
│ │ ├── demo-image3.jpg
│ │ └── envelope.png
│ ├── eye-off.svg
│ ├── eye.svg
│ ├── favicon.png
│ ├── forms-animate.svg
│ ├── gallery
│ │ ├── Descr.WD3
│ │ ├── imgbox1.jpg
│ │ ├── imgbox2.jpg
│ │ ├── imgbox3.jpg
│ │ ├── imgbox4.jpg
│ │ └── imgbox5.jpg
│ ├── glyphicons-halflings-white.png
│ ├── glyphicons-halflings.html
│ ├── glyphicons-halflings.png
│ ├── gritter.png
│ ├── hue.png
│ ├── icon-file.png
│ ├── index.html
│ ├── larrow.png
│ ├── line.png
│ ├── logo-mapos-branco-laranja-grande.png
│ ├── logo-mapos-branco.png
│ ├── logo-mapos-laranja-grande.png
│ ├── logo-mapos.png
│ ├── logo-two.png
│ ├── logo.png
│ ├── logo_pix.png
│ ├── menu-active.png
│ ├── operating-system-upgrade-animate.svg
│ ├── rarrow.png
│ ├── saturation.png
│ ├── select2.png
│ ├── spinner.gif
│ └── sprite.png
├── js
│ ├── Ffvlo.js
│ ├── bootstrap-colorpicker.js
│ ├── bootstrap-datepicker.js
│ ├── bootstrap-wysihtml5.js
│ ├── bootstrap.min.js
│ ├── clock_time.js
│ ├── csrf.js
│ ├── dashboard.js
│ ├── dataTable_pt-br.json
│ ├── datatables.min.js
│ ├── dayjs.min.js
│ ├── dist
│ │ ├── excanvas.js
│ │ ├── excanvas.min.js
│ │ ├── jquery.jqplot.css
│ │ ├── jquery.jqplot.js
│ │ ├── jquery.jqplot.min.css
│ │ ├── jquery.jqplot.min.js
│ │ ├── jquery.js
│ │ ├── jquery.min.js
│ │ └── plugins
│ │ │ ├── jqplot.BezierCurveRenderer.js
│ │ │ ├── jqplot.BezierCurveRenderer.min.js
│ │ │ ├── jqplot.barRenderer.js
│ │ │ ├── jqplot.barRenderer.min.js
│ │ │ ├── jqplot.blockRenderer.js
│ │ │ ├── jqplot.blockRenderer.min.js
│ │ │ ├── jqplot.bubbleRenderer.js
│ │ │ ├── jqplot.bubbleRenderer.min.js
│ │ │ ├── jqplot.canvasAxisLabelRenderer.js
│ │ │ ├── jqplot.canvasAxisLabelRenderer.min.js
│ │ │ ├── jqplot.canvasAxisTickRenderer.js
│ │ │ ├── jqplot.canvasAxisTickRenderer.min.js
│ │ │ ├── jqplot.canvasOverlay.js
│ │ │ ├── jqplot.canvasOverlay.min.js
│ │ │ ├── jqplot.canvasTextRenderer.js
│ │ │ ├── jqplot.canvasTextRenderer.min.js
│ │ │ ├── jqplot.categoryAxisRenderer.js
│ │ │ ├── jqplot.categoryAxisRenderer.min.js
│ │ │ ├── jqplot.ciParser.js
│ │ │ ├── jqplot.ciParser.min.js
│ │ │ ├── jqplot.cursor.js
│ │ │ ├── jqplot.cursor.min.js
│ │ │ ├── jqplot.dateAxisRenderer.js
│ │ │ ├── jqplot.dateAxisRenderer.min.js
│ │ │ ├── jqplot.donutRenderer.js
│ │ │ ├── jqplot.donutRenderer.min.js
│ │ │ ├── jqplot.dragable.js
│ │ │ ├── jqplot.dragable.min.js
│ │ │ ├── jqplot.enhancedLegendRenderer.js
│ │ │ ├── jqplot.enhancedLegendRenderer.min.js
│ │ │ ├── jqplot.funnelRenderer.js
│ │ │ ├── jqplot.funnelRenderer.min.js
│ │ │ ├── jqplot.highlighter.js
│ │ │ ├── jqplot.highlighter.min.js
│ │ │ ├── jqplot.json2.js
│ │ │ ├── jqplot.json2.min.js
│ │ │ ├── jqplot.logAxisRenderer.js
│ │ │ ├── jqplot.logAxisRenderer.min.js
│ │ │ ├── jqplot.mekkoAxisRenderer.js
│ │ │ ├── jqplot.mekkoAxisRenderer.min.js
│ │ │ ├── jqplot.mekkoRenderer.js
│ │ │ ├── jqplot.mekkoRenderer.min.js
│ │ │ ├── jqplot.meterGaugeRenderer.js
│ │ │ ├── jqplot.meterGaugeRenderer.min.js
│ │ │ ├── jqplot.mobile.js
│ │ │ ├── jqplot.mobile.min.js
│ │ │ ├── jqplot.ohlcRenderer.js
│ │ │ ├── jqplot.ohlcRenderer.min.js
│ │ │ ├── jqplot.pieRenderer.js
│ │ │ ├── jqplot.pieRenderer.min.js
│ │ │ ├── jqplot.pointLabels.js
│ │ │ ├── jqplot.pointLabels.min.js
│ │ │ ├── jqplot.pyramidAxisRenderer.js
│ │ │ ├── jqplot.pyramidAxisRenderer.min.js
│ │ │ ├── jqplot.pyramidGridRenderer.js
│ │ │ ├── jqplot.pyramidGridRenderer.min.js
│ │ │ ├── jqplot.pyramidRenderer.js
│ │ │ ├── jqplot.pyramidRenderer.min.js
│ │ │ ├── jqplot.trendline.js
│ │ │ └── jqplot.trendline.min.js
│ ├── excanvas.min.js
│ ├── fullcalendar.min.js
│ ├── fullcalendar
│ │ ├── locales-all.min.js
│ │ └── locales
│ │ │ └── pt-br.js
│ ├── funcoes.js
│ ├── funcoesGlobal.js
│ ├── highchart
│ │ ├── highcharts-init.js
│ │ ├── highcharts-modules-exporting.js
│ │ ├── highcharts-more.js
│ │ └── highcharts.js
│ ├── index.html
│ ├── jquery-1.12.4.min.js
│ ├── jquery-ui
│ │ ├── css
│ │ │ └── smoothness
│ │ │ │ ├── images
│ │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png
│ │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png
│ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png
│ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png
│ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png
│ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png
│ │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│ │ │ │ ├── ui-icons_222222_256x240.png
│ │ │ │ ├── ui-icons_2e83ff_256x240.png
│ │ │ │ ├── ui-icons_454545_256x240.png
│ │ │ │ ├── ui-icons_888888_256x240.png
│ │ │ │ └── ui-icons_cd0a0a_256x240.png
│ │ │ │ ├── jquery-ui-1.9.2.custom.css
│ │ │ │ └── jquery-ui-1.9.2.custom.min.css
│ │ └── js
│ │ │ ├── jquery-1.8.3.js
│ │ │ ├── jquery-ui-1.9.2.custom.js
│ │ │ └── jquery-ui-1.9.2.custom.min.js
│ ├── jquery.dataTables.min.js
│ ├── jquery.flot.min.js
│ ├── jquery.flot.pie.min.js
│ ├── jquery.flot.resize.min.js
│ ├── jquery.gritter.min.js
│ ├── jquery.mask.min.js
│ ├── jquery.peity.min.js
│ ├── jquery.toggle.buttons.html
│ ├── jquery.ui.custom.js
│ ├── jquery.uniform.js
│ ├── jquery.validate.js
│ ├── jquery.wizard.js
│ ├── maruti.html
│ ├── masked.js
│ ├── maskmoney.js
│ ├── matrix.calendar.js
│ ├── matrix.charts.js
│ ├── matrix.chat.js
│ ├── matrix.dashboard.js
│ ├── matrix.form_common.js
│ ├── matrix.form_validation.js
│ ├── matrix.interface.js
│ ├── matrix.js
│ ├── matrix.login.js
│ ├── matrix.popover.js
│ ├── matrix.tables.js
│ ├── matrix.wizard.js
│ ├── particles.min.js
│ ├── script-payments.js
│ ├── select2.min.js
│ ├── shortcut.js
│ ├── sweetalert.min.js
│ ├── sweetalert2.all.min.js
│ ├── validate.js
│ └── wysihtml5-0.3.0.js
├── json
│ ├── estados.json
│ └── tabela_medidas.json
├── relatorios
│ └── RELATORIO_MENSAL_DAS_RECEITAS_BRUTAS_MEI.docx
├── trumbowyg
│ ├── langs
│ │ ├── ar.js
│ │ ├── ar.min.js
│ │ ├── bg.js
│ │ ├── bg.min.js
│ │ ├── bn.js
│ │ ├── bn.min.js
│ │ ├── by.js
│ │ ├── by.min.js
│ │ ├── ca.js
│ │ ├── ca.min.js
│ │ ├── cs.js
│ │ ├── cs.min.js
│ │ ├── da.js
│ │ ├── da.min.js
│ │ ├── de.js
│ │ ├── de.min.js
│ │ ├── el.js
│ │ ├── el.min.js
│ │ ├── es.js
│ │ ├── es.min.js
│ │ ├── es_ar.js
│ │ ├── es_ar.min.js
│ │ ├── et.js
│ │ ├── et.min.js
│ │ ├── fa.js
│ │ ├── fa.min.js
│ │ ├── fi.js
│ │ ├── fi.min.js
│ │ ├── fr.js
│ │ ├── fr.min.js
│ │ ├── he.js
│ │ ├── he.min.js
│ │ ├── hr.js
│ │ ├── hr.min.js
│ │ ├── hu.js
│ │ ├── hu.min.js
│ │ ├── id.js
│ │ ├── id.min.js
│ │ ├── it.js
│ │ ├── it.min.js
│ │ ├── ja.js
│ │ ├── ja.min.js
│ │ ├── ko.js
│ │ ├── ko.min.js
│ │ ├── lt.js
│ │ ├── lt.min.js
│ │ ├── mn.js
│ │ ├── mn.min.js
│ │ ├── my.js
│ │ ├── my.min.js
│ │ ├── nl.js
│ │ ├── nl.min.js
│ │ ├── no_nb.js
│ │ ├── no_nb.min.js
│ │ ├── ph.js
│ │ ├── ph.min.js
│ │ ├── pl.js
│ │ ├── pl.min.js
│ │ ├── pt.js
│ │ ├── pt.min.js
│ │ ├── pt_br.js
│ │ ├── pt_br.min.js
│ │ ├── ro.js
│ │ ├── ro.min.js
│ │ ├── rs.js
│ │ ├── rs.min.js
│ │ ├── rs_latin.js
│ │ ├── rs_latin.min.js
│ │ ├── ru.js
│ │ ├── ru.min.js
│ │ ├── sk.js
│ │ ├── sk.min.js
│ │ ├── sl.js
│ │ ├── sl.min.js
│ │ ├── sq.js
│ │ ├── sq.min.js
│ │ ├── sv.js
│ │ ├── sv.min.js
│ │ ├── th.js
│ │ ├── th.min.js
│ │ ├── tr.js
│ │ ├── tr.min.js
│ │ ├── ua.js
│ │ ├── ua.min.js
│ │ ├── vi.js
│ │ ├── vi.min.js
│ │ ├── zh_cn.js
│ │ ├── zh_cn.min.js
│ │ ├── zh_tw.js
│ │ └── zh_tw.min.js
│ ├── plugins
│ │ ├── allowtagsfrompaste
│ │ │ ├── trumbowyg.allowtagsfrompaste.js
│ │ │ └── trumbowyg.allowtagsfrompaste.min.js
│ │ ├── base64
│ │ │ ├── trumbowyg.base64.js
│ │ │ └── trumbowyg.base64.min.js
│ │ ├── cleanpaste
│ │ │ ├── trumbowyg.cleanpaste.js
│ │ │ └── trumbowyg.cleanpaste.min.js
│ │ ├── colors
│ │ │ ├── trumbowyg.colors.js
│ │ │ ├── trumbowyg.colors.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.colors.scss
│ │ │ │ ├── trumbowyg.colors.css
│ │ │ │ └── trumbowyg.colors.min.css
│ │ ├── emoji
│ │ │ ├── trumbowyg.emoji.js
│ │ │ ├── trumbowyg.emoji.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.emoji.scss
│ │ │ │ ├── trumbowyg.emoji.css
│ │ │ │ └── trumbowyg.emoji.min.css
│ │ ├── fontfamily
│ │ │ ├── trumbowyg.fontfamily.js
│ │ │ └── trumbowyg.fontfamily.min.js
│ │ ├── fontsize
│ │ │ ├── trumbowyg.fontsize.js
│ │ │ └── trumbowyg.fontsize.min.js
│ │ ├── giphy
│ │ │ ├── trumbowyg.giphy.js
│ │ │ ├── trumbowyg.giphy.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.giphy.scss
│ │ │ │ ├── trumbowyg.giphy.css
│ │ │ │ └── trumbowyg.giphy.min.css
│ │ ├── highlight
│ │ │ ├── trumbowyg.highlight.js
│ │ │ ├── trumbowyg.highlight.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.highlight.scss
│ │ │ │ ├── trumbowyg.highlight.css
│ │ │ │ └── trumbowyg.highlight.min.css
│ │ ├── history
│ │ │ ├── trumbowyg.history.js
│ │ │ └── trumbowyg.history.min.js
│ │ ├── indent
│ │ │ ├── trumbowyg.indent.js
│ │ │ └── trumbowyg.indent.min.js
│ │ ├── insertaudio
│ │ │ ├── trumbowyg.insertaudio.js
│ │ │ └── trumbowyg.insertaudio.min.js
│ │ ├── lineheight
│ │ │ ├── trumbowyg.lineheight.js
│ │ │ └── trumbowyg.lineheight.min.js
│ │ ├── mathml
│ │ │ ├── trumbowyg.mathml.js
│ │ │ ├── trumbowyg.mathml.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.mathml.scss
│ │ │ │ ├── trumbowyg.mathml.css
│ │ │ │ └── trumbowyg.mathml.min.css
│ │ ├── mention
│ │ │ ├── trumbowyg.mention.js
│ │ │ ├── trumbowyg.mention.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.mention.scss
│ │ │ │ ├── trumbowyg.mention.css
│ │ │ │ └── trumbowyg.mention.min.css
│ │ ├── noembed
│ │ │ ├── trumbowyg.noembed.js
│ │ │ └── trumbowyg.noembed.min.js
│ │ ├── pasteembed
│ │ │ ├── trumbowyg.pasteembed.js
│ │ │ └── trumbowyg.pasteembed.min.js
│ │ ├── pasteimage
│ │ │ ├── trumbowyg.pasteimage.js
│ │ │ └── trumbowyg.pasteimage.min.js
│ │ ├── preformatted
│ │ │ ├── trumbowyg.preformatted.js
│ │ │ └── trumbowyg.preformatted.min.js
│ │ ├── resizimg
│ │ │ ├── trumbowyg.resizimg.js
│ │ │ └── trumbowyg.resizimg.min.js
│ │ ├── ruby
│ │ │ ├── trumbowyg.ruby.js
│ │ │ └── trumbowyg.ruby.min.js
│ │ ├── specialchars
│ │ │ ├── trumbowyg.specialchars.js
│ │ │ ├── trumbowyg.specialchars.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.specialchars.scss
│ │ │ │ ├── trumbowyg.specialchars.css
│ │ │ │ └── trumbowyg.specialchars.min.css
│ │ ├── table
│ │ │ ├── trumbowyg.table.js
│ │ │ ├── trumbowyg.table.min.js
│ │ │ └── ui
│ │ │ │ ├── sass
│ │ │ │ └── trumbowyg.table.scss
│ │ │ │ ├── trumbowyg.table.css
│ │ │ │ └── trumbowyg.table.min.css
│ │ ├── template
│ │ │ ├── trumbowyg.template.js
│ │ │ └── trumbowyg.template.min.js
│ │ └── upload
│ │ │ ├── trumbowyg.upload.js
│ │ │ └── trumbowyg.upload.min.js
│ ├── trumbowyg.js
│ ├── trumbowyg.min.js
│ └── ui
│ │ ├── icons.svg
│ │ ├── sass
│ │ └── trumbowyg.scss
│ │ ├── trumbowyg.css
│ │ ├── trumbowyg.min.css
│ │ └── trumbowyg.min.css.map
└── userImage
│ └── index.html
├── banco.sql
├── composer.json
├── composer.lock
├── docker
├── .env
├── docker-compose.yml
└── etc
│ ├── composer
│ └── Dockerfile
│ ├── nginx
│ ├── default.conf
│ └── default.template.conf
│ └── php
│ ├── Dockerfile
│ ├── cron-jobs
│ ├── php.ini
│ ├── supervisord.conf
│ └── uploads.ini
├── docs
├── dashboard.png
├── modelagem.mwb
└── modelagem.mwb.bak
├── index.php
├── install.bat
├── install.sh
├── install
├── assets
│ ├── css
│ │ ├── bootstrap.min.css
│ │ ├── custom.css
│ │ └── install.css
│ ├── images
│ │ ├── favicon-16x16.png
│ │ ├── favicon-32x32.png
│ │ ├── favicon-512x512.fw.png
│ │ ├── favicon.ico
│ │ └── loader2.gif
│ └── js
│ │ ├── jquery.form.js
│ │ ├── jquery.min.js
│ │ ├── jquery.validate.min.js
│ │ └── main.js
├── do_install.php
├── index.php
├── settings.json
└── view
│ ├── configuration.php
│ ├── finished.php
│ ├── index.php
│ └── pre-installation.php
├── robots.txt
└── updates
├── update_3.12_to_3.14.sql
├── update_3.14.2_to_3.15.0.sql
├── update_3.15.0_to_4.0.0.sql
├── update_3.6.0.sql
├── update_3.7.0.sql
├── update_3.9_to_3.10.sql
├── update_4.14.1_to_4.15.0.sql
├── update_4.17.1_to_4.18.0.sql
├── update_4.19.0_to_4.20.0.sql
├── update_4.23.0_to_4.24.0.sql
├── update_4.24.0_to_4.25.0.sql
├── update_4.25.1_to_4.26.0.sql
├── update_4.26.2_to_4.27.0.sql
├── update_4.27.0_to_4.28.0.sql
├── update_4.29.0_to_4.30.0.sql
├── update_4.30.3_to_4.31.0.sql
├── update_4.31.1_to_4.32.0 .sql
├── update_4.32.1_to_4.33.0.sql
├── update_4.34.0_to_4.35.0.sql
├── update_4.35.0_to_4.36.0 .sql
├── update_4.36.0_to_4.37.0.sql
├── update_4.37.0_to_4.38.0.sql
├── update_4.39.0_to_4.40.0.sql
├── update_4.45.0_to_4.46.0.sql
├── update_v2_to_v3.sql
├── update_v3.1.9_to_3.2.x.sql
├── update_v3.1.x_to_3.1.9.sql
└── update_v3.3.x_to_3.4.x.sql
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom: ["https://www.catarse.me/mapos", "https://donorbox.org/mapos"]
2 | ko_fi: mapos
3 | github: map-os
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug
3 | about: Reporte um bug para nos ajudar a melhorar
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | ** Descreva o bug **
11 | Uma descrição clara e concisa do que é o erro.
12 |
13 | **Reproduzir**
14 | Etapas para reproduzir o comportamento:
15 | 1. Vá para '...'
16 | 2. Clique em '....'
17 | 3. Role para baixo até '....'
18 | 4. Ver erro
19 |
20 | **Comportamento esperado**
21 | Uma descrição clara e concisa do que você esperava que acontecesse.
22 |
23 | ** Capturas de tela **
24 | Se aplicável, adicione capturas de tela para ajudar a explicar seu problema.
25 |
26 | ** Desktop (preencha as seguintes informações): **
27 | - SO: [por exemplo iOS]
28 | - Navegador [por exemplo cromo, safari]
29 | - Versão [por exemplo 22]
30 |
31 | ** Smartphone (preencha as seguintes informações): **
32 | - Dispositivo: [por exemplo iPhone6]
33 | - SO: [por exemplo iOS8.1]
34 | - Navegador [por exemplo navegador de ações, safari]
35 | - Versão [por exemplo 22]
36 |
37 | ** Contexto adicional **
38 | Adicione qualquer outro contexto sobre o problema aqui.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/solicita--o-de-feature.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Solicitação de feature
3 | about: Sugira uma ideia para este projeto
4 | title: ''
5 | labels: request feature
6 | assignees: ''
7 |
8 | ---
9 |
10 | ** Sua solicitação de feature está relacionada a um problema? Por favor descreva.**
11 | Uma descrição clara e concisa de qual é o problema. Ex. Fico sempre frustrado quando [...]
12 |
13 | ** Descreva a solução que você deseja **
14 | Uma descrição clara e concisa do que você deseja que aconteça.
15 |
16 | ** Descreva as alternativas que você considerou **
17 | Uma descrição clara e concisa de qualquer solução ou recurso alternativo que você tenha considerado.
18 |
19 | ** Contexto adicional **
20 | Adicione qualquer outro contexto ou captura de tela sobre a solicitação de recurso aqui.
21 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: "Generate release with vendor"
2 |
3 | on:
4 | push:
5 | tags:
6 | - "v*.*.*"
7 |
8 | jobs:
9 | release:
10 | runs-on: ubuntu-latest
11 |
12 | steps:
13 | - name: Checkout code
14 | uses: actions/checkout@v4
15 |
16 | - name: Setup PHP
17 | uses: shivammathur/setup-php@v2
18 | with:
19 | php-version: '8.3'
20 | extensions: gd, mbstring
21 |
22 | - name: Install dependencies
23 | run: |
24 | composer update --optimize-autoloader --prefer-lowest --prefer-stable
25 |
26 | - name: List Installed Dependencies
27 | run: composer show -D
28 |
29 | - name: Create zip file with application and vendor directory
30 | run: |
31 | zip -r ${{ github.ref_name }}-release.zip ./
32 |
33 | - name: Create GitHub Release
34 | uses: softprops/action-gh-release@v2
35 | with:
36 | files: ${{ github.ref_name }}-release.zip
37 | generate_release_notes: true
38 | make_latest: true
39 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: "Close stale issues"
2 | on:
3 | schedule:
4 | - cron: "0 0 * * *"
5 |
6 | jobs:
7 | stale:
8 | runs-on: ubuntu-latest
9 | steps:
10 | - uses: actions/stale@v1.1.0
11 | with:
12 | repo-token: ${{ secrets.GITHUB_TOKEN }}
13 | stale-issue-message: 'Esta issue está obsoleta porque está aberta há 30 dias sem atividade. Remova o rótulo ou esse comentário ou essa issue será fechada em 5 dias'
14 | stale-pr-message: 'Esta PR está obsoleta porque está aberta há 30 dias sem atividade. Remova o rótulo ou esse comentário ou essa issue será fechada em 5 dias'
15 | days-before-stale: 30
16 | days-before-close: 5
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 | # production
3 | /install/files
4 | /docker/data
5 |
6 | # misc
7 | .DS_Store
8 | .vscode
9 |
10 | /vendor/
11 | /application/vendor/
12 |
13 | .env.local
14 | .env.development.local
15 | .env.test.local
16 | .env.production.local
17 |
18 | !blank/.gitkeep
19 | desktop.ini
20 |
21 | application/vendor/
22 | vendor/
23 | .idea/
24 | .php_cs.cache
25 | .php-cs-fixer.cache
26 | application/logs/*
27 | ci_sessions/
28 |
29 | uploads
30 | application/.env
31 | assets/userImage
32 |
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 |
Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/database.php: -------------------------------------------------------------------------------- 1 | $_ENV['DB_DSN'] ?? '', 9 | 'hostname' => $_ENV['DB_HOSTNAME'] ?? 'enter_hostname', 10 | 'username' => $_ENV['DB_USERNAME'] ?? 'enter_db_username', 11 | 'password' => $_ENV['DB_PASSWORD'] ?? 'enter_db_password', 12 | 'database' => $_ENV['DB_DATABASE'] ?? 'enter_database_name', 13 | 'dbdriver' => $_ENV['DB_DRIVER'] ?? 'mysqli', 14 | 'dbprefix' => $_ENV['DB_PREFIX'] ?? '', 15 | 'pconnect' => false, 16 | 'db_debug' => (ENVIRONMENT !== 'production'), 17 | 'cache_on' => false, 18 | 'cachedir' => '', 19 | 'char_set' => $_ENV['DB_CHARSET'] ?? 'utf8', 20 | 'dbcollat' => $_ENV['DB_COLLATION'] ?? 'utf8_general_ci', 21 | 'swap_pre' => '', 22 | 'encrypt' => false, 23 | 'compress' => false, 24 | 'stricton' => false, 25 | 'failover' => [], 26 | 'save_queries' => true, 27 | ]; 28 | -------------------------------------------------------------------------------- /application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 9 | 'xhtml1-strict' => '', 10 | 'xhtml1-trans' => '', 11 | 'xhtml1-frame' => '', 12 | 'html5' => '', 13 | 'html4-strict' => '', 14 | 'html4-trans' => '', 15 | 'html4-frame' => '', 16 | ]; 17 | 18 | /* End of file doctypes.php */ 19 | /* Location: ./application/config/doctypes.php */ 20 | -------------------------------------------------------------------------------- /application/config/email.php: -------------------------------------------------------------------------------- 1 | '', 20 | 'function' => 'compress', 21 | 'filename' => 'compress.php', 22 | 'filepath' => 'hooks', 23 | ]; 24 | 25 | $hook['pre_system'][] = [ 26 | 'class' => 'WhoopsHook', 27 | 'function' => 'bootWhoops', 28 | 'filename' => 'whoops.php', 29 | 'filepath' => 'hooks', 30 | 'params' => [], 31 | ]; 32 | 33 | /* End of file hooks.php */ 34 | /* Location: ./application/config/hooks.php */ 35 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/jwt.php: -------------------------------------------------------------------------------- 1 | load->library('email'); 13 | } 14 | 15 | public function process() 16 | { 17 | if (! $this->input->is_cli_request()) { 18 | show_404(); 19 | } 20 | 21 | $this->email->send_queue(); 22 | } 23 | 24 | public function retry() 25 | { 26 | if (! $this->input->is_cli_request()) { 27 | show_404(); 28 | } 29 | 30 | $this->email->retry_queue(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /application/controllers/api/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/api/v1/client/ClientCobrancasController.php: -------------------------------------------------------------------------------- 1 | load->model('Conecte_model'); 18 | $this->load->library('Authorization_Token'); 19 | } 20 | 21 | public function index_get() 22 | { 23 | $clientLogged = $this->logged_client(); 24 | 25 | $cobrancas = $this->Conecte_model->getCobrancas('cobrancas', '*', '', 20, $this->uri->segment(3), '', '', $this->logged_client()->usuario->idClientes); 26 | 27 | if(empty($cobrancas)) { 28 | $this->response([ 29 | 'status' => false, 30 | 'message' => 'Nenhum resultado encontrado' 31 | ], REST_Controller::HTTP_NOT_FOUND); 32 | } 33 | 34 | foreach ($cobrancas as $cobranca) { 35 | unset($cobranca->senha); 36 | } 37 | 38 | $this->response([ 39 | 'status' => true, 40 | 'message' => 'Listando resultados', 41 | 'result' => $cobrancas 42 | ], REST_Controller::HTTP_OK); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /application/controllers/api/v1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/database/migrations/20200306012421_add_cep_to_usuarios_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('usuarios', [ 8 | 'cep' => [ 9 | 'type' => 'VARCHAR', 10 | 'constraint' => 9, 11 | 'null' => false, 12 | 'default' => '70005-115', 13 | ], 14 | ]); 15 | } 16 | 17 | public function down() 18 | { 19 | $this->dbforge->drop_column('usuarios', 'cep'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /application/database/migrations/20200428012421_add_contato_and_complemento_to_clientes_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('clientes', [ 8 | 'contato' => [ 9 | 'type' => 'VARCHAR', 10 | 'constraint' => 45, 11 | 'null' => true, 12 | 'default' => null, 13 | ], 14 | 'complemento' => [ 15 | 'type' => 'VARCHAR', 16 | 'constraint' => 45, 17 | 'null' => true, 18 | 'default' => null, 19 | ], 20 | ]); 21 | } 22 | 23 | public function down() 24 | { 25 | $this->dbforge->drop_column('clientes', 'contato'); 26 | $this->dbforge->drop_column('clientes', 'complemento'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /application/database/migrations/20200921012421_add_observacoes_to_vendas_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('vendas', [ 8 | 'observacoes' => [ 9 | 'type' => 'TEXT', 10 | 'null' => true, 11 | 'default' => null, 12 | ], 13 | ]); 14 | } 15 | 16 | public function down() 17 | { 18 | $this->dbforge->drop_column('vendas', 'observacoes'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /application/database/migrations/20200921012422_add_observacoes_cliente_to_vendas_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('vendas', [ 8 | 'observacoes_cliente' => [ 9 | 'type' => 'TEXT', 10 | 'null' => true, 11 | 'default' => null, 12 | ], 13 | ]); 14 | } 15 | 16 | public function down() 17 | { 18 | $this->dbforge->drop_column('vendas', 'observacoes_cliente'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /application/database/migrations/20200921012423_add_observacoes_to_lancamentos_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('lancamentos', [ 8 | 'observacoes' => [ 9 | 'type' => 'TEXT', 10 | 'null' => true, 11 | 'default' => null, 12 | ], 13 | ]); 14 | } 15 | 16 | public function down() 17 | { 18 | $this->dbforge->drop_column('lancamentos', 'observacoes'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /application/database/migrations/20201224012424_add_cep_to_emitente_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('emitente', [ 8 | 'cep' => [ 9 | 'type' => 'VARCHAR', 10 | 'constraint' => '20', 11 | 'null' => true, 12 | 'default' => null, 13 | ], 14 | ]); 15 | } 16 | 17 | public function down() 18 | { 19 | $this->dbforge->drop_column('emitente', 'cep'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /application/database/migrations/20210105223548_add_cobrancas_cliente.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('cobrancas', [ 8 | 'clientes_id' => [ 9 | 'type' => 'INT', 10 | 'constraint' => 11, 11 | 'null' => true, 12 | ], 13 | ]); 14 | $this->db->query('ALTER TABLE `cobrancas` ADD INDEX `fk_cobrancas_clientes1` (`clientes_id` ASC)'); 15 | $this->db->query('ALTER TABLE `cobrancas` ADD CONSTRAINT `fk_cobrancas_clientes1` 16 | FOREIGN KEY (`clientes_id`) 17 | REFERENCES `clientes` (`idClientes`) 18 | ON DELETE NO ACTION 19 | ON UPDATE NO ACTION 20 | '); 21 | } 22 | 23 | public function down() 24 | { 25 | $this->dbforge->drop_table('cobrancas'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /application/database/migrations/20210107190526_fix_table_cobrancas.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `cobrancas` CHANGE `idCobranca` `idCobranca` INT(11) NOT NULL AUTO_INCREMENT'); 8 | } 9 | 10 | public function down() 11 | { 12 | $this->dbforge->drop_table('cobrancas'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/database/migrations/20210108201419_add_usuarios_lancamentos.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('lancamentos', [ 8 | 'usuarios_id' => [ 9 | 'type' => 'INT', 10 | 'constraint' => 11, 11 | 'null' => true, 12 | ], 13 | ]); 14 | $this->db->query('ALTER TABLE `lancamentos` ADD INDEX `fk_lancamentos_usuarios1` (`usuarios_id` ASC)'); 15 | $this->db->query('ALTER TABLE `lancamentos` ADD CONSTRAINT `fk_lancamentos_usuarios1` 16 | FOREIGN KEY (`usuarios_id`) 17 | REFERENCES `usuarios` (`idUsuarios`) 18 | ON DELETE NO ACTION 19 | ON UPDATE NO ACTION 20 | '); 21 | } 22 | 23 | public function down() 24 | { 25 | $this->dbforge->drop_column('lancamentos', 'usuarios_id'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /application/database/migrations/20210110153941_feature_notificawhats.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `configuracoes` CHANGE `valor` `valor` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL'); 8 | $sql = "INSERT INTO `configuracoes` (`idConfig`, `config`, `valor`) VALUES ('7', 'notifica_whats', 'Prezado(a), {CLIENTE_NOME} a OS de nº {NUMERO_OS} teve o status alterado para :{STATUS_OS} segue a descrição {DESCRI_PRODUTOS} com valor total de {VALOR_OS}!\\r\\nPara mais informações entre em contato conosco.\\r\\nAtenciosamente, {EMITENTE} {TELEFONE_EMITENTE}.')"; 9 | $this->db->query($sql); 10 | } 11 | 12 | public function down() 13 | { 14 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 7'); 15 | $this->db->query('ALTER TABLE `configuracoes` CHANGE `valor` `valor` VARCHAR(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL;'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /application/database/migrations/20210114151942_feature_control_baixaretroativa.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 8'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210114151944_add_payment_gateway_to_cobrancas.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('cobrancas', [ 8 | 'payment_gateway' => [ 9 | 'type' => 'VARCHAR', 10 | 'constraint' => 255, 11 | 'null' => true, 12 | 'default' => null, 13 | ], 14 | ]); 15 | $this->db->query('UPDATE cobrancas SET payment_gateway="GerencianetSdk" WHERE payment_gateway IS NULL'); 16 | } 17 | 18 | public function down() 19 | { 20 | $this->db->query('UPDATE cobrancas SET payment_gateway=NULL'); 21 | $this->dbforge->drop_column('cobrancas', 'payment_gateway'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /application/database/migrations/20210125023104_controle_editar_os.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 9'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210125151515_add_clientefornecedor.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('ALTER TABLE `clientes` DROP `fornecedor`;'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210125173737_add_control_datatable.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 10'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210125173738_add_pix_key.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 11'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210125173739_add_os_status_list.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 12'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20210125173740_add_aprovado_to_status_list.php: -------------------------------------------------------------------------------- 1 | db->query($configurationSql)->row(); 14 | 15 | $osStatus = json_decode($result->valor, true); 16 | if (empty($osStatus)) { 17 | $osStatus = ['Aberto', 'Faturado', 'Negociação', 'Em Andamento', 'Orçamento', 'Finalizado', 'Cancelado', 'Aguardando Peças', 'Aprovado']; 18 | } else { 19 | $osStatus[] = 'Aprovado'; 20 | } 21 | 22 | $sql = 'UPDATE `configuracoes` SET valor = ? WHERE idConfig = 12'; 23 | $this->db->query($sql, [json_encode($osStatus)]); 24 | } 25 | 26 | public function down() 27 | { 28 | $this->db->query("UPDATE `configuracoes` SET valor = '[\"Aberto\",\"Faturado\",\"Negocia\\u00e7\\u00e3o\",\"Em Andamento\",\"Or\\u00e7amento\",\"Finalizado\",\"Cancelado\",\"Aguardando Pe\\u00e7as\"]' WHERE idConfig = 12"); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /application/database/migrations/20210125173741_asaas_payment_gateway.php: -------------------------------------------------------------------------------- 1 | db->query($sql); 12 | } 13 | 14 | public function down() 15 | { 16 | $sql = ' 17 | ALTER TABLE cobrancas MODIFY COLUMN charge_id INT(11) NOT NULL; 18 | ALTER TABLE clientes DROP COLUMN asaas_id; 19 | '; 20 | $this->db->query($sql); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /application/database/migrations/20220216173741_upload_image_user.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `usuarios` ADD `url_image_user` varchar(255) NULL'); 8 | } 9 | 10 | public function down() 11 | { 12 | $this->db->query('ALTER TABLE `usuarios` DROP `url_image_user`;'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/database/migrations/20220307173741_add_password_client.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `clientes` ADD `senha` VARCHAR(200) NOT NULL;'); 8 | $this->db->query('CREATE TABLE `resets_de_senha` ( 9 | `id` INT NOT NULL AUTO_INCREMENT, 10 | `email` VARCHAR(200) NOT NULL , 11 | `token` VARCHAR(255) NOT NULL , 12 | `data_expiracao` DATETIME NOT NULL, 13 | `token_utilizado` TINYINT NOT NULL, 14 | PRIMARY KEY (`id`)) 15 | ENGINE = InnoDB 16 | DEFAULT CHARACTER SET = latin1; 17 | '); 18 | } 19 | 20 | public function down() 21 | { 22 | $this->db->query('ALTER TABLE `clientes` DROP `senha`;'); 23 | $this->db->query('DROP TABLE `resets_de_senha`;'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /application/database/migrations/20220313023104_controle_editar_vendas.php: -------------------------------------------------------------------------------- 1 | db->query("INSERT INTO `configuracoes` (`idConfig`, `config`, `valor`) VALUES (13, 'control_edit_vendas', 1);"); 8 | } 9 | 10 | public function down() 11 | { 12 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 13'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/database/migrations/20221112173741_add_tipo_desconto_os_vendas.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `os` ADD `tipo_desconto` VARCHAR(8) NULL DEFAULT NULL'); 8 | $this->db->query('ALTER TABLE `vendas` ADD `tipo_desconto` VARCHAR(8) NULL DEFAULT NULL'); 9 | $this->db->query('ALTER TABLE `lancamentos` ADD `tipo_desconto` VARCHAR(8) NULL DEFAULT NULL'); 10 | } 11 | 12 | public function down() 13 | { 14 | $this->db->query('ALTER TABLE `os` DROP `tipo_desconto`'); 15 | $this->db->query('ALTER TABLE `vendas` DROP `tipo_desconto`'); 16 | $this->db->query('ALTER TABLE `lancamentos` DROP `tipo_desconto`'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /application/database/migrations/20221119210810_add_asaas_id_clientes.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `clientes` ADD `asaas_id` VARCHAR(255) NULL DEFAULT NULL'); 8 | $this->db->query('ALTER TABLE `usuarios` DROP `asaas_id`'); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('ALTER TABLE `clientes` DROP `asaas_id`'); 14 | $this->db->query('ALTER TABLE `usuarios` DROP `asaas_id`'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /application/database/migrations/20221130180810_add_config_control_print_2ways_os.php: -------------------------------------------------------------------------------- 1 | db->query("INSERT INTO `configuracoes` (`idConfig`, `config`, `valor`) VALUES (15, 'control_2vias', 0);"); 8 | } 9 | 10 | public function down() 11 | { 12 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 15'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/database/migrations/20230428110810_alter_charset_configuracoes.php: -------------------------------------------------------------------------------- 1 | db->query('ALTER TABLE `configuracoes` CHANGE `config` `config` VARCHAR(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;'); 8 | $this->db->query("UPDATE `configuracoes` SET `valor` = 'Prezado(a), {CLIENTE_NOME} a OS de nº {NUMERO_OS} teve o status alterado para: {STATUS_OS} segue a descrição {DESCRI_PRODUTOS} com valor total de {VALOR_OS}! Para mais informações entre em contato conosco. Atenciosamente, {EMITENTE} {TELEFONE_EMITENTE}.' WHERE `configuracoes`.`idConfig` = 7"); 9 | } 10 | 11 | public function down() 12 | { 13 | $this->db->query('DELETE FROM `configuracoes` WHERE `configuracoes`.`idConfig` = 7'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/database/migrations/20240503170400_add_garantia_status_to_vendas_table.php: -------------------------------------------------------------------------------- 1 | dbforge->add_column('vendas', array( 10 | 'garantia' => array( 11 | 'type' => 'VARCHAR', 12 | 'constraint' => '45', 13 | 'null' => true, 14 | ), 15 | )); 16 | 17 | // Adiciona o campo status 18 | $this->dbforge->add_column('vendas', array( 19 | 'status' => array( 20 | 'type' => 'VARCHAR', 21 | 'constraint' => '45', 22 | 'null' => true, 23 | ), 24 | )); 25 | } 26 | 27 | public function down() 28 | { 29 | // Remove o campo garantia 30 | $this->dbforge->drop_column('vendas', 'garantia'); 31 | 32 | // Remove o campo status 33 | $this->dbforge->drop_column('vendas', 'status'); 34 | } 35 | } -------------------------------------------------------------------------------- /application/database/seeds/Usuarios.php: -------------------------------------------------------------------------------- 1 | 1, 14 | 'nome' => 'Admin', 15 | 'rg' => 'MG-25.502.560', 16 | 'cpf' => '517.565.356-39', 17 | 'cep' => '01024-900', 18 | 'rua' => 'R. Cantareira', 19 | 'numero' => '306', 20 | 'bairro' => 'Centro Histórico de São Paulo', 21 | 'cidade' => 'São Paulo', 22 | 'estado' => 'SP', 23 | 'email' => 'admin@admin.com', 24 | 'senha' => '$2y$10$lAW0AXb0JLZxR0yDdfcBcu3BN9c2AXKKjKTdug7Or0pr6cSGtgyGO', // 123456 25 | 'telefone' => '0000-0000', 26 | 'celular' => '', 27 | 'situacao' => 1, 28 | 'dataCadastro' => '2018-09-09', 29 | 'permissoes_id' => 1, 30 | 'dataExpiracao' => '2030-01-01', 31 | ]; 32 | $this->db->insert($this->table, $data); 33 | 34 | echo PHP_EOL; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /application/database/stubs/migration.stub: -------------------------------------------------------------------------------- 1 | dbforge->add_field([ 8 | 'id' => [ 9 | 'type' => 'INT', 10 | 'constraint' => 11, 11 | 'auto_increment' => true 12 | ], 13 | 'text' => [ 14 | 'type' => 'VARCHAR', 15 | 'constraint' => 20, 16 | 'null' => true 17 | ], 18 | ]); 19 | $this->dbforge->add_key('id', true); 20 | $this->dbforge->create_table('table'); 21 | } 22 | 23 | public function down() 24 | { 25 | $this->dbforge->drop_table('table'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /application/database/stubs/seed.stub: -------------------------------------------------------------------------------- 1 | db->truncate($this->table); 12 | 13 | // seed records manually 14 | $data = [ 15 | 'user_name' => 'admin', 16 | 'password' => '9871' 17 | ]; 18 | $this->db->insert($this->table, $data); 19 | 20 | // seed many records using faker 21 | $limit = 33; 22 | echo "seeding $limit user accounts"; 23 | 24 | for ($i = 0; $i < $limit; $i++) { 25 | echo "."; 26 | 27 | $data = [ 28 | 'user_name' => $this->faker->unique()->userName, 29 | 'password' => '1234', 30 | ]; 31 | 32 | $this->db->insert($this->table, $data); 33 | } 34 | 35 | echo PHP_EOL; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Severity:
6 |Message:
7 |Filename:
8 |Line Number:
9 | 10 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/audit_helper.php: -------------------------------------------------------------------------------- 1 | load->model('Audit_model'); 8 | 9 | $data = [ 10 | 'usuario' => $ci->session->userdata('nome_admin'), 11 | 'ip' => $ci->input->ip_address(), 12 | 'tarefa' => $task, 13 | 'data' => date('Y-m-d'), 14 | 'hora' => date('H:i:s'), 15 | ]; 16 | 17 | $ci->Audit_model->add($data); 18 | } 19 | -------------------------------------------------------------------------------- /application/helpers/codegen_helper.php: -------------------------------------------------------------------------------- 1 | '; 10 | print_r($a); 11 | echo ''; 12 | } 13 | function v($a) 14 | { 15 | echo ''; 16 | var_dump($a); 17 | echo ''; 18 | } 19 | 20 | function clean_header($array) 21 | { 22 | $CI = get_instance(); 23 | $CI->load->helper('inflector'); 24 | foreach ($array as $a) { 25 | $arr[] = humanize($a); 26 | } 27 | 28 | return $arr; 29 | } 30 | 31 | function validate_money($valor) 32 | { 33 | if (preg_match("/^([0-9]*)\.(\d{2})$/", $valor)) { 34 | return true; 35 | } 36 | 37 | return false; 38 | } 39 | -------------------------------------------------------------------------------- /application/helpers/date_helper.php: -------------------------------------------------------------------------------- 1 | setTime(0, 0, 0); 15 | 16 | // Realizar a soma de dias 17 | $intervalo = new DateInterval('P' . intval($finalDate) . 'D'); 18 | $obj_data->add($intervalo); 19 | 20 | // Formatar a data obtida 21 | return $obj_data->format('d/m/Y'); 22 | } 23 | -------------------------------------------------------------------------------- /application/helpers/dd_helper.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
Directory access is forbidden.
8 | 9 | 10 |