mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-12 06:54:19 +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
|
method = if payment_method
|
||||||
payment_method
|
payment_method
|
||||||
else
|
else
|
||||||
operator&.admin? || (operator&.manager? && operator != user) ? nil : 'card'
|
(operator&.admin? || operator&.manager?) && operator != user ? nil : 'card'
|
||||||
end
|
end
|
||||||
|
|
||||||
invoice = Invoice.new(
|
invoice = Invoice.new(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user