QuadooScript SQLite Account Ledger
=================================

This example is configured for 32-bit (Win32) Quadoo Studio. It includes the
matching Win32 QSDB.dll and SimbeyDB.dll in Modules and fictional sample data.

1. Extract the complete ZIP to a writable folder.
2. Open LedgerExample.qsproj in a current 32-bit Quadoo Studio build.
3. Choose Project > Start Without Debugging (Ctrl+F5).

Keep AQVMT.bin and the matching runtime DLLs beside QuadooStudio.exe. Application
debugging (F5) and the separate Compile/export command are not this build path.
Project > Settings already lists Modules\SimbeyDB.dll and Modules\QSDB.dll.
Studio copies them beside the application executable during a successful build.

The seeded database is bin\Win32\ledger.sqlite, beside the generated executable.
It contains eight fictional transactions with an ending balance of $4099.38.
The database is intentionally not a module dependency: rebuilding must not
overwrite it. Keep this folder writable. No database server or registration is
required. The app uses the executable directory, not its working directory.
If the file is missing, the app creates an empty ledger without reseeding it.

Main form: select a row, then Edit selected or Delete selected. Add transaction
opens a separate owned modal form. Save validates and writes to SQLite; Cancel
and closing the popup do not write. Deletion asks for confirmation. Refresh
reloads the records and the balance from SQLite.

RecType is Payment or Deposit. Amount is a positive integer number of cents;
RecType determines whether it decreases or increases the ending balance.
The popup accepts amounts such as 12.34 without signs, currency symbols, or
commas. Use ISO dates (YYYY-MM-DD); CheckNum is optional text, preserving zeros.

Sources:
- LedgerData.quadoo: direct-session SQL, bound parameters, validation, formatting
- LedgerForm.quadoo / .qform.json: report ListView and nonvisual DBPlugin
- AddTransactionForm.quadoo / .qform.json: owned modal creation and insertion
- EditTransactionForm.quadoo / .qform.json: owned modal editing by LedgerID
- schema.sql: table definition (the runtime also ensures the table exists)

Distribution: copy LedgerExample.exe, QuadooForm.dll, QuadooVM.dll,
QuadooParser.dll, JSON.dll, SimbeyCore.dll, QSDB.dll, SimbeyDB.dll, and
ledger.sqlite to a writable folder. Supply the matching Visual C++ 2008 CRT.
Back up data before replacing a distribution; do not overwrite a live ledger
with the sample database. Native application binaries are not included here,
apart from the two explicitly declared plugin dependencies in Modules.

For x64, replace both Modules DLLs with matching x64 binaries, use x64 Studio
and runtime/template, and copy the desired ledger.sqlite to bin\x64 before the
first run. This archive was tested with the Win32 release build.

Documentation and screenshots: http://localhost/qs/ledger.html on the local site.
For another server, open ledger.html in the QuadooScript website's qs folder.
