Skip to content

Commit

Permalink
feat(manual-payments): Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad committed Jan 28, 2025
1 parent fc21d02 commit c2528c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/payments/manual_create_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def invoice
def check_preconditions
return result.not_found_failure!(resource: "invoice") unless invoice
return if invoice.invoice_type == "advance_charges"
return result.forbidden_failure! if !License.premium? && !invoice.organization.premium_integrations.include?('manual_payments')
return result.forbidden_failure! if !License.premium? || !invoice.organization.premium_integrations.include?('manual_payments')
result.single_validation_failure!(error_code: "invalid_date", field: "paid_at") unless valid_paid_at?
end

Expand Down

0 comments on commit c2528c6

Please sign in to comment.