Scrap ERP v1.12.10 — Separate Partner Ledgers

UPDATE
Back up your ERP folder and database. Replace application files using this
complete scrap-erp folder. Keep storage/config.php and storage/installed.lock.
No database updater is required for this update.

NEW INSTALLATION
Upload scrap-erp, create an empty MySQL database and open install.php.

OPEN
Investment > Partner Ledger > select a partner.
Four navigation buttons are available:
- All Entries (existing combined ledger)
- Investment Ledger: Date, Code, Action, Investment In, Investment Out,
  Investment Balance.
- Dasti Ledger: Date, Code, Action, Dasti In, Dasti Out, Dasti Balance.
- Profit Ledger: Date, Code, Action, Profit Allocation, Profit Distribution,
  Unpaid Profit Balance.

Investment and Dasti include transfers from allocated profit as incoming amounts.
Profit Distribution includes actual cash/bank payments and internal transfers to
Investment or Dasti. These transfers do not create cash movements.
Earlier Profit Taken entries not linked to allocations appear separately below
the profit ledger, avoiding a second deduction from allocated profit.
Each page shows its current balance, newest records first, linked record codes,
and 50 entries per page. Running balances include earlier pages.
Only posted records belonging to the selected company's partner are shown.
No existing transactions are modified or duplicated.

VALIDATION
PHP 8.2 syntax and local PHP/SQLite tests passed: investment and Dasti in/out,
profit transfers and unpaid balances, newest-first ordering, pagination,
company isolation and rendering of all ledger pages.
Not tested on your hosted MySQL server or in a graphical browser.
