bookyt_salary 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@import blueprint/grid
|
|
2
|
-
|
|
3
|
-
// Grid
|
|
4
|
-
$blueprint-grid-columns: 24
|
|
5
|
-
$blueprint-grid-width: 30px
|
|
6
|
-
$blueprint-grid-margin: 10px
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Column widths
|
|
10
|
-
$column_small_form: 10
|
|
11
|
-
|
|
12
|
-
// Cash up styling
|
|
13
|
-
#cash_register_new,
|
|
14
|
-
#new_day
|
|
15
|
-
+column(12)
|
|
16
|
-
|
|
17
|
-
#cash_register_new
|
|
18
|
-
ul
|
|
19
|
-
width: 50%
|
|
20
|
-
float: left
|
|
21
|
-
&.second
|
|
22
|
-
li
|
|
23
|
-
width: 141px
|
|
24
|
-
float: right
|
|
25
|
-
label
|
|
26
|
-
width: 45px
|
|
27
|
-
float: left
|
|
28
|
-
input
|
|
29
|
-
width: 90px
|
|
30
|
-
#cash
|
|
31
|
-
float: left
|
|
32
|
-
color: red
|
|
33
|
-
text-decoration: underline
|
|
34
|
-
font-weight: bold
|
|
35
|
-
#result
|
|
36
|
-
width: 100%
|
|
37
|
-
margin-top: 10px
|
|
38
|
-
padding-top: 10px
|
|
39
|
-
border-top: 1px solid black
|
|
40
|
-
label
|
|
41
|
-
font-weight: bold
|
|
42
|
-
margin-right: 15px
|
|
43
|
-
input
|
|
44
|
-
width: 100%
|
|
45
|
-
li:first-child
|
|
46
|
-
margin-bottom: 10px
|
|
47
|
-
|
|
48
|
-
#new_day
|
|
49
|
-
label
|
|
50
|
-
width: 160px
|
|
51
|
-
input
|
|
52
|
-
width: 100px
|
|
53
|
-
float: right
|
|
54
|
-
&#day_submit
|
|
55
|
-
width: 100%
|
|
56
|
-
|
|
57
|
-
#day_edit
|
|
58
|
-
table
|
|
59
|
-
th
|
|
60
|
-
padding-right: 20px
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class SalariesController <
|
|
1
|
+
class SalariesController < InvoicesController
|
|
2
2
|
|
|
3
3
|
respond_to :html, :pdf
|
|
4
4
|
|
|
@@ -28,6 +28,13 @@ class SalariesController < AuthorizedController
|
|
|
28
28
|
|
|
29
29
|
@salary = Salary.new(salary_params)
|
|
30
30
|
|
|
31
|
+
# Line Items
|
|
32
|
+
line_item = @salary.line_items.build(
|
|
33
|
+
:times => 1,
|
|
34
|
+
:quantity => 'x'
|
|
35
|
+
)
|
|
36
|
+
line_item.assign_booking_template = BookingTemplate.find_by_code('salary:employee:ahv_iv_eo')
|
|
37
|
+
|
|
31
38
|
# Prebuild an empty attachment instance
|
|
32
39
|
@salary.attachments.build
|
|
33
40
|
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
= semantic_form_for @salary
|
|
1
|
+
= semantic_form_for @salary do |f|
|
|
2
2
|
= f.semantic_errors
|
|
3
3
|
= f.inputs do
|
|
4
4
|
= f.input :state, :collection => invoice_states_as_collection
|
|
5
|
-
= f.input :
|
|
6
|
-
= f.input :
|
|
5
|
+
= f.input :employer, :as => :combobox
|
|
6
|
+
= f.input :employee, :as => :combobox
|
|
7
7
|
= f.input :title
|
|
8
8
|
= f.input :duration_from, :as => :date_field
|
|
9
9
|
= f.input :duration_to, :as => :date_field
|
|
10
10
|
= f.input :amount, :input_html => {:size => 12}
|
|
11
11
|
= f.input :remarks, :input_html => {:rows => 4}
|
|
12
12
|
|
|
13
|
+
= f.inputs t('title.line_items') do
|
|
14
|
+
%table#line_items
|
|
15
|
+
%thead
|
|
16
|
+
= render 'line_items/list_header', :invoice => resource
|
|
17
|
+
%tbody
|
|
18
|
+
= f.fields_for :line_items do |line_item|
|
|
19
|
+
= render 'line_items/form', :line_item => line_item
|
|
20
|
+
%tfoot
|
|
21
|
+
= render 'line_items/list_footer', :total_amount => resource.amount
|
|
22
|
+
|
|
13
23
|
= f.buttons do
|
|
14
24
|
= f.commit_button
|
data/config/locales/de.yml
CHANGED
data/config/routes.rb
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
Rails.application.routes.draw do
|
|
2
|
-
#
|
|
3
|
-
resources :
|
|
2
|
+
# Salaries
|
|
3
|
+
resources :salaries do
|
|
4
4
|
collection do
|
|
5
|
-
|
|
5
|
+
get :statistics
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
member do
|
|
9
|
+
get :payslip
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Line Items
|
|
13
|
+
member do
|
|
14
|
+
get :new_line_item
|
|
15
|
+
end
|
|
16
|
+
collection do
|
|
17
|
+
get :new_line_item
|
|
6
18
|
end
|
|
7
19
|
end
|
|
8
20
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bookyt_salary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-11-
|
|
18
|
+
date: 2011-11-11 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|