mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #7749 from apricot12/remove_paypal_refund_button
Remove refund button from paypal completed order tab
This commit is contained in:
@@ -15,22 +15,3 @@
|
||||
= Spree.t(:transaction_id)
|
||||
\:
|
||||
%dd= payment.source.transaction_id
|
||||
- if payment.source.state != 'refunded'
|
||||
= button_link_to Spree.t('actions.refund', scope: :paypal),
|
||||
spree.paypal_refund_admin_order_payment_path(@order, payment),
|
||||
icon: 'icon-dollar'
|
||||
- else
|
||||
.alpha.six.columns
|
||||
%dl
|
||||
%dt
|
||||
= Spree.t(:state, scope: :paypal)
|
||||
\:
|
||||
%dd= payment.source.state.titleize
|
||||
%dt
|
||||
= Spree.t(:refunded_at, scope: :paypal)
|
||||
\:
|
||||
%dd= pretty_time(payment.source.refunded_at)
|
||||
%dt
|
||||
= Spree.t(:refund_transaction_id, scope: :paypal)
|
||||
\:
|
||||
%dd= payment.source.refund_transaction_id
|
||||
|
||||
Reference in New Issue
Block a user