Skip to content

Commit

Permalink
fix(tax-integrations): condition for displaying sync action (#2490)
Browse files Browse the repository at this point in the history
## Context

Currently Anrok integration is being implemented

## Description

This PR fixes tax_provider_voidable in GQL context
  • Loading branch information
lovrocolic authored Aug 27, 2024
1 parent dda3814 commit 75aeec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/types/invoices/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def integration_syncable
end

def tax_provider_voidable
return false unless object.voided?
return false if !object.voided? && !object.payment_dispute_lost_at

object.error_details.tax_voiding_error.any?
end
Expand Down

0 comments on commit 75aeec2

Please sign in to comment.