Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
71ea88b
add delivery method relation to company
May 28, 2015
577e352
keyword methods
May 28, 2015
f380c9a
delivery method model
May 28, 2015
ee121ce
adr options
May 28, 2015
9567cbe
more dropdown options
May 28, 2015
0e3c3d3
unifaun validation
May 28, 2015
217fc95
Merge branch 'master' into sami/delivery_method
Aug 19, 2015
2b8daf3
remove translation function
Aug 19, 2015
38f494f
remove unnecessary validation
Aug 19, 2015
e357502
view options helper
Aug 20, 2015
3fab74f
change some of the option methods to enumerable
Aug 20, 2015
ae94abc
add translations
Aug 20, 2015
ac238ad
remove unnecessary tests
Aug 20, 2015
183853d
fix typo
Aug 20, 2015
d10ff1d
move official legends to separate class
Aug 20, 2015
e82047e
helper tests
Aug 20, 2015
1b4d05e
Merge branch 'master' into sami/delivery_method
Aug 20, 2015
cc40d11
use STI for waybill keywords
Aug 20, 2015
66bf709
add waybill keyword
Aug 20, 2015
d701dc9
fix waybill keyword options
Aug 20, 2015
f3f09b7
test waybill keyword
Aug 20, 2015
e43e905
fix fixtures
Aug 20, 2015
61cce44
add validation
Aug 20, 2015
911d726
fix waybill relation
Aug 20, 2015
42485e3
add mode of transport keyword
Aug 20, 2015
aab297c
add mode of transport keyword relation
Aug 20, 2015
dfef231
Merge branch 'master' into sami/delivery_method
Aug 20, 2015
8b3dfd8
fix fixtures
Aug 20, 2015
77bff63
move options from model to helper
Aug 20, 2015
7a19d5b
move label options to helper module
Aug 20, 2015
34c5d54
remove unnecessary method
Aug 20, 2015
75adeed
nature of transaction options helper
Aug 20, 2015
cc5f177
remove unnecessary method
Aug 20, 2015
0d79277
customs options helper method
Aug 20, 2015
ba3c19e
Merge branch 'master' into sami/delivery_method
Aug 25, 2015
ff9a8ec
sorting point options
Aug 25, 2015
158fdb1
normalize delivery method translations
Aug 25, 2015
c014a34
adr prohibition options and validation
Aug 25, 2015
23b6864
ignore delivery method options
Aug 25, 2015
05c691d
alternative adr delivery method option
Aug 25, 2015
9925183
add sorting point relation
Aug 25, 2015
b4f344f
keyword helper and tests
Aug 25, 2015
214b91f
carrier options
Aug 25, 2015
9dff496
from hash to array
Aug 25, 2015
c4b4bb0
route for delivery method
Aug 25, 2015
8b2647e
permissions for delivery method
Aug 25, 2015
46090e5
delivery method controller and view
Aug 25, 2015
ccc42b8
fix test
Aug 25, 2015
b48f3dd
work on edit view
Aug 26, 2015
73e6e0d
update edit view
Aug 26, 2015
6ddbce7
update edit view
Aug 26, 2015
050a77c
update edit view
Aug 26, 2015
50c3b7f
validations
Aug 26, 2015
549c93b
delivery method controller & controller tests
Aug 26, 2015
c899b4e
use attribute sanitator and define float columns
Aug 26, 2015
228dc94
add customer relation for delivery method
Aug 26, 2015
83cfad2
fix tests
Aug 26, 2015
4b85d45
add translations
Aug 26, 2015
8eb4298
add destroy method
Aug 26, 2015
4c6cc4b
add remove button
Aug 26, 2015
6dd846b
Merge branch 'master' into sami/delivery_method
Aug 27, 2015
0e3d6f3
load fixtures
Aug 27, 2015
cf525cf
add validations for destroy method
Aug 27, 2015
ed7b0d4
add freight & freight contract models
Aug 27, 2015
5204e93
add freight & freight contract validations for destroy method
Aug 27, 2015
b7637cb
add customer keywords
Aug 27, 2015
94dcf2d
add customer keywords validation for destroy method
Aug 27, 2015
3adfcc2
mandatory new packaging info with unifaun online
Aug 27, 2015
4b31f89
tests and fixtures
Aug 28, 2015
c49a9f6
Merge branch 'master' into sami/delivery_method
jonikanerva Sep 16, 2015
888d995
load fixtures
jonikanerva Sep 16, 2015
6c4af1e
update delivery method permissions
jonikanerva Sep 16, 2015
146abef
blank belongs to view
jonikanerva Sep 16, 2015
6efacce
clean up index
jonikanerva Sep 16, 2015
b3386d3
normalize
jonikanerva Sep 16, 2015
2546d83
allow all the fields!
jonikanerva Sep 16, 2015
08e58aa
form cleanup first pass
jonikanerva Sep 17, 2015
a181ea6
add translations
jonikanerva Sep 17, 2015
5069c59
add missing translations
jonikanerva Sep 17, 2015
b3b4a96
add translations
jonikanerva Sep 17, 2015
6c0ad4e
draw checkboxes
jonikanerva Sep 17, 2015
f9ceba4
cleanup
jonikanerva Sep 17, 2015
0b0599d
fix defaults
jonikanerva Sep 17, 2015
76cec13
save sallitut_alustat as string
jonikanerva Sep 17, 2015
12ec88e
check the correct boxes
jonikanerva Sep 17, 2015
a3b1e03
Merge branch 'master' into sami/delivery_method
jonikanerva Sep 17, 2015
6da3a69
fix typo
jonikanerva Sep 17, 2015
aca96ba
fix default option
jonikanerva Sep 18, 2015
be1c382
add blank label
jonikanerva Sep 18, 2015
3254dd5
add missing fixture
jonikanerva Sep 18, 2015
8d9fff7
remove waybills from database, use enum instead
jonikanerva Sep 18, 2015
cecce51
remove unused key
jonikanerva Sep 18, 2015
54a739b
clean up validations
jonikanerva Sep 18, 2015
677f1ee
Merge branch 'master' into sami/delivery_method
jonikanerva Oct 20, 2015
d2801b6
we have only one draft in fixtures
jonikanerva Oct 20, 2015
d5c4e90
add defaults to fixture
Oct 21, 2015
922d2b5
Merge branch 'master' into sami/delivery_method
Oct 22, 2015
e29fa96
update relations after save method
Oct 22, 2015
cb52bc0
company to default values
Oct 22, 2015
353062d
sales orders relations update
Oct 22, 2015
b210aab
relation updates
Oct 23, 2015
12552aa
Merge branch 'master' into sami/delivery_method
Oct 29, 2015
8e4101b
fix syntax error
Oct 29, 2015
e2165ba
comment broken test
Oct 29, 2015
94cff87
add stock transfer & preorder validations
Oct 29, 2015
c5eef82
add offer orders
Oct 29, 2015
1d3f663
correct offer order update message
Oct 29, 2015
5c04d3c
add manufacture order validation
Oct 29, 2015
69a4117
add work orders
Oct 29, 2015
ec1b892
add manufacture order test back
Oct 29, 2015
6951590
add project orders
Oct 29, 2015
e827376
add reclamation order
Oct 29, 2015
deb23a7
add freight relation update
Oct 29, 2015
d9a18ad
add freight contracts relation update
Oct 29, 2015
df947ce
add waybills
Oct 29, 2015
b4636fc
add translations
Oct 29, 2015
f47a281
remove nonexistent scopes
Oct 29, 2015
3ddcaeb
fix update message
Oct 29, 2015
61e6a45
fix test
Oct 29, 2015
951db98
use chosen-select
Oct 29, 2015
d8848c9
alternative adr delivery method validation
Oct 29, 2015
2db34f5
fix test
Oct 29, 2015
8feac55
fix adr prohibition test
Oct 29, 2015
57d2af7
freight & cargo insurance sku tests
Oct 29, 2015
cd27a8a
add translations
Oct 30, 2015
ada737f
Merge branch 'master' into sami/delivery_method
Oct 30, 2015
b73d760
normalize translations
Oct 30, 2015
1b7a97d
use carrier fixture
Oct 30, 2015
4eecb18
add delivery method to fixtures
Oct 30, 2015
ecfdd21
use translated package description
Oct 30, 2015
b182a60
remove unnecessary method
Oct 30, 2015
f26fd21
add delivery method translation model
Nov 2, 2015
14648d7
add translations to controller & add tests
Nov 2, 2015
43773fc
add view partials
Nov 2, 2015
f6eafd2
fix view partials
Nov 2, 2015
7954695
add departures
Nov 3, 2015
3a891d9
remove partials
Nov 3, 2015
ee39f6b
add TimeOfDay object
Nov 3, 2015
02f8e9b
remove get_locale method & use current user's locale
Nov 3, 2015
b5da713
Merge branch 'master' into sami/delivery_method
Nov 3, 2015
bf37c5a
departures partial
Nov 3, 2015
d089491
terminal area & customer category keywords
Nov 3, 2015
974e2ac
warehouse relation to departures
Nov 3, 2015
5f29210
add fields to departures & use of pupenext_date_field
Nov 4, 2015
004ff11
departure helper
Nov 4, 2015
cfe5ad5
terminal area helper
Nov 4, 2015
d4f0684
customer category helper
Nov 4, 2015
a73cccb
warehouse helper
Nov 4, 2015
feabbe7
status options
Nov 4, 2015
0e2ef13
fix status options test
Nov 5, 2015
894e4d6
fix fixtures
Nov 5, 2015
e0f2377
fix departure nested attributes
Nov 5, 2015
a7176ec
add length validation for custom's selite field
Nov 5, 2015
48b140b
add tests for departure nested attribute
Nov 5, 2015
e4c9378
fix customs options test
Nov 5, 2015
42ba125
remove time of day class
Nov 5, 2015
985aec0
use time select
Nov 5, 2015
959acf1
test relations
Nov 5, 2015
ef9f8d0
add fixture
Nov 5, 2015
cf51aae
set datefield to nowrap
Nov 5, 2015
3fed43e
add header texts to partials
Nov 5, 2015
6dfe304
add fixture
Nov 5, 2015
f332284
make kerayserat-column to enum
Nov 5, 2015
c344dd1
translate keys
jonikanerva Nov 5, 2015
7960028
don't change old permissions for now
jonikanerva Nov 6, 2015
48dfb9a
add location model
jonikanerva Nov 6, 2015
b96d547
add delivery_methods <-> locations relation
jonikanerva Nov 6, 2015
b470f8b
Merge branch 'master' into sami/delivery_method
jonikanerva Nov 6, 2015
21c624e
remove unnecessary fields
jonikanerva Nov 6, 2015
8299cef
update location ids
jonikanerva Nov 6, 2015
4c52fef
add locations list
jonikanerva Nov 6, 2015
5061bd0
use div
jonikanerva Nov 6, 2015
da632c1
order by jarjestys
jonikanerva Nov 6, 2015
013639c
update only if selite changed
jonikanerva Nov 6, 2015
a7bf0ff
don't translate if we search for company locale
jonikanerva Nov 6, 2015
70f1fd7
hide if not needed
jonikanerva Nov 6, 2015
0c3f41a
don't update if new
jonikanerva Nov 6, 2015
6ec8eec
don't use shorthand because we need empty
jonikanerva Nov 6, 2015
3309f37
use symbols
jonikanerva Nov 9, 2015
1fbcd29
sort and typecheck
jonikanerva Nov 9, 2015
aae1df4
sort
jonikanerva Nov 9, 2015
09b564d
fix deliverymethod adr tests
jonikanerva Nov 9, 2015
fcfbedd
test error messages
jonikanerva Nov 9, 2015
c81b199
fix unifaun online params validation
jonikanerva Nov 9, 2015
24d09ed
test error message
jonikanerva Nov 9, 2015
cd5af4f
move validation conditions into validation
jonikanerva Nov 9, 2015
b63bd10
rename methods
jonikanerva Nov 9, 2015
85a83ca
test all cases
jonikanerva Nov 9, 2015
6d2e196
clean up test
jonikanerva Nov 9, 2015
fea7ac1
assert empty/not_empty
jonikanerva Nov 9, 2015
d00ded3
remove useless test
jonikanerva Nov 9, 2015
09103e9
remove unnecessary test + cleanup code
jonikanerva Nov 9, 2015
0598ba1
move fixtures to setup
jonikanerva Nov 10, 2015
5ff8ebc
rename fixtures to avoid confusion
jonikanerva Nov 10, 2015
4d10dda
add new delete validations
jonikanerva Nov 10, 2015
48f62f4
test all delete cases
jonikanerva Nov 10, 2015
e63c3e1
cleanup relation check
jonikanerva Nov 10, 2015
50311d2
a dryer way (debatable)
jonikanerva Nov 11, 2015
e946c0e
fixed height
jonikanerva Nov 11, 2015
9bb635b
Merge branch 'master' into sami/delivery_method
jonikanerva Nov 19, 2015
83a4c10
Merge branch 'master' into sami/delivery_method
jonikanerva Jan 13, 2016
9a5e426
revert back to rails 4.2.4 as has_and_belongs_to_many breaks
jonikanerva Jan 13, 2016
c24aaa3
use regex to test
jonikanerva Jan 13, 2016
ade01bb
we need to skip update messages as they are dynamic
jonikanerva Jan 13, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'rails', '~> 4.2'
gem 'rails', '4.2.4'

