bookyt_pos 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bookyt_pos/version.rb +3 -0
- metadata +17 -26
- data/Gemfile +0 -45
- data/MIT-LICENSE +0 -20
- data/README.rdoc +0 -3
- data/Rakefile +0 -25
- data/app/controllers/days_controller.rb~ +0 -14
- data/app/stylesheets/bookyt_pos.sass +0 -47
- data/app/stylesheets/bookyt_pos.sass~ +0 -118
- data/config/locales/de.yml~ +0 -20
- data/lib/bookyt_pos.rb~ +0 -2
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookyt_pos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
@@ -19,9 +19,8 @@ date: 2011-07-24 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description:
|
23
|
-
email:
|
24
|
-
- simon.huerlimann@cyt.ch
|
22
|
+
description: This plugin extends bookyt with Point of Sale functionality.
|
23
|
+
email: simon.huerlimann@cyt.ch
|
25
24
|
executables: []
|
26
25
|
|
27
26
|
extensions: []
|
@@ -29,31 +28,23 @@ extensions: []
|
|
29
28
|
extra_rdoc_files: []
|
30
29
|
|
31
30
|
files:
|
32
|
-
- app/stylesheets/bookyt_pos.sass
|
33
|
-
- app/stylesheets/bookyt_pos.sass~
|
34
31
|
- app/controllers/days_controller.rb
|
35
|
-
- app/
|
36
|
-
- app/views/days/
|
37
|
-
- app/views/days/
|
32
|
+
- app/models/day.rb
|
33
|
+
- app/views/days/_calculate.html.haml
|
34
|
+
- app/views/days/_complete_form.html.haml
|
38
35
|
- app/views/days/_day.html.haml
|
36
|
+
- app/views/days/_form.html.haml
|
37
|
+
- app/views/days/calculate_cash.js.rjs
|
39
38
|
- app/views/days/edit.html.haml
|
40
|
-
- app/views/days/show.html.haml
|
41
|
-
- app/views/days/new.js.rjs
|
42
|
-
- app/views/days/_complete_form.html.haml
|
43
39
|
- app/views/days/index.html.haml
|
44
|
-
- app/views/days/
|
45
|
-
- app/views/days/
|
46
|
-
- app/
|
40
|
+
- app/views/days/new.html.haml
|
41
|
+
- app/views/days/new.js.rjs
|
42
|
+
- app/views/days/show.html.haml
|
43
|
+
- config/locales/de.yml
|
44
|
+
- config/routes.rb
|
47
45
|
- lib/bookyt_pos.rb
|
48
46
|
- lib/bookyt_pos/railtie.rb
|
49
|
-
- lib/bookyt_pos.rb
|
50
|
-
- config/routes.rb
|
51
|
-
- config/locales/de.yml~
|
52
|
-
- config/locales/de.yml
|
53
|
-
- MIT-LICENSE
|
54
|
-
- Rakefile
|
55
|
-
- Gemfile
|
56
|
-
- README.rdoc
|
47
|
+
- lib/bookyt_pos/version.rb
|
57
48
|
has_rdoc: true
|
58
49
|
homepage: https://github.com/huerlisi/bookyt_pos
|
59
50
|
licenses: []
|
@@ -87,6 +78,6 @@ rubyforge_project:
|
|
87
78
|
rubygems_version: 1.5.2
|
88
79
|
signing_key:
|
89
80
|
specification_version: 3
|
90
|
-
summary: Point of Sale plugin for bookyt
|
81
|
+
summary: Point of Sale plugin for bookyt
|
91
82
|
test_files: []
|
92
83
|
|
data/Gemfile
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# Settings
|
2
|
-
# ========
|
3
|
-
source :rubygems
|
4
|
-
|
5
|
-
gemspec
|
6
|
-
|
7
|
-
# Rails
|
8
|
-
# =====
|
9
|
-
gem 'rails', '~> 3.0.9'
|
10
|
-
|
11
|
-
# Development
|
12
|
-
# ===========
|
13
|
-
group :development do
|
14
|
-
end
|
15
|
-
|
16
|
-
# Test
|
17
|
-
# ====
|
18
|
-
group :test do
|
19
|
-
# Framework
|
20
|
-
gem "rspec"
|
21
|
-
gem "rspec-rails"
|
22
|
-
|
23
|
-
# Browser
|
24
|
-
gem "capybara"
|
25
|
-
|
26
|
-
# Fixtures
|
27
|
-
gem "factory_girl_rails", "~>1.1.rc1"
|
28
|
-
gem "factory_girl", "~>2.0.0.rc1"
|
29
|
-
|
30
|
-
# Matchers/Helpers
|
31
|
-
gem 'shoulda'
|
32
|
-
gem 'accept_values_for'
|
33
|
-
|
34
|
-
# Autotest
|
35
|
-
gem 'autotest'
|
36
|
-
gem 'autotest-rails'
|
37
|
-
|
38
|
-
# Database
|
39
|
-
gem "sqlite3"
|
40
|
-
end
|
41
|
-
|
42
|
-
# Gem
|
43
|
-
# ===
|
44
|
-
# Date/Time handling
|
45
|
-
gem 'validates_timeliness'
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2011 YOURNAME
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
DELETED
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
require 'rubygems'
|
3
|
-
begin
|
4
|
-
require 'bundler/setup'
|
5
|
-
rescue LoadError
|
6
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
-
end
|
8
|
-
|
9
|
-
require 'rake'
|
10
|
-
require 'rdoc/task'
|
11
|
-
|
12
|
-
require 'rspec/core'
|
13
|
-
require 'rspec/core/rake_task'
|
14
|
-
|
15
|
-
RSpec::Core::RakeTask.new(:spec)
|
16
|
-
|
17
|
-
task :default => :spec
|
18
|
-
|
19
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
20
|
-
rdoc.rdoc_dir = 'rdoc'
|
21
|
-
rdoc.title = 'BookytPos'
|
22
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
23
|
-
rdoc.rdoc_files.include('README.rdoc')
|
24
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class DaysController < AuthorizedController
|
2
|
-
def create
|
3
|
-
create! {days_path}
|
4
|
-
end
|
5
|
-
|
6
|
-
# AJAX methods
|
7
|
-
def calculate_cash
|
8
|
-
bills = params[:cash_register].select { |a| a[0].to_f > 5 }
|
9
|
-
mint = params[:cash_register].select { |a| a[0].to_f <= 5 }
|
10
|
-
|
11
|
-
@cash = bills.map { |a| a[0].to_f * a[1].to_f }.sum
|
12
|
-
@cash += mint.map { |a| a[1].to_f }.sum
|
13
|
-
end
|
14
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
// bookyt POS
|
2
|
-
// ==========
|
3
|
-
|
4
|
-
// Cash up styling
|
5
|
-
#cash_register_new,
|
6
|
-
#new_day
|
7
|
-
+column($column_small_form)
|
8
|
-
|
9
|
-
#cash_register_new
|
10
|
-
ul
|
11
|
-
width: 50%
|
12
|
-
float: left
|
13
|
-
&.second
|
14
|
-
li
|
15
|
-
width: 141px
|
16
|
-
float: right
|
17
|
-
label
|
18
|
-
width: 45px
|
19
|
-
float: left
|
20
|
-
input
|
21
|
-
width: 90px
|
22
|
-
#cash
|
23
|
-
float: left
|
24
|
-
color: red
|
25
|
-
text-decoration: underline
|
26
|
-
font-weight: bold
|
27
|
-
#result
|
28
|
-
width: 100%
|
29
|
-
margin-top: 10px
|
30
|
-
padding-top: 10px
|
31
|
-
border-top: 1px solid black
|
32
|
-
label
|
33
|
-
font-weight: bold
|
34
|
-
margin-right: 15px
|
35
|
-
input
|
36
|
-
width: 100%
|
37
|
-
li:first-child
|
38
|
-
margin-bottom: 10px
|
39
|
-
|
40
|
-
#new_day
|
41
|
-
label
|
42
|
-
width: 160px
|
43
|
-
input
|
44
|
-
width: 100px
|
45
|
-
float: right
|
46
|
-
&#day_submit
|
47
|
-
width: 100%
|
@@ -1,118 +0,0 @@
|
|
1
|
-
@import partials/content/table_list
|
2
|
-
@import partials/content/icons
|
3
|
-
@import partials/formtastic/formtastic_base
|
4
|
-
@import partials/content/ajax_indicator
|
5
|
-
@import partials/content/flash_errors
|
6
|
-
@import partials/content/fancy_buttons
|
7
|
-
@import partials/content/overview
|
8
|
-
@import partials/content/pagination
|
9
|
-
@import partials/content/cyt
|
10
|
-
|
11
|
-
@import partials/content/application
|
12
|
-
|
13
|
-
// Headers styling
|
14
|
-
h1,
|
15
|
-
h2,
|
16
|
-
h3
|
17
|
-
+sanserif-font
|
18
|
-
font-weight: bold
|
19
|
-
border-bottom: 1px solid #bbbbbb
|
20
|
-
|
21
|
-
h2
|
22
|
-
font-size: $h2_size
|
23
|
-
margin-bottom: $h2_size
|
24
|
-
|
25
|
-
h1
|
26
|
-
font-size: $h1_size
|
27
|
-
margin-bottom: $h1_size
|
28
|
-
|
29
|
-
h3
|
30
|
-
font-size: $h3_size
|
31
|
-
margin-bottom: 0.4em
|
32
|
-
margin-top: 1.2em
|
33
|
-
|
34
|
-
a
|
35
|
-
text-decoration: none
|
36
|
-
color: $link_color
|
37
|
-
&:hover
|
38
|
-
color: $link_color_hover
|
39
|
-
|
40
|
-
// Cash up styling
|
41
|
-
#cash_register_new,
|
42
|
-
#new_day
|
43
|
-
+column($column_small_form)
|
44
|
-
|
45
|
-
#cash_register_new
|
46
|
-
ul
|
47
|
-
width: 50%
|
48
|
-
float: left
|
49
|
-
&.second
|
50
|
-
li
|
51
|
-
width: 141px
|
52
|
-
float: right
|
53
|
-
label
|
54
|
-
width: 45px
|
55
|
-
float: left
|
56
|
-
input
|
57
|
-
width: 90px
|
58
|
-
#cash
|
59
|
-
float: left
|
60
|
-
color: red
|
61
|
-
text-decoration: underline
|
62
|
-
font-weight: bold
|
63
|
-
#result
|
64
|
-
width: 100%
|
65
|
-
margin-top: 10px
|
66
|
-
padding-top: 10px
|
67
|
-
border-top: 1px solid black
|
68
|
-
label
|
69
|
-
font-weight: bold
|
70
|
-
margin-right: 15px
|
71
|
-
input
|
72
|
-
width: 100%
|
73
|
-
li:first-child
|
74
|
-
margin-bottom: 10px
|
75
|
-
|
76
|
-
#new_day
|
77
|
-
label
|
78
|
-
width: 160px
|
79
|
-
input
|
80
|
-
width: 100px
|
81
|
-
float: right
|
82
|
-
&#day_submit
|
83
|
-
width: 100%
|
84
|
-
|
85
|
-
// Form styling
|
86
|
-
form.formtastic
|
87
|
-
+float-form
|
88
|
-
|
89
|
-
#day_edit
|
90
|
-
table
|
91
|
-
th
|
92
|
-
padding-right: 20px
|
93
|
-
|
94
|
-
// Accounting **
|
95
|
-
tr.currency, th.currency
|
96
|
-
text-align: right
|
97
|
-
|
98
|
-
.booking_list tr
|
99
|
-
td
|
100
|
-
background-color: white
|
101
|
-
border-left: 0px none
|
102
|
-
border-right: 0px none
|
103
|
-
border-bottom: 1px solid
|
104
|
-
border-left: 0px none
|
105
|
-
border-right: 0px none
|
106
|
-
|
107
|
-
// Snippet from Redmine.css
|
108
|
-
.contextual
|
109
|
-
float: right
|
110
|
-
white-space: nowrap
|
111
|
-
line-height: 1.4em
|
112
|
-
margin-top: 5px
|
113
|
-
padding-left: 10px
|
114
|
-
font-size: 0.9em
|
115
|
-
input
|
116
|
-
font-size: 0.9em
|
117
|
-
|
118
|
-
// End of snippet
|
data/config/locales/de.yml~
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
activerecord:
|
3
|
-
models:
|
4
|
-
day: Tagesabschluss
|
5
|
-
|
6
|
-
attributes:
|
7
|
-
day:
|
8
|
-
date: Datum
|
9
|
-
cash: Bargeldumsatz
|
10
|
-
card_turnover: Kreditkartenumsatz
|
11
|
-
expenses: Barausgabe
|
12
|
-
gross_turnover: Bruttoumsatz
|
13
|
-
net_turnover: Nettoumsatz
|
14
|
-
client_count: Anzahl Verkäufe
|
15
|
-
product_count: Verkaufte Produkte
|
16
|
-
credit_turnover: Kreditumsatz
|
17
|
-
discount: Rabatt
|
18
|
-
from: Abrechnung von
|
19
|
-
total: Total
|
20
|
-
calculate: Ausrechnen
|
data/lib/bookyt_pos.rb~
DELETED