vesr 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ %tr[esr_file]
2
+ %td= link_to esr_file.updated_at, esr_file
3
+ %td.currency= esr_file.esr_records.valid.count
4
+ %td.currency= esr_file.esr_records.invalid.count
5
+ %td.currency= sprintf("%0.2f", esr_file.esr_records.sum(:amount) || 0.0)
@@ -0,0 +1,12 @@
1
+ %table.list#esr_file_list
2
+ %tr
3
+ %th= t_attr :updated_at, EsrFile
4
+ %th.currency= t_attr :bookings, EsrFile
5
+ %th.currency= t_attr :bad_bookings, EsrFile
6
+ %th.currency= t_attr :total_amount, EsrFile
7
+ %th.action-links
8
+
9
+ = render @esr_files
10
+
11
+ %tr#invoices_list_footer
12
+ %th{:colspan => 5}= will_paginate @esr_files, :params => {:query => params[:query]}
@@ -0,0 +1,16 @@
1
+ %table.list{:style => "width: 100%"}
2
+ %tr
3
+ %th Valuta Datum
4
+ %th Patient
5
+ %th Status
6
+ %th{:style => "text-align: right"} Rechnungsbetrag
7
+ %th{:style => "text-align: right"} Bezahlbetrag
8
+ %th{:style => "text-align: right"} Saldo
9
+ - for esr_record in list_records
10
+ %tr
11
+ %td= h esr_record.value_date
12
+ %td= link_to esr_record.invoice.patient.to_s, esr_record.invoice if esr_record.invoice
13
+ %td= esr_record.invoice ? link_to(esr_record.remarks, esr_record.invoice) : esr_record.remarks
14
+ %td{:style => "text-align: right"}= h sprintf("%0.2f", esr_record.invoice.amount.currency_round) if esr_record.invoice
15
+ %td{:style => "text-align: right"}= h sprintf("%0.2f", esr_record.amount.currency_round)
16
+ %td{:style => "text-align: right"}= h sprintf("%0.2f", esr_record.invoice.due_amount.currency_round) if esr_record.invoice
@@ -0,0 +1,6 @@
1
+ - content_for :sidebar do
2
+ .sub-tabs
3
+ %h3 Ältere Buchungsläufe
4
+ %ul
5
+ - for esr_file in EsrFile.find :all, :limit => 10, :order => 'updated_at DESC'
6
+ %li= link_to esr_file.to_s(:short), esr_file
@@ -0,0 +1,13 @@
1
+ .contextual
2
+ = link_to_function "Protokoll drucken", 'window.print()', :class => "icon icon-print"
3
+ = link_to "VESR Liste", esr_files_path, :class => "icon icon-book"
4
+ %h2
5
+ VESR Protokoll vom #{l(@esr_file.updated_at.to_date)}
6
+ = render :partial => 'list_records', :object => @esr_file.esr_records.valid
7
+ - unless @esr_file.esr_records.bad.empty?
8
+ %h3 Falscher Betrag
9
+ = render :partial => 'list_records', :object => @esr_file.esr_records.bad
10
+ - unless @esr_file.esr_records.missing.empty?
11
+ %h3 Rechnung nicht gefunden
12
+ = render :partial => 'list_records', :object => @esr_file.esr_records.missing
13
+ = render :partial => 'sidebar'
@@ -8,6 +8,10 @@ de:
8
8
  esr_file:
9
9
  remarks: Bemerkungen
10
10
  file: Dateiname
11
+ updated_at: Verbucht am
12
+ bookings: Buchungen
13
+ bad_bookings: Fehlerhafte Buchungen
14
+ total_amount: Total (inkl. fehlerhaft)
11
15
  esr_record:
12
16
  bank_pc_id: Teilnehmer-Nr.
13
17
  reference: Referenz
data/lib/vesr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vesr
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vesr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek
@@ -36,15 +36,12 @@ files:
36
36
  - app/models/esr_file.rb
37
37
  - app/models/esr_record.rb
38
38
  - app/uploaders/esr_file_uploader.rb
39
- - app/views/esr_bookings/_form.html.erb
40
- - app/views/esr_bookings/_item.html.erb
41
- - app/views/esr_bookings/_list_footer.html.erb
42
- - app/views/esr_bookings/_list_header.html.erb
43
- - app/views/esr_bookings/_list_records.html.erb
44
- - app/views/esr_bookings/_navigation_section.html.erb
45
- - app/views/esr_bookings/_sidebar.html.erb
46
- - app/views/esr_bookings/list.html.erb
47
- - app/views/esr_bookings/show.html.erb
39
+ - app/views/esr_files/_esr_file.html.haml
40
+ - app/views/esr_files/_list.html.haml
41
+ - app/views/esr_files/_list_records.html.haml
42
+ - app/views/esr_files/_navigation_section.html.erb
43
+ - app/views/esr_files/_sidebar.html.haml
44
+ - app/views/esr_files/show.html.haml
48
45
  - config/locales/de.yml
49
46
  - config/routes.rb
50
47
  - db/migrate/1_create_vesr_tables.rb