gem 'bcrypt'
gem 'jquery-rails'
Expand Down
138 changes: 74 additions & 64 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.5)
actionview (= 4.2.5)
activesupport (= 4.2.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.5)
activesupport (= 4.2.5)
actionview (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.5)
activesupport (= 4.2.5)
activejob (4.2.4)
activesupport (= 4.2.4)
globalid (>= 0.3.0)
activemodel (4.2.5)
activesupport (= 4.2.5)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activerecord (4.2.5)
activemodel (= 4.2.5)
activesupport (= 4.2.5)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
arel (~> 6.0)
activesupport (4.2.5)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
ast (2.1.0)
ast (2.2.0)
axlsx (2.0.1)
htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1)
Expand All @@ -50,21 +50,23 @@ GEM
cocoon (1.2.6)
codeclimate-test-reporter (0.4.8)
simplecov (>= 0.7.1, < 1.0.0)
coffee-rails (4.1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
commonjs (0.2.7)
concurrent-ruby (1.0.0)
countries (1.2.2)
currencies (~> 0.4.2)
i18n_data (~> 0.7.0)
country_select (2.5.1)
countries (~> 1.2.0)
sort_alphabetical (~> 1.0)
currencies (0.4.2)
dalli (2.7.4)
dalli (2.7.5)
date_validator (0.8.1)
activemodel
docile (1.1.5)
Expand All @@ -82,15 +84,15 @@ GEM
execjs (2.6.0)
fakeredis (0.5.0)
redis (~> 3.0)
gli (2.13.3)
gli (2.13.4)
globalid (0.3.6)
activesupport (>= 4.1.0)
highline (1.7.8)
htmlentities (4.3.4)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
i18n-tasks (0.9.1)
i18n-tasks (0.9.2)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
easy_translate (>= 0.5.0)
Expand All @@ -101,15 +103,22 @@ GEM
term-ansicolor (>= 1.3.2)
terminal-table (>= 1.5.1)
i18n_data (0.7.0)
jquery-rails (4.0.5)
jquery-rails (4.1.0)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.7.1)
actionpack (>= 4.0)
less (~> 2.6.0)
sprockets (> 2, < 4)
tilt
libv8 (3.16.14.13)
lightbox2-rails (2.7.1)
railties (>= 3.1)
localeapp (0.9.3)
localeapp (1.0.2)
gli
i18n
json
Expand All @@ -120,15 +129,15 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.6.2)
mini_portile (0.6.2)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.3)
mono_logger (1.1.0)
multi_json (1.11.2)
mysql2 (0.3.20)
netrc (0.11.0)
nokogiri (1.6.6.4)
mini_portile (~> 0.6.0)
nokogiri (1.6.7.1)
mini_portile2 (~> 2.0.0.rc2)
parser (2.2.3.0)
ast (>= 1.1, < 3.0)
pdfkit (0.8.2)
Expand All @@ -137,16 +146,16 @@ GEM
rack
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5)
actionmailer (= 4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
activemodel (= 4.2.5)
activerecord (= 4.2.5)
activesupport (= 4.2.5)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5)
railties (= 4.2.4)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
Expand All @@ -156,17 +165,17 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.5)
actionpack (= 4.2.5)
activesupport (= 4.2.5)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rake (10.5.0)
redis (3.2.2)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
ref (2.0.0)
request_store (1.2.1)
request_store (1.3.0)
resque (1.25.2)
mono_logger (~> 1.0)
multi_json (~> 1.0)
Expand All @@ -187,19 +196,19 @@ GEM
nokogiri
rubyzip
spreadsheet (> 0.6.4)
ruby-ole (1.2.11.8)
ruby-ole (1.2.12)
rubyzip (1.0.0)
sass (3.4.19)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
simple_form (3.2.0)
actionpack (~> 4.0)
activemodel (~> 4.0)
simplecov (0.10.0)
simple_form (3.2.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
simplecov (0.11.1)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
Expand All @@ -210,14 +219,15 @@ GEM
tilt (>= 1.3, < 3)
sort_alphabetical (1.0.2)
unicode_utils (>= 1.2.2)
spreadsheet (1.0.9)
spreadsheet (1.1.1)
ruby-ole (>= 1.0)
sprockets (3.4.0)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sprockets-rails (3.0.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
term-ansicolor (1.3.2)
tins (~> 1.0)
terminal-table (1.5.2)
Expand All @@ -227,15 +237,15 @@ GEM
thor (0.19.1)
thread (0.2.2)
thread_safe (0.3.5)
tilt (2.0.1)
tins (1.7.0)
tilt (2.0.2)
tins (1.8.1)
turbolinks (2.5.3)
coffee-rails
twitter-bootstrap-rails (3.2.0)
actionpack (~> 4.1)
execjs (~> 2.2)
rails (~> 4.1)
railties (~> 4.1)
twitter-bootstrap-rails (3.2.2)
actionpack (>= 3.1)
execjs (>= 2.2.2, >= 2.2)
less-rails (>= 2.5.0)
railties (>= 3.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
Expand All @@ -247,7 +257,7 @@ GEM
unicode_utils (1.4.0)
vegas (0.1.11)
rack (>= 1.0.0)
wicked_pdf (1.0.1)
wicked_pdf (1.0.3)
ya2yaml (0.31)

PLATFORMS
Expand All @@ -272,7 +282,7 @@ DEPENDENCIES
minitest
mysql2 (~> 0.3.18)
pdfkit
rails (~> 4.2)
rails (= 4.2.4)
rake
request_store
resque
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/static/pupesoft.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,8 @@ table.responsive td input[type=text] {
width: 70%;
}
}

.fixed-height {
max-height: 200px;
overflow-y: scroll;
}
5 changes: 5 additions & 0 deletions app/assets/stylesheets/static/pupesoft_legacy.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ ul.list-unstyled {
.del {
text-decoration: line-through;
}

.fixed-height {
max-height: 200px;
overflow-y: scroll;
}
Loading