>
<% unless @available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank? %>
<% unless @available_invoice_item_tags.blank? %>
Tag as:
<%= render :partial => 'kaui/bundle_tags/form_bar',
:locals => {:params => { :invoice_id => item.invoice_id, :account_id => item.account_id},
:tag_names => (@tags_per_invoice_item[item.invoice_item_id] || []).map { |tag| tag.tag_definition_name },
:available_tags => @available_invoice_item_tags,
:update_tags_path => update_invoice_items_tags_path(item.invoice_item_id)
} %>
<% end %>
<%= render :partial => 'kaui/custom_fields/list_bar',
:locals => {:custom_fields => @custom_fields_per_invoice_item[item.invoice_item_id] || []} %>
|
<% end %>
<%= item.pretty_plan_name.blank? || !item.item_type.in?(%w{USAGE RECURRING}) ? item.description : item.pretty_plan_name %> |
<%= item.start_date.html_safe if item.start_date %> |
<%= item.end_date.html_safe if item.end_date %> |
<%= item.subscription_id %> |
<%= humanized_money_with_symbol Kaui::InvoiceItem.amount_to_money(item) %>
(<%= item.currency %>)
|
<%= item.audit_logs.map { |log| log.comments }.compact.join(' ') if item.audit_logs.present? %> |
<% if can? :item_adjust, Kaui::Invoice %>
<%= link_to 'Adjust',
kaui_engine.edit_account_invoice_item_path(@invoice.account_id, item.invoice_item_id, :invoice_id => @invoice.invoice_id),
:class => "btn btn-xs #{'disabled' unless item.amount > 0}" %>
<% end %>
|
<% end %>