@@ -1,13 +0,0 @@
1
- <div class="contextual">
2
- <%= link_to "VESR Liste", esr_files_path, :class => "icon icon-book" %>
3
- </div>
4
- <h2>VESR Datei einlesen</h2>
5
- <% semantic_form_for :esr_file do |esr_file| %>
6
- <%= esr_file.inputs do %>
7
- <%= esr_file.input :file %>
8
- <%= esr_file.input :file_cache, :as => :hidden %>
9
- <%- end %>
10
- <%= esr_file.buttons do %>
11
- <%= esr_file.commit_button %>
12
- <%- end %>
13
- <% end %>
@@ -1,6 +0,0 @@
1
- <tr id="esr_file_<%= item.id %>">
2
- <td><%= link_to l(item.updated_at), esr_booking_path(item) %></td>
3
- <td style="text-align: right"><%=h item.esr_records.valid.count %></td>
4
- <td style="text-align: right"><%=h item.esr_records.invalid.count %></td>
5
- <td style="text-align: right"><%=h sprintf("%0.2f", item.esr_records.sum(:amount) || 0.0) %></td>
6
- </tr>
@@ -1,3 +0,0 @@
1
- <tr>
2
- <th colspan="5" style="text-align: right"><%= will_paginate @esr_files, :params => {:query => params[:query]} %></th>
3
- </tr>
@@ -1,7 +0,0 @@
1
- <tr>
2
- <th>Verbucht am</th>
3
- <th>Buchungen</th>
4
- <th>Fehlerhafte Buchungen</th>
5
- <th style="text-align: right">Total (inkl. fehlerh.)</th>
6
- <th/>
7
- </tr>
@@ -1,21 +0,0 @@
1
- <table class="list" style="width: 100%">
2
- <tr>
3
- <th>Valuta Datum</th>
4
- <th>Patient</th>
5
- <th>Status</th>
6
- <th style="text-align: right">Rechnungsbetrag</th>
7
- <th style="text-align: right">Bezahlbetrag</th>
8
- <th style="text-align: right">Saldo</th>
9
- </tr>
10
-
11
- <% for esr_record in list_records %>
12
- <tr>
13
- <td><%=h esr_record.value_date %></td>
14
- <td><%= link_to esr_record.invoice.patient.to_s, esr_record.invoice if esr_record.invoice %></td>
15
- <td><%= esr_record.invoice ? link_to(esr_record.remarks, esr_record.invoice) : esr_record.remarks %></td>
16
- <td style="text-align: right"><%=h sprintf("%0.2f", esr_record.invoice.amount.currency_round) if esr_record.invoice %></td>
17
- <td style="text-align: right"><%=h sprintf("%0.2f", esr_record.amount.currency_round) %></td>
18
- <td style="text-align: right"><%=h sprintf("%0.2f", esr_record.invoice.due_amount.currency_round) if esr_record.invoice %></td>
19
- </tr>
20
- <% end %>
21
- </table>
@@ -1,10 +0,0 @@
1
- <% content_for :sidebar do %>
2
- <div class="sub-tabs">
3
- <h3>Ältere Buchungsläufe</h3>
4
- <ul>
5
- <% for esr_file in EsrFile.find :all, :limit => 10, :order => 'updated_at DESC' %>
6
- <li><%= link_to esr_file.to_s(:short), esr_booking_path(esr_file) %></li>
7
- <% end %>
8
- </ul>
9
- </div>
10
- <% end %>
@@ -1,14 +0,0 @@
1
- <div class="contextual">
2
- <%= link_to "VESR Datei einlesen", new_esr_booking_path, :class => "icon icon-book" %>
3
- </div>
4
-
5
- <h2>VESR Buchungsläufe</h2>
6
- <div id="vesr_list">
7
- <table class="list">
8
- <%= render :partial => 'esr_bookings/list_header' %>
9
- <%= render :partial => 'esr_bookings/item', :collection => @esr_files %>
10
- <%= render :partial => 'esr_bookings/list_footer' %>
11
- </table>
12
- </div>
13
-
14
- <%= render :partial => 'sidebar' %>
@@ -1,18 +0,0 @@
1
- <div class="contextual">
2
- <%= link_to_function "Protokoll drucken", 'window.print()', :class => "icon icon-print" %>
3
- <%= link_to "VESR Liste", esr_bookings_path, :class => "icon icon-book" %>
4
- </div>
5
- <h2>VESR Protokoll vom <%= l(@esr_file.updated_at.to_date) %></h2>
6
- <%= render :partial => 'list_records', :object => @esr_file.esr_records.valid %>
7
-
8
- <% unless @esr_file.esr_records.bad.empty? %>
9
- <h3>Falscher Betrag</h3>
10
- <%= render :partial => 'list_records', :object => @esr_file.esr_records.bad %>
11
- <% end %>
12
-
13
- <% unless @esr_file.esr_records.missing.empty? %>
14
- <h3>Rechnung nicht gefunden</h3>
15
- <%= render :partial => 'list_records', :object => @esr_file.esr_records.missing %>
16
- <% end %>
17
-
18
- <%= render :partial => 'sidebar' %>