use of org.estatio.module.financial.dom.FinancialAccount in project estatio by estatio.
the class Guarantee method changeGuaranteeType.
public void changeGuaranteeType(GuaranteeType guaranteeType) {
FinancialAccountType financialAccountType = guaranteeType.getFinancialAccountType();
if (financialAccountType != null) {
FinancialAccount financialAccount = financialAccountRepository.newFinancialAccount(financialAccountType, this.getReference(), this.getName(), this.getSecondaryParty());
this.setFinancialAccount(financialAccount);
}
this.setGuaranteeType(guaranteeType);
}
use of org.estatio.module.financial.dom.FinancialAccount in project estatio by estatio.
the class InvoiceAttributesVM method getSellerBankAccountBankName.
@Programmatic
public String getSellerBankAccountBankName() {
FinancialAccount financialAccount = invoice.getSellerBankAccount();
if (!(financialAccount instanceof BankAccount)) {
return null;
}
final BankAccount bankAccount = (BankAccount) financialAccount;
Party bank = bankAccount.getBank();
if (bank == null) {
return null;
}
return bank.getName();
}
use of org.estatio.module.financial.dom.FinancialAccount in project estatio by estatio.
the class InvoiceAttributesVM method getSellerBankAccountIban.
@Programmatic
public String getSellerBankAccountIban() {
FinancialAccount financialAccount = invoice.getSellerBankAccount();
if (!(financialAccount instanceof BankAccount)) {
return null;
}
final BankAccount bankAccount = (BankAccount) financialAccount;
return bankAccount.getIban();
}
Aggregations