From 75aeec2c1446031680aa1bb5ea32c9c08bba3f2d Mon Sep 17 00:00:00 2001 From: LovroColic Date: Tue, 27 Aug 2024 14:37:55 +0200 Subject: [PATCH] fix(tax-integrations): condition for displaying sync action (#2490) ## Context Currently Anrok integration is being implemented ## Description This PR fixes tax_provider_voidable in GQL context --- app/graphql/types/invoices/object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/types/invoices/object.rb b/app/graphql/types/invoices/object.rb index f24a9e2caf9..445fa611dd3 100644 --- a/app/graphql/types/invoices/object.rb +++ b/app/graphql/types/invoices/object.rb @@ -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