From 177d75c13a8387116fb5071b53ef4dcb616d8e03 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Fri, 13 Jun 2025 13:58:15 +0200 Subject: [PATCH] zoho - taxid - export --- .../main/java/com/alexanderlogistics/zoho/ZohoAPIService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/zoho/ZohoAPIService.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/zoho/ZohoAPIService.java index 1cf8fb0..454f213 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/zoho/ZohoAPIService.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/zoho/ZohoAPIService.java @@ -152,6 +152,9 @@ public class ZohoAPIService { public String findTaxIDByPercentage(float tax_percentage, String accessToken) throws PluginException { + if (tax_percentage == 0.0) { + return null; + } // Print JSON to console for verification logger.info("├── Zoho lookup tax '" + tax_percentage + "'..."); try { @@ -189,6 +192,7 @@ public class ZohoAPIService { } } } + logger.warning("│ ├── No tax with " + tax_percentage + "% found in Zoho taxes!"); } catch (IOException | InterruptedException e) { throw new PluginException(this.getClass().getName(), "Zoho API error", "Failed to find tax: " + e.getMessage());