has_accounts_engine 3.0.0.beta9 → 3.0.0.beta10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd618f603dc4a6369b51bc9982e172e91c5aaf37
4
- data.tar.gz: 43362f423192b3a02f4766020fda66722a4ddaf2
3
+ metadata.gz: 76006e88be871b79e33bca9f8ceb7780218bd15f
4
+ data.tar.gz: 0483ee9a50458ca0897698df090732c5af74c3ab
5
5
  SHA512:
6
- metadata.gz: 4a8654b27c30dd1d596765b30ffb8ad049a6d06f657e76184fc4475360751f5312f483fc02ca7807602d25e0e2a652e7f2fa15c56cc16e2983b47ecefdd801f8
7
- data.tar.gz: 14b406c444741c80b8151f9363b44cc75f4f882bbfa99fb0e3d890c1425fc54877865fc6db4d7af12353cdccc9d2a78403407606f58f1312b2d4356352dbf64a
6
+ metadata.gz: 20442b5840215e0e66941993bc216fd527a83314f23666f230edcc3a8a3bc0acdc8b39f1a80f1d157a53dda619ebd2e35ec490dc2f36442940d6b19d6293c8ad
7
+ data.tar.gz: 3e6e6282189af1eff23eb6124c1399293054067c8811ba38edea850205c91ef0c40a9a261426752878c474f6e11d06790eb7653d6cc415133af20a7c98d8bc8b
@@ -1,5 +1,6 @@
1
1
  %tr[@booking]
2
2
  %td= @booking.value_date
3
+ %td= @booking.code
3
4
  %td
4
5
  = link_to @booking.title, @booking, {'data-href-container' => 'tr'}
5
6
  - if @booking.comments.present?
@@ -1,5 +1,6 @@
1
1
  %tr
2
2
  %th= t_attr :date, Booking
3
+ %th= t_attr :code, Booking
3
4
  %th= t_attr :text, Booking
4
5
  %th= t_attr :reference, Booking
5
6
  %th.currency= t_attr :debit_account, Booking
@@ -1,5 +1,5 @@
1
1
  %tr#booking_list_saldo{:style => "border-top: double 2px black"}
2
- %td{:colspan => "2"}
2
+ %td{:colspan => "3"}
3
3
  Kontostand (per #{@bookings.last.value_date})
4
4
  %td
5
5
  %td
@@ -1,6 +1,6 @@
1
1
  - credit_turnover, debit_turnover = @account.turnover(@bookings)
2
2
  %tr#booking_list_turnover{:style => "border-top: double 2px black"}
3
- %td{:colspan => "3"}
3
+ %td{:colspan => "4"}
4
4
  Umsatz (#{h @bookings.first.value_date} bis #{h @bookings.last.value_date})
5
5
  %td{:style => "text-align: right"}= currency_fmt(debit_turnover)
6
6
  %td{:style => "text-align: right"}= currency_fmt(credit_turnover)
@@ -1,5 +1,6 @@
1
1
  %tr{:id => "carry_booking"}
2
2
  %td= @carry_booking.value_date
3
+ %td
3
4
  %td
4
5
  = t('bookyt.carry_booking')
5
6
  %td
@@ -2,8 +2,9 @@
2
2
 
3
3
  %tr[booking]
4
4
  %td= booking.value_date
5
+ %td= booking.code
5
6
  %td.subject
6
- = link_to booking.title, item_action.call(booking), 'data-remote' => true, 'data-table-key' => '13'
7
+ = link_to booking.title, item_action.call(booking), 'data-table-key' => '13'
7
8
  - if booking.comments.present?
8
9
  %div
9
10
  %i= booking.comments
@@ -2,6 +2,7 @@
2
2
  %tr[booking]
3
3
  = simple_fields_for booking, :wrapper => 'table' do |f|
4
4
  %td= f.input :value_date, :as => 'date_field', :label => false
5
+ %td= f.input :code, :label => false
5
6
  %td
6
7
  = f.input :title, :input_html => {'data-autofocus' => true}
7
8
  = f.input :comments, :rows => 2
@@ -3,6 +3,7 @@
3
3
  %thead
4
4
  %tr
5
5
  %th.valute_date= t_attr :valuta
6
+ %th.code= t_attr :code
6
7
  %th.title= t_attr :title
7
8
  %th.reference= t_attr :reference
8
9
  %th.debit_account= t_attr :debit_account
@@ -12,4 +13,5 @@
12
13
  %tbody
13
14
  = render collection, :item_action => (item_action ||= nil)
14
15
 
16
+ = paginate collection if defined?(paginate)
15
17
  = render 'bookings/sidebar'
@@ -3,16 +3,17 @@
3
3
  = boot_page_title
4
4
 
5
5
  = simple_form_for '', :method => :get, remote: true do |f|
6
- .row-fluid
7
- .span6= f.input :by_text, label: t(:by_text, scope: 'bookings.search'), required: false
8
- .row-fluid
9
- .span3= f.input 'by_amount[from]', label: t(:by_amount_from, scope: 'bookings.search'), required: false
10
- .span3= f.input 'by_amount[to]', label: t(:by_amount_to, scope: 'bookings.search'), required: false
11
- .span3= f.input 'by_date[from]', label: t(:by_date_from, scope: 'bookings.search'), required: false
12
- .span3= f.input 'by_date[to]', label: t(:by_date_to, scope: 'bookings.search'), required: false
6
+ .container-fluid
7
+ .row-fluid
8
+ .span6= f.input :by_text, label: t(:by_text, scope: 'bookings.search'), required: false
9
+ .row-fluid
10
+ .span3= f.input 'by_amount[from]', label: t(:by_amount_from, scope: 'bookings.search'), required: false
11
+ .span3= f.input 'by_amount[to]', label: t(:by_amount_to, scope: 'bookings.search'), required: false
12
+ .span3= f.input 'by_date[from]', label: t(:by_date_from, scope: 'bookings.search'), required: false, input_html: { value: try_parse_date(params[:by_date][:from]) }
13
+ .span3= f.input 'by_date[to]', label: t(:by_date_to, scope: 'bookings.search'), required: false, input_html: { value: try_parse_date(params[:by_date][:to]) }
13
14
 
14
15
  .form-actions
15
16
  = f.button :submit, t_action(:search)
16
17
 
17
- = paginate collection if defined?(paginate)
18
- = render 'list'
18
+ .index
19
+ = render 'list'
@@ -1,2 +1,2 @@
1
- $('.collection').html('<%=escape_javascript render collection %>');
1
+ $('.index').html('<%=escape_javascript render "list" %>');
2
2
  initializeBehaviours();
@@ -1,3 +1,3 @@
1
1
  module HasAccountsEngine
2
- VERSION = "3.0.0.beta9"
2
+ VERSION = "3.0.0.beta10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta9
4
+ version: 3.0.0.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hürlimann (CyT)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails