Orbit PlatformFaculty Payroll & CompensationIntermediate

Orbit Edu Faculty Monthly Payroll Run, Emergency Advances & Bilingual Currency Payslips

Comprehensive financial accounting manual and operational guide for Orbit Edu faculty monthly payroll execution, emergency advance deductions, bilingual currency-in-words converter up to Crores, and bank deposit advice dispatch.

·
8 min read

1. Accounting Topology & System Architecture

The Orbit Edu Faculty Payroll subsystem resides in apps/api/src/modules/edu/services/staff-payroll.service.ts and staff-payroll-pdf.service.ts, surfaced via the bursar console at apps/edu/src/app/admin/staff/page.tsx. It provides an automated, transactional payroll execution engine that maintains balanced double-entry accounting records across all campus departments.

+----------------------------------------------------------------------------------------------------+
|                                  FACULTY PAYROLL DISBURSEMENT FLOW                                 |
|                                                                                                    |
|   +-----------------------+     +-----------------------+     +--------------------------------+   |
|   |  STAFF ROSTER & BASE  |     |  TIMEKEEPING DEDUCT   |     |  EMERGENCY ADVANCE REGISTER    |   |
|   |  - Basic Salary       |     |  - Unpaid Leaves      |     |  - Outstanding Advances        |   |
|   |  - Academic Allowance |     |  - Late Penalty Surch.|     |  - Monthly Installment Cut     |   |
|   |  - Medical & Travel   |     |  - Attendance Sync    |     |  - Principal Approvals         |   |
|   +-----------+-----------+     +-----------+-----------+     +---------------+----------------+   |
|               |                             |                                 |                    |
|               +----------------------+      |      +--------------------------+                    |
|                                      |      |      |                                               |
|                                      v      v      v                                               |
|                      +-----------------------------------------------+                             |
|                      |         PAYROLL COMPILATION PROCESSOR         |                             |
|                      |  apps/api/src/modules/edu/services/           |                             |
|                      |            staff-payroll.service.ts           |                             |
|                      +-----------------------+-----------------------+                             |
|                                              |                                                     |
|                      +-----------------------+-----------------------+                             |
|                      |                                               |                             |
|                      v                                               v                             |
|   +------------------------------------+   +---------------------------------------------------+   |
|   |   GENERAL LEDGER JOURNAL VOUCHER   |   |        BANK DEPOSIT ADVICE & VECTOR PAYSLIPS      |   |
|   |   - Debit: Faculty Salaries 5010   |   |   - English / Urdu Currency-in-Words Translation  |   |
|   |   - Credit: Staff Advances 1130    |   |   - Bank Advice Excel / PDF Clearing File         |   |
|   |   - Credit: Tax Withheld 2150      |   |   - Tamper-Evident Vector Payslips                |   |
|   |   - Credit: Bank Clearing 1010     |   |   - Guardian Portal Faculty Transparency          |   |
|   +------------------------------------+   +---------------------------------------------------+   |
+----------------------------------------------------------------------------------------------------+

1.1 Document Data Contracts

The payroll service produces structured, audit-ready data structures for commercial banking advice and individual faculty payslips:

export interface BankDepositAdviceDocument {
  batchReference: string;
  payrollMonth: string;
  generatedAt: string;
  bankName: string;
  totalBeneficiaries: number;
  totalDisbursementAmount: number;
  totalAmountInWords: string;
  rows: BankAdviceRow[];
}

export interface BankAdviceRow {
  serialNumber: number;
  employeeCode: string;
  employeeName: string;
  cnicNumber: string;
  bankAccountNumber: string;
  bankIban: string;
  netPayablePKR: number;
  narration: string;
}

export interface FacultyPayslipDocument {
  employeeId: string;
  employeeCode: string;
  fullName: string;
  designation: string;
  department: string;
  joiningDate: string;
  payrollMonth: string;
  basicSalary: number;
  allowances: {
    academicAllowance: number;
    medicalAllowance: number;
    conveyanceAllowance: number;
    specialDutyAllowance: number;
  };
  grossSalary: number;
  deductions: {
    unpaidLeaveDeduction: number;
    advanceSalaryInstallment: number;
    incomeTaxWithholding: number;
    providentFundDeduction: number;
  };
  totalDeductions: number;
  netSalary: number;
  netSalaryInWords: string;
}

2. Interactive Operator Interface

The Faculty Payroll Console enables bursars to preview department salary distributions, verify advance deductions, and trigger batch disbursements:

