S++Core systems, human-reviewable
DEMO SOURCE · SPP / APP / PHYRead the book

bankdeposit-scene-openBankRepaymentAccounts.spp

bankdeposit/account/bankdeposit-scene-openBankRepaymentAccounts.spp

Download original file · Bank deposit source contents

1domain bankdeposit;23Scenario serial openBankRepaymentAccounts(4    InterestSubject,5    CollectionSubject,6    PrincipalSubject,7    InterestIncomeAccount,8    CollectionInterestIncomeAccount,9    PrincipalRecoveryAccount,10    InternalAccountOpeningAgreement11) {12    checkInternalAccountNumbers(interestSubject, collectionSubject, principalSubject);13    prepareInternalAccounts(14        interestSubject,15        collectionSubject,16        principalSubject,17        interestIncomeAccount,18        collectionInterestIncomeAccount,19        principalRecoveryAccount,20        internalAccountOpeningAgreement21    );22    transaction {23        insertInterestSubject(interestSubject);24        insertCollectionSubject(collectionSubject);25        insertPrincipalSubject(principalSubject);26        insertInterestIncomeAccount;27        insertCollectionInterestIncomeAccount;28        insertPrincipalRecoveryAccount;29    }30}