dreikanter / boodka Goto Github PK
View Code? Open in Web Editor NEWExperimental personal budget calculator
License: MIT License
Experimental personal budget calculator
License: MIT License
default: &default
adapter: postgresql
encoding: unicode
pool: 5
host: localhost
port: 5432
development:
<<: *default
database: "<%= ENV['app_name'] %>_development"
test:
<<: *default
database: "<%= ENV['app_name'] %>_test"
production:
<<: *default
host: "<%= ENV['postgres_host'] %>"
port: "<%= ENV['postgres_port'] %>"
database: "<%= ENV['app_name'] %>"
username: "<%= ENV['postgres_username'] %>"
password: "<%= ENV['postgres_password'] %>"
staging:
<<: *default
host: "<%= ENV['postgres_host'] %>"
port: "<%= ENV['postgres_port'] %>"
database: "<%= ENV['postgres_database'] %>"
username: "<%= ENV['postgres_username'] %>"
password: "<%= ENV['postgres_password'] %>"
Budget item is a single category for the Budget
Reconciliation#created_at
. $(".budget-cell").focus(function() {
var cell = $(this);
$.ajax({
url: $(this).data("path"),
success: function(data) {
cell.val(data["budget_category"]["planned"]);
}
});
});
$(".budget-cell").blur(function() {
var cell = $(this);
$.ajax({
url: $(this).data("path"),
type: "PATCH",
data: { value: cell.val() },
beforeSend: function() {
cell.css("background-color", "yellow");
},
success: function() {
cell.css("background-color", "transparent");
}
});
});
Put the validation to TransferForm #30
Optional!
Drop Const::CURRENCY_CODES.
Account#total
calculation:decimal, :precision => 8, :scale => 2
"Budget" is a budgeting period record.
after_created
.Categories#index
โ shows the full list of categoriesCategories#edit
โ opens a dynamic form to edit categories listTransaction#currency
to Account#currency
Transaction#currency == Account#currency
(set rate
to 1.0)auto_annotate.rb
:
# NOTE: only doing this in development as some production environments (Heroku)
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
# NOTE: to have a dev-mode tool do its thing in production.
if Rails.env.development?
task :set_annotation_options do
# You can override any of these by setting an environment variable of the
# same name.
Annotate.set_defaults({
'position_in_routes' => "before",
'position_in_class' => "before",
'position_in_test' => "before",
'position_in_fixture' => "before",
'position_in_factory' => "before",
'show_indexes' => "true",
'simple_indexes' => "false",
'model_dir' => "app/models",
'include_version' => "false",
'require' => "",
'exclude_tests' => "false",
'exclude_fixtures' => "false",
'exclude_factories' => "false",
'ignore_model_sub_dir' => "false",
'skip_on_db_migrate' => "false",
'format_bare' => "true",
'format_rdoc' => "false",
'format_markdown' => "false",
'sort' => "false",
'force' => "false",
'trace' => "false",
})
end
Annotate.load_tasks
end
amount: 0
and created_at: Transaction.first.created_at
, if there are no Reconciliation record for A.created_at > LR.created_at
LR.amount + sum(Ts.map { T.converted_amount(Account.currency, Rate.closest_to(T.created_at)) })
With datepicker.
Balance updates should be filtered from ordinary transactions during report generation.
<div class="form-group<%= ' has-error' if @form.errors[:amount] %>">
<%= form.label :amount, class: 'control-label' %>
<%= form.text_field :amount, placeholder: 'Amount', class: 'form-control', autofocus: true %>
<% if @form.errors[:amount] %>
<span class="help-block"><%= @form.errors[:amount].join(', ') %></span>
<% end %>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.