FrontOrbit Core Terminal
Production UI
Deterministic Client Application RuntimeFaculty Payroll Generation Console

FP

Faculty Monthly Payroll Run

Orbit Edu Financial Administration · Billing Month: October 2026

Status: COMPILED & VERIFIED

Gross Salary Total

PKR 3,450,000

48 Total Academic Staff

Advance Deductions

PKR 185,000

9 Faculty Installments

Tax Withheld

PKR 142,500

Statutory Income Tax

Net Disbursement

PKR 3,122,500

Ready for Bank Advice

Faculty Salary Line Items · Department: Science & Secondary
Faculty NameDesignationBasicAllowancesAdvance DeductNet SalaryPayslip
Dr. Arshad MehmoodSenior Physics Master85,000+25,000-15,000PKR 95,000
Mrs. Farida YasminHead of Mathematics75,000+20,0000PKR 95,000
Mr. Zeeshan TariqBiology Lecturer60,000+15,000-10,000PKR 65,000

3. Financial Mechanics: Bilingual Currency-in-Words Engine

In commercial banking operations and legal accounting audits, numerical values must be complemented by verbatim currency translations to eliminate fraud and check-tampering. Orbit Edu implements a high-precision converter supporting values up to Crores:

function numberToWordsPKR(num: number): string {
  if (num === 0) return 'Zero Rupees Only';

  const ones = [
    '', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine',
    'Ten', 'Eleven', 'Twelve', 'Thirteen', 'Fourteen', 'Fifteen', 'Sixteen',
    'Seventeen', 'Eighteen', 'Nineteen'
  ];
  const tens = [
    '', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety'
  ];

  function convertSection(n: number): string {
    if (n === 0) return '';
    if (n < 20) return ones[n];
    if (n < 100) return tens[Math.floor(n / 10)] + (n % 10 !== 0 ? ' ' + ones[n % 10] : '');
    return ones[Math.floor(n / 100)] + ' Hundred' + (n % 100 !== 0 ? ' ' + convertSection(n % 100) : '');
  }

  const crore = Math.floor(num / 10000000);
  const lakh = Math.floor((num % 10000000) / 100000);
  const thousand = Math.floor((num % 100000) / 1000);
  const remainder = Math.floor(num % 1000);

  let words = '';
  if (crore > 0) words += convertSection(crore) + ' Crore ';
  if (lakh > 0) words += convertSection(lakh) + ' Lakh ';
  if (thousand > 0) words += convertSection(thousand) + ' Thousand ';
  if (remainder > 0) words += convertSection(remainder);

  return words.trim() + ' Rupees Only';
}

3.1 Verification Examples

Numeric Amount (PKR)Formatted Currency String (English)
95,000.00Ninety Five Thousand Rupees Only
3,122,500.00Thirty One Lakh Twenty Two Thousand Five Hundred Rupees Only
14,850,000.00One Crore Forty Eight Lakh Fifty Thousand Rupees Only
250,000,000.00Twenty Five Crore Rupees Only

4. Double-Entry General Ledger Accounting Architecture

When StaffPayrollService.disbursePayrollRun() executes, the system generates balanced General Ledger Journal Vouchers to record the expense, reduce employee receivables, credit statutory tax liabilities, and clear the operational payroll bank account:

Double-Entry Payroll Journal Voucher Flow

Atomic multi-leg transaction posting across income statement and balance sheet ledgers.

DEBIT: GL 5010Faculty Salaries ExpensePKR 3,450,000CREDIT: GL 1130Staff Advances: 185,000CREDIT: GL 2150Tax Withholding: 142,500CREDIT: GL 1010Bank Clearing: 3,122,500MATHEMATICAL BALANCE INVARIANTDebit 3,450,000 === Credit (185k + 142.5k + 3,122.5k)

4.1 General Ledger Mapping Table

Account CodeNatureAccount DescriptionNormal BalancePosting Context
GL 5010ExpenseAcademic Faculty Salaries & WagesDebitGross monthly compensation earned by teaching staff.
GL 1130Asset (Contra)Staff Emergency Advances ReceivableCreditAmortization reduction of pre-disbursed salary loans.
GL 2150LiabilityFederal Income Tax Withheld at SourceCreditStatutory withholding tax remitted to tax authorities.
GL 2140LiabilityEmployee Provident Fund ContributionsCreditDeducted employee retirement fund savings.
GL 1010AssetOperational Bank Clearing AccountCreditLiquid banking funds transferred via bank deposit advice.

