General Modules — Settings


⚙️ General Modules — Settings (biz1)
 



- What the General Modules Modal Is
 

The General Modules modal is the central administrative control hub of biz1.
 

It is a powerful backend tool designed specifically for system administrators, organization owners, and super-admin users. Unlike regular user features, this modal is built for system maintenance, regeneration, troubleshooting, data correction, and financial exports.
 

In simple terms, this is the “engine room” of biz1 — where admins can manually trigger core system processes that usually run automatically in the background.
 

You can think of it as:
 

A secure control dashboard for files, documents, users, invoices, and payment data.


This modal is typically used when:
 

  • files are missing or corrupted,

  • PDFs failed to generate,

  • users need a forced refresh,

  • document data needs cleanup,

  • financial records must be exported,

  • or payment card details need to be reviewed by authorized staff.

     

    - Where You Find It
     

    The General Modules modal is accessed from:
     

     Settings → General Modules
     

    When opened, it appears as a clean, single-step modal (1/1) with a clear layout divided into two columns:
     

  • Left column: System generation, document tools, and data cleanup.

  • Right column: Financial downloads and secure card details.
     

  • This separation makes the interface intuitive and easy to navigate.
     



    Left Column — System Maintenance & Generation Tools
     

    The left side of the modal contains powerful tools that create, regenerate, refresh, or delete system data.
     

    - Generate File for Single User
     

    This tool rebuilds internal system files for a specific user.

    The admin enters a User ID and clicks Submit.
     

    The system then:
     

  • locates the user,

  • identifies all users under the same owner,

  • regenerates organizational configuration files,

  • and rebuilds required backend structures.

  • This is commonly used when:

  • a user reports broken UI,

  • system files appear corrupted,

  • or new features were deployed and need regeneration.
     


  • - Generate File for All Users
     

    This is a global system action.
     

    With one click, the system regenerates internal files for every user in biz1.
     

    Because of its massive impact, this is usually used for:
     

  • major system updates,

  • platform-wide fixes,

  • or large migrations.

  • It loops through all users and rebuilds their backend configuration.
     



    - Generate Document PDF
     

    Sometimes a document exists in the system but its PDF version is missing or outdated.
     

    Here, the admin enters a Document ID and clicks Generate Document.
     

    The system:
     

  • loads the document data,

  • recreates the PDF file,

  • and saves the new PDF link in the database.
     

  • This is critical for:
     

  • invoices,

  • contracts,

  • official documents,

  • and signed files.
     


  • - Refresh User (Live System Refresh)
     

    This tool sends a real-time refresh signal to users via WebSockets.
     

    The admin can:
     

  • enter an Owner User ID to refresh all their team members, or

  • type “all” to refresh every active user in the system.

  • Users’ pages automatically reload key components — useful after:

  • permission changes,

  • UI updates,

  • or system maintenance.
     


  • - Delete All Documents for a Single Customer
     

    This is a high-risk, destructive action used only when necessary.
     

    By entering a Customer ID, the admin can permanently delete:
     

  • all documents,

  • invoices,

  • payment records,

  • stamped files,

  • and related financial data.

  • A confirmation warning appears before execution to prevent mistakes.
     

    This is mainly used for:
     

  • removing test data,

  • cleaning incorrect customer records,

  • or fixing severe data corruption.
     


  • - Generate Supplier PDF
     

    A dedicated field exists to generate supplier-related PDFs.
     

    This is used in procurement and finance workflows to generate official supplier documents.
     



    Right Column — Financial Downloads & Secure Card Details
     

    The right side of the modal is designed for financial reporting and payment data review.
     

    - Download User Plan ZIP
     

    This allows admins to download all invoice PDFs for a specific user within a selected date range.
     

    Required inputs:
     

  • User ID

  • From Date

  • To Date
     

  • The system collects matching invoices, compresses them into a ZIP file named “paid-invoice.zip”, and triggers a download.
     

    Used for:
     

  • accounting,

  • audits,

  • tax records,

  • and financial reconciliation.
     


  • - Download User Plan Excel
     

    Similar to the ZIP download — but instead of PDFs, the data is exported into an Excel file.
     

    The spreadsheet includes:
     

  • invoice details,

  • payment method,

  • last 4 digits of card,

  • and other financial data.

  • This is a restricted, sensitive tool.
     

    By entering a User ID, the admin can retrieve decrypted payment card details associated with that user.
     

    Once submitted:
     

  • the system securely decrypts stored card data,

  • and displays it in a separate Card Details Modal.

  • Only authorized admins can access this — it is not visible to normal users.
     



    - Card Details Modal (Result View)
     

    When card details are retrieved successfully, a new modal appears titled:
     

    “User Card Detail”
     

    It displays multiple structured fields such as:
     

  • cardholder name,

  • card number (masked or decrypted),

  • expiry date,

  • and payment metadata.
     

  • This modal is hidden by default and appears only after a valid request.
     



    - How It Works Behind the Scenes
     

    All actions in the General Modules modal are handled by the backend controller:
     

  • interacts with the database,

  • regenerates files,

  • sends live notifications,

  • creates PDFs,

  • or returns structured JSON responses.

     


  • - Why This Modal Is Important
     

    The General Modules modal exists to give admins deep control over biz1 without direct database access.
     

    It serves as:
     

  • a repair toolkit,

  • a regeneration engine,

  • a financial export center,

  • and a secure payment data viewer.

  • Instead of waiting for automated processes, admins can manually intervene when necessary.
     



    ✅ Final Summary — What General Modules Does
     

    The General Modules modal is biz1’s central admin control panel that allows administrators to:
     

  • regenerate system files,

  • rebuild document PDFs,

  • refresh users in real time,

  • delete customer documents safely,

  • export invoices as ZIP or Excel,

  • and securely retrieve payment card details.


     

information_img