>
- <%= distribution_row.id %> |
- <%= distribution_row.partner.name %> |
- <%= distribution_row.created_at.strftime("%m/%d/%Y") %> |
- <%= (distribution_row.issued_at.presence || distribution_row.created_at).strftime("%m/%d/%Y") %> |
- <%= distribution_row.storage_location.name %> |
+ <%= distribution_row.id %> |
+ <%= distribution_row.partner.name %> |
+ <%= distribution_row.created_at.strftime("%m/%d/%Y") %> |
+ <%= (distribution_row.issued_at.presence || distribution_row.created_at).strftime("%m/%d/%Y") %> |
+ <%= distribution_row.storage_location.name %> |
- <%= @distribution_totals.fetch_quantity(distribution_row.id) %> |
- <%= dollar_value(@distribution_totals.fetch_value(distribution_row.id)) %> |
- <%= distribution_row.delivery_method.humanize %> |
- <%= distribution_shipping_cost(distribution_row.shipping_cost) %> |
- <%= distribution_row.comment %> |
- <%= distribution_row.state&.humanize %> |
+ <%= @distribution_totals.fetch_quantity(distribution_row.id) %> |
+ <%= dollar_value(@distribution_totals.fetch_value(distribution_row.id)) %> |
+ <%= distribution_row.delivery_method.humanize %> |
+ <%= distribution_shipping_cost(distribution_row.shipping_cost) %> |
+ <%= distribution_row.comment %> |
+ <%= distribution_row.state&.humanize %> |
<% distribution_has_inactive_item = @distributions_with_inactive_items.include?(distribution_row.id) %>
-
+ |
<%= view_button_to distribution_path(distribution_row) %>
<% if (!distribution_row.complete? && !distribution_row.future?) || current_user.has_cached_role?(Role::ORG_ADMIN, current_organization) %>
<%= edit_button_to edit_distribution_path(distribution_row), enabled: !distribution_has_inactive_item %>
diff --git a/app/views/distributions/index.html.erb b/app/views/distributions/index.html.erb
index e702720aae..6b0dbe20b0 100644
--- a/app/views/distributions/index.html.erb
+++ b/app/views/distributions/index.html.erb
@@ -97,29 +97,29 @@
- ID |
- Partner |
- Initial Allocation |
- Date of Distribution |
- Source Inventory |
+ ID |
+ Partner |
+ Initial Allocation |
+ Date of Distribution |
+ Source Inventory |
<% if filter_params[:by_item_id].present? %>
- Total <%= @items.find { |i| i.id == filter_params[:by_item_id].to_i }&.name %> |
+ Total <%= @items.find { |i| i.id == filter_params[:by_item_id].to_i }&.name %> |
<% elsif filter_params[:by_item_category_id].present? %>
- Total in <%= @item_categories.find { |ic| ic.id == filter_params[:by_item_category_id].to_i }&.name %> |
+ Total in <%= @item_categories.find { |ic| ic.id == filter_params[:by_item_category_id].to_i }&.name %> |
<% else %>
- Total Items |
+ Total Items |
<% end %>
- Total Value |
+ Total Value |
- Delivery Method |
- Shipping Cost |
- Comments |
- Status |
- Actions |
+ Delivery Method |
+ Shipping Cost |
+ Comments |
+ Status |
+ Actions |
diff --git a/app/views/purchases/_purchase_row.html.erb b/app/views/purchases/_purchase_row.html.erb
index b2f48fb04c..9251c6a4ce 100644
--- a/app/views/purchases/_purchase_row.html.erb
+++ b/app/views/purchases/_purchase_row.html.erb
@@ -1,12 +1,12 @@
- <%= purchase_row.purchased_from_view %> |
- <%= purchase_row.storage_location.name %> |
- <%= purchase_row.comment %> |
- <%= purchase_row.line_items.total %> |
- <%= purchase_row.line_items.size %> |
- <%= dollar_value(purchase_row.amount_spent_in_cents) %> |
- <%= dollar_value(purchase_row.value_per_itemizable) %> |
- <%= purchase_row.issued_at.strftime("%F") %> |
+ <%= purchase_row.purchased_from_view %> |
+ <%= purchase_row.storage_location.name %> |
+ <%= purchase_row.comment %> |
+ <%= purchase_row.line_items.total %> |
+ <%= purchase_row.line_items.size %> |
+ <%= dollar_value(purchase_row.amount_spent_in_cents) %> |
+ <%= dollar_value(purchase_row.value_per_itemizable) %> |
+ <%= purchase_row.issued_at.strftime("%F") %> |
<%= view_button_to purchase_path(purchase_row) %>
|
diff --git a/app/views/purchases/index.html.erb b/app/views/purchases/index.html.erb
index 42f2d482f6..2e32849f90 100644
--- a/app/views/purchases/index.html.erb
+++ b/app/views/purchases/index.html.erb
@@ -77,14 +77,14 @@
- Purchases from |
- Storage Location |
- Comments |
- Quantity of Items |
- Variety of Items |
- Amount spent |
- FMV |
- Purchased Date |
+ Purchases from |
+ Storage Location |
+ Comments |
+ Quantity of Items |
+ Variety of Items |
+ Amount spent |
+ FMV |
+ Purchased Date |
Actions |
|