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());