2020-09-08 06:12:14 +00:00
|
|
|
<% # encoding: utf-8 %>
|
|
|
|
<% @@session = session %>
|
|
|
|
<%= yield %>
|
|
|
|
<%
|
|
|
|
data = action_data
|
|
|
|
@venue_management_bill = data["venue_management_bill"]
|
|
|
|
@params = data['params']
|
|
|
|
%>
|
|
|
|
|
|
|
|
<table class="table table-striped venue_managementive-show-table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('venue_management.title') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.venue_management_main.title %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.contractor') %></th>
|
|
|
|
<td class="venue_managementive-title-value">
|
|
|
|
<% contractors = @venue_management_bill.contractor.display_contractors rescue "" %>
|
|
|
|
<% contractors = t(:empty) if contractors.blank? %>
|
|
|
|
<%= contractors %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.accounting_month') %></th>
|
2020-09-14 14:55:39 +00:00
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.display_accounting_month %></td>
|
2020-09-08 06:12:14 +00:00
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.bill_type') %></th>
|
2020-09-08 08:32:08 +00:00
|
|
|
<td class="venue_managementive-title-value"><%= "#{t("vm_bill.#{@venue_management_bill.bill_typeA}")}/#{t("vm_bill.#{@venue_management_bill.bill_typeB}")}" %>
|
|
|
|
<% if @venue_management_bill.bill_typeB == 'other' && @venue_management_bill.bill_other.present? %>
|
|
|
|
-<%=@venue_management_bill.bill_other%>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
2020-09-08 06:12:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.caculation_basis') %></th>
|
2020-10-02 07:53:48 +00:00
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.display_caculation_basis %></td>
|
2020-09-08 06:12:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.reason') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.reason %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-10-05 16:09:17 +00:00
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.total_amount') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.total_amount %></td>
|
2020-09-08 06:12:14 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.pay_date') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.pay_date %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.pay_method') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.pay_method %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('vm_bill.note') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_bill.note %></td>
|
|
|
|
</tr>
|
|
|
|
<% if !@venue_management_bill.venue_management_files.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-fw fa-paperclip"></i><%= t(:file_) %></th>
|
|
|
|
<td class="venue_managementive-title-value">
|
|
|
|
<% @venue_management_bill.venue_management_files.map do |file| %>
|
|
|
|
<%= link_to (file.title.blank? ? File.basename(file.file.path) : file.title) , file.file.url, {:target => '_blank', :title => file.description} if file.file.file %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% if !@venue_management_bill.venue_management_links.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-fw fa-link"></i><%= t(:link) %></th>
|
|
|
|
<td class="venue_managementive-title-value">
|
|
|
|
<% @venue_management_bill.venue_management_links.map do |link| %>
|
|
|
|
<%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<%= link_to t(:close), 'javascript:window.close();', :class => 'btn btn-primary' %>
|