private void createLeaseTermsForOxfMiracl005(final ExecutionContext executionContext) { // prereqs if (isExecutePrereqs()) { executionContext.executeChild(this, new _LeaseForOxfMiracl005Gb()); } // exec final Lease lease = leases.findLeaseByReference(LEASE_REF); createLeaseTermForIndexableRent( LEASE_REF, AT_PATH, lease.getStartDate(), null, bd(150000), null, null, null, INDEX_REF_IT, executionContext); createLeaseTermForIndexableRent( LEASE_REF, AT_PATH, ld(2015, 1, 1), null, null, ld(2013, 11, 1), ld(2014, 12, 1), null, INDEX_REF_IT, executionContext); }
private void createLeaseTermsForOxfTopModel001(ExecutionContext executionContext) { // prereqs if (isExecutePrereqs()) { execute(new LeaseForOxfTopModel001(), executionContext); } // exec Lease lease = leases.findLeaseByReference(LeaseForOxfTopModel001.LEASE_REFERENCE); createLeaseTermForServiceCharge(lease, lease.getStartDate(), null, bd(6000), executionContext); }
@Before public void setUp() throws Exception { leaseTopModel = leases.findLeaseByReference("OXF-TOPMODEL-001"); leaseTopModelServiceChargeItem = leaseTopModel.findItem(LeaseItemType.SERVICE_CHARGE, VT.ld(2010, 7, 15), VT.bi(1)); assertNotNull(leaseTopModelServiceChargeItem); leaseTopModelRentItem = leaseTopModel.findItem(LeaseItemType.RENT, VT.ld(2010, 7, 15), VT.bi(1)); assertNotNull(leaseTopModelRentItem); }
private void createLeaseTermsForOxfMiracl005(final ExecutionContext executionContext) { // prereqs if (isExecutePrereqs()) { executionContext.executeChild(this, new _LeaseForOxfMiracl005Gb()); } // exec final Lease lease = leases.findLeaseByReference(LEASE_REF); createLeaseTermForTurnoverRent( LEASE_REF, AT_PATH, lease.getStartDate(), null, "7", executionContext); }
private void createLeaseTermsForOxfTopModel001(final ExecutionContext executionContext) { // prereqs if (isExecutePrereqs()) { executionContext.executeChild(this, new LeaseForOxfTopModel001Gb()); } // exec final Lease lease = leases.findLeaseByReference(LEASE_REF); createLeaseTermForEntryFee( LEASE_REF, AT_PATH, lease.getStartDate(), null, bd(5000), executionContext); }
public Guarantee newGuarantee( final Lease lease, final String reference, final String name, final GuaranteeType guaranteeType, final LocalDate startDate, final LocalDate endDate, final String description, final BigDecimal contractualAmount, final BigDecimal startAmount) { AgreementRoleType artGuarantee = agreementRoleTypeRepository.findByTitle(GuaranteeConstants.ART_GUARANTEE); Party leasePrimaryParty = lease.getPrimaryParty(); AgreementRoleType artGuarantor = agreementRoleTypeRepository.findByTitle(GuaranteeConstants.ART_GUARANTOR); Party leaseSecondaryParty = lease.getSecondaryParty(); Guarantee guarantee = newTransientInstance(Guarantee.class); final AgreementType at = agreementTypeRepository.find(GuaranteeConstants.AT_GUARANTEE); guarantee.setType(at); guarantee.setReference(reference); guarantee.setDescription(description); guarantee.setName(name); guarantee.setStartDate(startDate); guarantee.setEndDate(endDate); guarantee.setGuaranteeType(guaranteeType); guarantee.setLease(lease); guarantee.setContractualAmount(contractualAmount); guarantee.newRole(artGuarantee, leasePrimaryParty, null, null); guarantee.newRole(artGuarantor, leaseSecondaryParty, null, null); FinancialAccountType financialAccountType = guaranteeType.getFinancialAccountType(); if (financialAccountType != null) { FinancialAccount financialAccount = financialAccounts.newFinancialAccount( financialAccountType, reference, name, leaseSecondaryParty); guarantee.setFinancialAccount(financialAccount); if (ObjectUtils.compare(startAmount, BigDecimal.ZERO) > 0) { financialAccountTransactions.newTransaction( guarantee.getFinancialAccount(), startDate, null, startAmount); } } persistIfNotAlready(guarantee); return guarantee; }