1272 - Deleted check for account exists
@@ -668,9 +668,6 @@ public class AccountResource extends JaxRsResourceBase {
final LocalDate startDate = startDateStr != null ? LOCAL_DATE_FORMATTER.parseLocalDate(startDateStr) : null;
final LocalDate endDate = endDateStr != null ? LOCAL_DATE_FORMATTER.parseLocalDate(endDateStr) : null;
- // Verify the account exists
- accountUserApi.getAccountById(accountId, tenantContext);
-
final List<Invoice> invoices;
if (unpaidInvoicesOnly) {
invoices = new ArrayList<Invoice>(invoiceApi.getUnpaidInvoicesByAccountId(accountId, startDate, endDate, tenantContext));
@@ -708,9 +705,6 @@ public class AccountResource extends JaxRsResourceBase {
final TenantContext tenantContext = context.createTenantContextWithAccountId(accountId, request);
- // Verify the account exists
- accountUserApi.getAccountById(accountId, tenantContext);
-
final Pagination<Invoice> invoices = invoiceApi.getInvoicesByAccount(accountId, offset, limit, tenantContext);
final Map<String, String> queryParams = new HashMap<>();
