zoho - taxid - export

This commit is contained in:
Ralph Soika 2025-06-13 13:58:15 +02:00
parent 5105d20783
commit 177d75c13a

View file

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