test(core): the adapter reads due dates from the engine
The bookspec adapter took a custom terms' due date by parsing the example's terms text, which sidestepped the engine bug that custom terms were due on the document's own date, so no example could catch it. It now takes every due date, custom included, from Terms::due_date; an example on "Due 2026-11-15" passes only if the engine computes 2026-11-15 (BS-arap-3). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
71a4e7e59d
commit
e6c0d0d51b
2 files changed
+11
-19
No files matched your search
@@ -55,8 +55,8 @@ pub(crate) use ledger_core::{
|
||||
InstrumentId, InstrumentKind, InvoiceFields, Ledger, LedgerError, MemberCapital, MemberClose,
|
||||
Money, NewAsset, NewSchedule, PartyId, PartyMember, PartyShare, PaymentAccounts,
|
||||
ReconcilingKind, Role, ScheduleConvention, ScheduleId, ScheduleKind, Share, Side, Terms,
|
||||
TermsKind, TinFacts, TinType, VendorId, W9Facts, cash_flow, members_equity,
|
||||
profit_and_loss_for_period, trial_balance_as_of, vendor_1099_report,
|
||||
TinFacts, TinType, VendorId, W9Facts, cash_flow, members_equity, profit_and_loss_for_period,
|
||||
trial_balance_as_of, vendor_1099_report,
|
||||
};
|
||||
pub(crate) use ledger_store::{DepreciationRun, DisposalPreview, Store, StoreError};
|
||||
pub(crate) use rust_decimal::Decimal;
|
||||
|
||||
Reference in new issue
Block a user