=== RISET – Project Profit & Expense Tracker ===
Contributors: conexiq9, freemius
Tags: expense tracker, project management, contractor, daily wages, profit
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Project-wise expense and profit tracking for contractors, EPC firms and site businesses. Know your real profit on every project.

== Description ==

**The notebook tells you what you spent. RISET tells you what you made.**

RISET tracks every project's daily wages, materials, fuel, food and travelling — then shows you the number the site diary never could: your real net profit, per project, while the project is still running.

RISET — the RUDRAX-Inspired Site Expense Tracker — was born inside a working solar EPC company, tracking real site expenses and profit on live projects. It was then rebuilt from that hands-on experience for every contractor and site-based business.

= How it works =

1. Create a project with its sanctioned cost (order value)
2. Enter the day's expenses against it — wages auto-calculate from your Employee Master
3. Open the report: total value, expenses, category break-up and **net profit or loss**
4. Close the project to hard-lock it — your final numbers can never drift

= Everything in the free version =

* **Unlimited projects** with type, client and sanctioned cost — no artificial caps
* **Open/close workflow**: closing hard-locks a project server-side (no new expenses, no deletions); re-open anytime to record missed entries, then lock it again
* **Day-wise expense entry** against open projects: wages, tools, materials, travelling, fuel, food and your own custom categories
* **Employee Master** with designation, default daily wage and active/inactive status
* **Auto-calculated Daily Wages** — wage × days (half-days supported), locked and recomputed on the server so payroll entries can't be fat-fingered
* **Per-project report**: sanctioned cost, total expenses, category-wise break-up and net profit/loss
* **Extra work orders** — record additionally sanctioned work on any open project; Total Project Value = Sanctioned Cost + Extras, with a dated audit trail of when and why the number grew
* **Report date filters** — analyse any period of a project
* **Your currency, your format**: any symbol, before/after position, standard or Indian lakh/crore grouping (10,00,000), your decimals
* Respects your WordPress date format; fully translation-ready (175 translatable strings)
* **Your data stays yours**: everything lives in your own database, nothing leaves your server, and data survives uninstall by default (optional clean wipe)
* Security-first: nonces, capability checks, prepared statements and escaped output throughout

= RISET Pro — built for crews =

When your crew grows, [RISET Pro](https://conexiq.in/riset/) adds the features that save an hour a day:

* **Bulk Daily Wages** — tick the workers present, one wage entry each in a single click, with anyone already paid for that date skipped automatically
* **Employee advance ledger** — advances, cash recoveries and live outstanding balances
* **Wage adjustment against advance** — the wage stays a project cost while a linked recovery reduces the worker's debt
* **Employee-wise report break-up** — see exactly what each worker cost a project
* **CSV export** (accountant-ready, formula-injection safe) and print view
* **Full dashboard** — open-project margins, monthly spend, outstanding advances

= Who is this for? =

Civil and electrical contractors, solar/EPC installers, interior fit-out teams, labour contractors, fabricators, landscapers — anyone who runs projects with a crew on site and wants to know, honestly, whether each job made money.

== Installation ==

1. Go to Plugins → Add New → search for "RISET", or upload the zip via Upload Plugin
2. Activate, then set your currency under RISET → Settings
3. Add your workers in RISET → Employees
4. Create your first project and start entering the day's expenses

You'll have your first live profit report the same day.

== Frequently Asked Questions ==

= Is the free version limited by number of projects or entries? =

No. Unlimited projects, employees and expense entries, forever. The Pro version adds crew-scale features (bulk wage entry, the advance ledger, exports and the full dashboard) — it doesn't un-cripple the free one.

= Can expenses be entered on a closed project? =

No — closing hard-locks the project **server-side**, not just in the interface. Re-open it from the Projects page to record missed expenses, then close it again. That's what makes your final numbers trustworthy.

= How do auto-calculated wages work? =

Set each worker's default daily wage once in the Employee Master. When you record a Daily Wages expense, the amount is calculated as wage × days (half-days supported) and recomputed on the server — the client-side amount is ignored, so a mistyped figure can't corrupt payroll.

= Where does my financial data live? =

In your own WordPress database, on your own server. RISET is not a cloud service — nothing about your projects, wages or profits is sent anywhere. Your data even survives uninstalling the plugin, unless you explicitly enable the wipe option under Settings.

= Does it support Indian number formatting (lakh/crore)? =

Yes, natively — choose Indian digit grouping in Settings and ₹ 1,00,000 displays the way your accountant expects. Standard international grouping, any currency symbol and custom decimals are equally supported.

= Can my site supervisor enter expenses from a phone? =

Yes — the admin screens work in a mobile browser, so the day's expenses can be entered from the site itself.

= What happens when a worker takes an advance and works it off? (Pro) =

Exactly what should: the day's wage is still recorded as a project cost (the work was done), while a linked recovery reduces the worker's outstanding advance — fully or partially, your call. General advances never inflate a project's cost; they're recoverable amounts against the employee.

== Screenshots ==

1. Dashboard — every open project's spend, margin and outstanding advances at a glance.
2. Daily expenses — attendance-style bulk wage entry for the whole crew, with automatic duplicate skipping (Pro).
3. Project report — sanctioned cost, extra work, total expenses, net profit and category-wise break-up.
4. Employee advance ledger — advances worked off through wage-adjustment recoveries, with a live outstanding balance (Pro).

== Changelog ==

= 1.2.2 =
* Static-analysis hardening: all database queries now interpolate table names directly via $wpdb->prefix and pass every value through $wpdb->prepare() inline, resolving all Plugin Check errors.
* Fixed a fatal error on the Pro dashboard introduced during the 1.2.0 rename (call to a renamed internal method).
* Additional input unslashing/sanitization on admin notice and filter parameters.

= 1.2.1 =
* Extra work orders are now a free feature — record additionally sanctioned work on any project, no license needed.
* Free build cleanup: the free version no longer contains any premium-only code, database tables or helper methods.

= 1.2.0 =
* Plugin renamed to RISET – Project Profit & Expense Tracker.
* Report date filters are now available to everyone in the free version.
* Free build slimmed: it now contains only the code it uses.


= 1.1.4 =
* Code-quality hardening for the WordPress.org review: explicit output escaping on all formatted amounts, inlined query preparation, and unslash + sanitization on every request parameter.


= 1.1.3 =
* Housekeeping: plugin author account details for the WordPress.org directory.


= 1.1.2 =
* Expanded plugin listing: full description, FAQ and screenshot captions for the WordPress.org directory.


= 1.1.1 =
* Complete internationalization sweep — every interface string is now translatable, with proper plural forms for bulk wage messages.

= 1.1.0 =
* RISET is now freemium! A fully functional free version, with crew-scale features (bulk wages, advance ledger, extra work orders, exports, dashboard) in Pro.
* Contextual upgrade hints shown only where a Pro feature applies.

= 1.0.1 =
* RISET is now published by Conexiq (conexiq.in) — plugin and author links updated.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.2.2 =
Code-quality and security-analysis hardening; fixes a Pro dashboard error.

= 1.2.1 =
Extra work orders are now free for everyone.

= 1.2.0 =
Renamed to RISET; date filters now free for everyone.
