Search in sources :

Example 16 with BankReconciliation

use of com.axelor.apps.bankpayment.db.BankReconciliation in project axelor-open-suite by axelor.

the class BankReconciliationController method setBankDetailsDomain.

public void setBankDetailsDomain(ActionRequest request, ActionResponse response) {
    BankReconciliation bankReconciliation = request.getContext().asType(BankReconciliation.class);
    String domain = Beans.get(BankReconciliationService.class).createDomainForBankDetails(bankReconciliation);
    // if nothing was found for the domain, we set it at a default value.
    if (domain.equals("")) {
        response.setAttr("bankDetails", "domain", "self.id IN (0)");
    } else {
        response.setAttr("bankDetails", "domain", domain);
    }
}
Also used : BankReconciliationService(com.axelor.apps.bankpayment.service.bankreconciliation.BankReconciliationService) BankReconciliation(com.axelor.apps.bankpayment.db.BankReconciliation)

Aggregations

BankReconciliation (com.axelor.apps.bankpayment.db.BankReconciliation)16 BankReconciliationService (com.axelor.apps.bankpayment.service.bankreconciliation.BankReconciliationService)5 BankReconciliationValidateService (com.axelor.apps.bankpayment.service.bankreconciliation.BankReconciliationValidateService)2 Company (com.axelor.apps.base.db.Company)2 Context (com.axelor.rpc.Context)2 LocalDate (java.time.LocalDate)2 Account (com.axelor.apps.account.db.Account)1 Journal (com.axelor.apps.account.db.Journal)1 Move (com.axelor.apps.account.db.Move)1 MoveLine (com.axelor.apps.account.db.MoveLine)1 BankReconciliationLine (com.axelor.apps.bankpayment.db.BankReconciliationLine)1 BankStatement (com.axelor.apps.bankpayment.db.BankStatement)1 BankReconciliationLineRepository (com.axelor.apps.bankpayment.db.repo.BankReconciliationLineRepository)1 BankReconciliationRepository (com.axelor.apps.bankpayment.db.repo.BankReconciliationRepository)1 BankReconciliationCreateService (com.axelor.apps.bankpayment.service.bankreconciliation.BankReconciliationCreateService)1 BankDetails (com.axelor.apps.base.db.BankDetails)1 Currency (com.axelor.apps.base.db.Currency)1 Partner (com.axelor.apps.base.db.Partner)1 Transactional (com.google.inject.persist.Transactional)1 BigDecimal (java.math.BigDecimal)1