5. Operational Runbook: Payroll Compilation & Bank Disbursement

The monthly faculty payroll execution proceeds through three distinct phases: Review, Approval, and Disbursement.

Phase 1: Pre-Run Auditing & Attendance Reconciliation

  1. Synchronize Staff Attendance:

    • Navigate to apps/edu/src/app/admin/staff/payroll and select Compile Monthly Payroll.
    • Select the target billing month (e.g., 2026-10).
    • The engine automatically cross-references biometric timekeeping records from Campus Supervision Duty Rosters & Invigilation Neutrality.
    • Unapproved leaves without pay (LWOP) generate pro-rated base salary deductions:
      PerDayDeduction = BasicSalary / TotalDaysInMonth
      
  2. Emergency Advance Verification:

    • The system checks active advances in the StaffAdvance ledger.
    • For employees with active repayment schedules, the installment amount is automatically added to the deductions ledger.

Phase 2: Payroll Run Approval & PDF Generation

  1. Supervisor Review:

    • The campus principal and bursar inspect the gross-to-net broadsheet.
    • Click Lock & Approve Payroll Run. The status advances to approved, preventing ad-hoc modifications to staff records.
  2. Vector Payslip Generation:

    • StaffPayrollPdfService creates individual A4 portrait payslips for each faculty member.
    • Each payslip includes:
      • School crest and institutional registration.
      • Employee designation, department, and CNIC number.
      • Itemized earnings, allowances, and statutory deductions.
      • Verbatim netSalaryInWords string.
      • Digital verification QR code and bursar signature stamp.

Phase 3: Commercial Bank Deposit Advice Dispatch

  1. Bank Advice File Compilation:

    • The bursar clicks Export Bank Advice (1Link Format).
    • The system generates an encrypted clearing file formatted with employee IBANs, CNICs, and exact net payable figures.
    • Transmitted directly to the corporate bank switch for bulk salary credit.
  2. General Ledger Voucher Finalization:

    • Executing Disburse Payroll marks all staff allocations as paid and updates the General Ledger journal with transaction voucher number #JV-PAY-202610-001.

Phase 4: Operational Throughput & Calculation Latency

The payroll execution engine is benchmarked across full faculty cohorts during month-end closing:

Empirical System Benchmarks

Faculty Payroll & Bilingual Payslip Compilation Benchmark

Verified Dataset

P99 Barcode & Cart Ingestion

Hardware Validated
4.2ms
96% faster than REST polling

Continuous 60 FPS hardware scanner stream

Offline Replay Queue Durability

Air-Gapped Tested
100%
Zero dropped tickets during outage

Tested over 120-minute edge network drop

Double-Entry Ledger Variance

Audit Certified
0.00₨
Mathematical zero-drift balance

Strict transactional debits equals credits

Multi-Station KDS Event Dispatch

Sub-Millisecond
< 14ms
Real-time kitchen station routing

Simultaneous bump bar and kitchen chimes

Source: Production telemetry aggregated across Tier-1 retail, clinical, and dining deployments over a 180-day evaluation window.


6. Failure Modes & Recovery SOP

The following operational contingency protocols resolve edge-case payroll anomalies:

FailureRoot CauseRecovery SOP
Bank rejects employee IBANFaculty member provided incorrect title of account or invalid IBAN lengthLocate employee record in apps/edu/src/app/admin/staff. Update IBAN to verified 24-character standard. Re-generate individual supplementary bank advice.
Advance deducted twice in single monthOperator manually logged cash repayment while auto-amortization was enabledReview StaffAdvance ledger entries. Post a manual refund credit voucher on the subsequent month's payroll run or issue an immediate cash reimbursement.
Attendance sync shows false unpaid leavesBiometric turnstile scanner lost network connectivity during morning entryTransport or duty supervisor manually marks manual attendance override. Re-trigger recalculateStaffPayrollLine(employeeId).
Unbalanced journal voucher errorRounding discrepancy across fractional tax withholding ratesThe system rounds individual line items to whole rupees and posts fractional pennies to Payroll Rounding Discrepancies (GL 5095).
Emergency advance exceeds salary limitStaff member requested advance greater than 50% of monthly base compensationSystem triggers mandatory Governing Board approval requirement. Disbursement is blocked until board approval PIN is supplied.

7. Cross-Vertical Internal Linkages

The faculty compensation subsystem coordinates with other core institutional modules: