Add invoice functionality for orders with Stripe integration
This commit is contained in:
@@ -106,8 +106,6 @@ class OrdersController < ApplicationController
|
||||
end
|
||||
|
||||
# Display order summary
|
||||
#
|
||||
#
|
||||
def show
|
||||
@tickets = @order.tickets.includes(:ticket_type)
|
||||
end
|
||||
@@ -165,7 +163,7 @@ class OrdersController < ApplicationController
|
||||
end
|
||||
|
||||
@tickets = @order.tickets.includes(:ticket_type)
|
||||
|
||||
|
||||
# Get the Stripe invoice if it exists
|
||||
begin
|
||||
@stripe_invoice_id = @order.create_stripe_invoice!
|
||||
|
||||
@@ -20,4 +20,4 @@ class OrdersControllerInvoiceTest < ActionDispatch::IntegrationTest
|
||||
assert_redirected_to order_url(draft_order)
|
||||
assert_equal "La facture n'est disponible qu'après le paiement de la commande", flash[:alert]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user