mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(bug) fix cant set payment_method if admin pay a reservation himself in invoice
This commit is contained in:
parent
a8623487fd
commit
42be9ae3e7
@ -73,7 +73,7 @@ class InvoicesService
|
||||
method = if payment_method
|
||||
payment_method
|
||||
else
|
||||
operator&.admin? || (operator&.manager? && operator != user) ? nil : 'card'
|
||||
(operator&.admin? || operator&.manager?) && operator != user ? nil : 'card'
|
||||
end
|
||||
|
||||
invoice = Invoice.new(
|
||||
|
Loading…
x
Reference in New Issue
Block a user