JAN ERP V3.2 — Company Portal

Workflow
Company Login → Customer submits order → JAN marks Delivered → Payout Date = Delivery Date + Company Credit Days → Invoice generated automatically → Customer sees invoice in portal.

Install

  1. Take a File Manager + phpMyAdmin backup.
  2. Upload this ZIP inside /home2/doctorlabs/public_html/jan.doctorlabs.in.
  3. Extract and overwrite existing files.
  4. Login as Full Admin.
  5. Open https://jan.doctorlabs.in/upgrade_v3_2.php.
  6. Run the V3.2 upgrade.
  7. Go to Users & Roles → Create User → Role: Company Portal → choose the linked Company.

Company security

Company users are isolated from the internal ERP. They can see only their own company orders and invoices. They cannot see JAN buy prices, investment, profit, other companies, suppliers, investors, internal reports or admin pages.

Payout / Invoice rule

The payout date is no longer assigned at order creation. It is assigned only at actual delivery confirmation. Example: Delivered 20-Sep with 30 credit days → payout/invoice due date 20-Oct.