Cool idea: Make Loan.NextDueDate optional; clear it when complete

- Check "simple" loanMakePayment failure conditions early
This commit is contained in:
Ed Hennis
2025-10-05 16:03:38 -05:00
parent a8de91c57d
commit 0b8cd2d7ca
2 changed files with 42 additions and 27 deletions

View File

@@ -562,7 +562,7 @@ LEDGER_ENTRY(ltLOAN, 0x0089, Loan, loan, ({
{sfGracePeriod, soeREQUIRED},
{sfPeriodicPayment, soeREQUIRED},
{sfPreviousPaymentDate, soeDEFAULT},
{sfNextPaymentDueDate, soeREQUIRED},
{sfNextPaymentDueDate, soeOPTIONAL},
{sfPaymentRemaining, soeDEFAULT},
{sfPrincipalOutstanding, soeDEFAULT},
{sfTotalValueOutstanding, soeDEFAULT},