Sha256: 88533e307e36040eef6bf7060c04a5da03a94f0e029a9ed4cabf358cdfd83bc1

Contents?: true

Size: 620 Bytes

Versions: 12

Compression:

Stored size: 620 Bytes

Contents

$('#order_tab_summary #order_status').html('<%= j Spree.t(@order.state, scope: :order_state) %>');
$('#order_tab_summary #order_total').html('<%= j @order.display_total.to_html %>');

<% if @order.completed? %>
  <% if @order.payment_state.present? %>
    $('#order_tab_summary #payment_status').html('<%= j Spree.t(@order.payment_state, scope: :payment_states, default: [:missing, "none"]) %>');
  <% end %>
  <% if @order.shipment_state.present? %>
    $('#order_tab_summary #shipment_status').html('<%= j Spree.t(@order.shipment_state, scope: :shipment_state, default: [:missing, "none"]) %>');
  <% end %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.8.3 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.8.2 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.8.1 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.7.2 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.6.2 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.7.1 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.7.0 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.6.1 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.6.0 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.5.1 app/views/spree/admin/shared/_update_order_state.js.erb
spree_backend-4.5.0 app/views/spree/admin/shared/_update_order_state.js.erb