1
0
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:
Du Peng 2022-11-07 16:04:53 +01:00
parent a8623487fd
commit 42be9ae3e7

View File

@ -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(