-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More performance work. Add pagination in a bunch of places. Fix vario…
…us minor bugs.
- Loading branch information
Axel Liljencrantz
committed
Aug 13, 2010
1 parent
1f05ed6
commit 5204097
Showing
31 changed files
with
522 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
/*.patch | ||
!.gitignore | ||
/doc/plugins | ||
Gemfile.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
Statistik: | ||
|
||
Før alla stængda perioder: | ||
* # open bills | ||
* # bills | ||
* # journal entries | ||
* Før alla konto/unit/project kombos med transaktioner: | ||
* debet | ||
* kredit | ||
|
||
Bættra på bulkinsættning: | ||
|
||
* Ordrer | ||
* Fakturor | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ class Paycheck < ActiveRecord::Base | |
has_many :paycheck_lines | ||
accepts_nested_attributes_for :paycheck_lines | ||
|
||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Property < ActiveRecord::Base | ||
belongs_to :model | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,6 @@ | |
<%= t(:text, :scope => :journals) %> | ||
</th> | ||
<th> | ||
|
||
</th> | ||
</tr> | ||
</thead> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class='period_picker'> | ||
<%= form_tag "", :method => :get do %> | ||
<div class='first'> | ||
<%= label :first_period, t('period_picker.first_period') %> | ||
<%= select_tag 'first_period', options_for_select(current_user.current_company.periods.map {|e| e.to_s}, first_period) %> | ||
</div> | ||
<div class='last'> | ||
|
||
<%= label :first_period, t('period_picker.last_period') %> | ||
<%= select_tag 'last_period', options_for_select(current_user.current_company.periods.map {|e| e.to_s}, last_period) %> | ||
</div> | ||
<%= submit_tag t('global.filter') %> | ||
<% end %> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'period_controller' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
|
||
require 'property_model' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
def print_time name, &block | ||
print "#{name}..." | ||
a = Time.now | ||
foo = yield block | ||
b = Time.now | ||
print " Used #{b-a} seconds.\n" | ||
return foo | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class CreateProperties < ActiveRecord::Migration | ||
def self.up | ||
create_table :properties do |t| | ||
t.string :key, :null => false | ||
t.text :value, :null => false | ||
t.string :model_name | ||
t.integer :model_id | ||
end | ||
add_index :properties, [:key], {:name => 'properties_key'} | ||
add_index :properties, [:model_id], {:name => 'properties_model_id'} | ||
add_index :properties, [:key, :model_name, :model_id], {:unique => true} | ||
end | ||
|
||
def self.down | ||
drop_table :properties | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class AddMiscIndices < ActiveRecord::Migration | ||
def self.up | ||
add_index :periods, :company_id, {:name => 'periods_company_idx'} | ||
add_index :journals, :period_id, {:name => 'journals_period_idx'} | ||
add_index :bills, :period_id, {:name => 'bills_period_idx'} | ||
add_index :bills, :company_id, {:name => 'bills_company_idx'} | ||
|
||
add_index :journals, [:company_id, :number, :journal_type], {:name => 'journals_misc_idx'} | ||
execute "cluster journals_misc_idx on journals" | ||
|
||
execute "create index journals_bill_idx on journals (bill_id) where bill_id is not null;" | ||
end | ||
|
||
def self.down | ||
remove_index 'periods', 'periods_company_idx' | ||
remove_index 'journals', 'journals_period_idx' | ||
remove_index 'bills', 'bills_period_idx' | ||
remove_index 'bills', 'bills_company_idx' | ||
|
||
remove_index 'journals', 'journals_misc_idx' | ||
|
||
execute "drop index journals_bill_idx" | ||
end | ||
end |
Oops, something went wrong.