bookyt_stock 0.5.1 → 0.5.2
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,11 +1,12 @@
|
|
|
1
|
-
%table.
|
|
2
|
-
%
|
|
3
|
-
%
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
%table.zebra-striped.stocks.collection
|
|
2
|
+
%thead
|
|
3
|
+
%tr
|
|
4
|
+
%th= t_attr :title, Stock
|
|
5
|
+
%th= t_attr :purchase_invoice, Stock
|
|
6
|
+
%th= t_attr :direct_account, Stock
|
|
7
|
+
%th= t_attr :state, Stock
|
|
8
|
+
%th.currency= t_attr :amount, Stock
|
|
9
|
+
%th.currency= t_attr :balance, Stock
|
|
10
|
+
%th.action-links
|
|
11
|
+
%tbody
|
|
12
|
+
= render @stocks
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
%h1= t_title
|
|
4
4
|
|
|
5
|
-
%table.
|
|
6
|
-
%
|
|
7
|
-
%
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
%
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
%table.zebra-striped.stocks_write_downs.collection
|
|
6
|
+
%thead
|
|
7
|
+
%tr
|
|
8
|
+
%th= t_attr :title, Stock
|
|
9
|
+
%th.currency= t_attr :balance_begin, Stock
|
|
10
|
+
%th.currency= t_attr :change, Stock
|
|
11
|
+
%th.currency= t_attr :write_downs, Stock
|
|
12
|
+
%th.currency= t_attr :balance_end, Stock
|
|
13
|
+
%tbody
|
|
14
|
+
- for stock in @stocks
|
|
15
|
+
%tr[stock]
|
|
16
|
+
%td= link_to stock.title, stock, {'data-href-container' => 'tr'}
|
|
17
|
+
%td.currency= currency_fmt(stock.balance(@start_date))
|
|
18
|
+
%td.currency= currency_fmt(stock.amount_changes(@date))
|
|
19
|
+
%td.currency= currency_fmt(stock.write_downs(@date))
|
|
20
|
+
%td.currency= currency_fmt(stock.balance(@end_date))
|
|
19
21
|
|
|
20
22
|
= render 'bookings/sidebar'
|
data/lib/bookyt_stock/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bookyt_stock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.5.2
|
|
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: 2012-03-
|
|
18
|
+
date: 2012-03-20 00:00:00 Z
|
|
19
19
|
dependencies: []
|
|
20
20
|
|
|
21
21
|
description: This plugin extends bookyt with asset/stock functionality.
|
|
@@ -77,10 +77,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
requirements: []
|
|
78
78
|
|
|
79
79
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 1.8.
|
|
80
|
+
rubygems_version: 1.8.16
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 3
|
|
83
83
|
summary: Stock plugin for bookyt
|
|
84
84
|
test_files: []
|
|
85
85
|
|
|
86
|
-
has_rdoc:
|