effective_orders 6.4.1 → 6.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b2ac16660da3661a37cd0bfddce1f01e0dd08e777b818fc78418dc76d07afaf
4
- data.tar.gz: 2ed1b6cb0b366715d83832f080c486beb595e9b76cba13b0657513b9d755bfaf
3
+ metadata.gz: 5a371a84dd348663eabe1728035f0d108e44b21111e4a38fc7a778e6576ee48f
4
+ data.tar.gz: 36a5ed6f038fd14367e5c406799b03837d93cdd9cd031c0d1869cffbde1b23e6
5
5
  SHA512:
6
- metadata.gz: 87e3f8815fc4e3782a09656b0336e5e4d772fbf5dcc7576e297ecf56e768bc4b4295a33a80d40c786bb234ce6f2cbefedfcc245fbc216763820c8331feb7add5
7
- data.tar.gz: efcc30af59f519feeb7bad02c4f0ad163a9d17575fe0ce15aabadaca57fbe7e2bc800361a581912377abb4a25d5dbe61cf02f54d24ae586c45a4b4199bdd08ec
6
+ metadata.gz: 5f43a51228b5cd9c7d48d2e1aa71e81accbff00ac577c9fd6325753ee2c71b711e9a6626c76fbaa8bd9dbe8f8f061eda59811b5f0ed450627fa2a78aaa9a047b
7
+ data.tar.gz: a8055b0237b9315919fc6010e44046d74635d2a510658e7a6ae850305851076535b32ee7129f1fd455204d47f4a09dd15018c0989c7017a35351f702f8b2e7f8
@@ -104,6 +104,20 @@ module Effective
104
104
  EffectiveResources.authorize!(self, :show, @order)
105
105
  end
106
106
 
107
+ def send_buyer_receipt
108
+ @order = Effective::Order.purchased.find(params[:id])
109
+
110
+ EffectiveResources.authorize!(self, :show, @order)
111
+
112
+ if @order.send_order_receipt_to_buyer!
113
+ flash[:success] = "A receipt has been sent to #{@order.emails_send_to}"
114
+ else
115
+ flash[:danger] = "Unable to send receipt."
116
+ end
117
+
118
+ redirect_to effective_orders.order_path(@order)
119
+ end
120
+
107
121
  def bulk_send_buyer_receipt
108
122
  @orders = Effective::Order.purchased.where(id: params[:ids])
109
123
 
@@ -13,4 +13,4 @@
13
13
 
14
14
  - if order.persisted? && order.respond_to?(:logs_datatable)
15
15
  = tab 'Logs' do
16
- .effective-order-admin-logs= render_inline_datatable(order.logs_datatable)
16
+ .effective-order-admin-logs= render_inline_datatable(order.log_changes_datatable)
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.4.1'.freeze
2
+ VERSION = '6.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.1
4
+ version: 6.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-29 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails