showVatForQuarterly = expensesAnnotation.getUseQuarterly()
&& expensesAnnotation.getAppliesVAT();
vat = expensesAnnotation.getVat();
baseImponible = expensesAnnotation.getBaseImponibleQuarterly();
} else if (annotation instanceof PropertyIncomeAnnotation) {
PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
showVatForQuarterly = incomeAnnotation.getAppliesRetentionAndVAT();
vat = incomeAnnotation.getVat();
baseImponible = incomeAnnotation.getBaseImponibleQuarterly();
}
if (showVatForQuarterly) {
Double retentionAmount = baseImponible * vat / 100.0;
Double retentionPercentage = vat;
return NumberFomatter.formatMoney(retentionAmount) + " ("