• DevPilot's avatar
    feat(accounting): open any trial-balance account and read its history newest first · 1d1ec8ae
    DevPilot authored
    The trial balance showed a number with no way to ask where it came from. Every
    account row is now a link into that account's ledger, carrying the same date
    range and the same cost-centre/branch filters — so the movements you land on are
    exactly the ones that produced the figure you clicked.
    
    The ledger itself now reads newest first. The running balance is still
    accumulated in date order, because "the balance after this entry" only means
    anything with the earlier entries already in; the list is reversed after that
    accumulation, so the order flips and every balance still says what it says. The
    opening-balance row moved to the bottom accordingly — it is the oldest line on
    a newest-first list.
    
    Each entry number links to the full journal entry, so a line in one account
    opens the whole قيد with its other side. The reference type is shown under the
    reference number, which is usually what tells you which operation raised it.
    
    Verified against 779 movements on the cash account: order is newest first, the
    running balance on the top row equals the closing balance, and both screens
    render with 165 clickable rows and 779 entry links.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    1d1ec8ae
general_ledger.php 7.63 KB