pharmevent's People
pharmevent's Issues
RASHOD_TYPES
Переписать логику RASHOD_TYPES
- В базе изменить поле type_rashod на string.
- RASHOD_TYPES - массив массивов изменить на ассоциативный массив ассоциативных массивов
Почему:
- @documents_beznal_rashod[:type_rashod] = 0 - ни разу ничего не понятно что задаётся
- RASHOD_TYPES[doc.type_rashod][1] unless doc.type_rashod.blank? - непонятно что значит "1"
- Теоретически, изменение RASHOD_TYPES (по необходимости или незнанию) может вызвать боль. (RASHOD_TYPES = [['агентским расходом по логистике лекторов', 'Агент (лектор)'], ['..... )
ActiveRecord::StatementInvalid: PG::Error: ERROR: numeric field overflow DETAIL: A field with precision 8, scale 2 must round to an absolute value less than 10^6. : INSERT INTO "documents_beznal_schets" ("company_id", "created_at", "date_schet", "deleted_
Check full details on Airbrake: https://babi4.airbrake.io/groups/55530868?auth_token=24c4e2daa3f441c62a45e3553a7cde8bffbd7606
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `get_last_result'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `exec_cache'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:665:in `block in exec_query'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.6.46/lib/new_relic/agent/instrumentation/active_record.rb:32:in `block in log_with_newrelic_instrumentation'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.6.46/lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.6.46/lib/new_relic/agent/instrumentation/active_record.rb:29:in `log_with_newrelic_instrumentation'
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `exec_query'
Добавить gem bullet
Использовано POST вместо GET
reports/index.html.haml
По нажатию "Показать" отправляется POST запрос, хотя надо GET
Исправление DocumentsController
Рома, посмотри, правильно ли я понял логику поиска документов. Оно на самом деле должно быть так?
https://github.com/ZubKonst/pharmevent/commit/b70462110663f9a0beb1106c653079e8cf8fc115
P.S. Ошибка NoMethodError: undefined method empty? for false:FalseClass
возникала когда менеджер делал поиск, а params[:search][:can_company_consumption] == false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.