zoho - taxid - export
This commit is contained in:
parent
5105d20783
commit
177d75c13a
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,9 @@ public class ZohoAPIService {
|
||||||
public String findTaxIDByPercentage(float tax_percentage, String accessToken)
|
public String findTaxIDByPercentage(float tax_percentage, String accessToken)
|
||||||
throws PluginException {
|
throws PluginException {
|
||||||
|
|
||||||
|
if (tax_percentage == 0.0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
// Print JSON to console for verification
|
// Print JSON to console for verification
|
||||||
logger.info("├── Zoho lookup tax '" + tax_percentage + "'...");
|
logger.info("├── Zoho lookup tax '" + tax_percentage + "'...");
|
||||||
try {
|
try {
|
||||||
|
|
@ -189,6 +192,7 @@ public class ZohoAPIService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
logger.warning("│ ├── No tax with " + tax_percentage + "% found in Zoho taxes!");
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
throw new PluginException(this.getClass().getName(), "Zoho API error",
|
throw new PluginException(this.getClass().getName(), "Zoho API error",
|
||||||
"Failed to find tax: " + e.getMessage());
|
"Failed to find tax: " + e.getMessage());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue