Scrap ERP v1.12.11 — Partner Ledger List Balances

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.
For a new installation, create an empty MySQL database and open install.php.

Investment > Partner Ledger now shows:
Code, Name, Phone, Investment Balance, Dasti Balance, Unpaid Profit Balance,
Profit Taken.
Each balance links to its partner ledger. Newest partners appear first.
Investment and Dasti include incoming transfers from allocated profit.
Unpaid profit = allocated profit minus cash payments and internal transfers.
Profit Taken = all posted cash/bank profit payments plus legacy Profit Taken.
Internal transfers are excluded from Profit Taken and included in their
respective Investment/Dasti balances. Reversed entries are excluded.
Existing active-partner filtering is preserved. No records are changed.

Local PHP/SQLite balance checks and PHP 8.2 syntax checks passed.
Not tested on your live hosting database.
