2026-10-03
- Accounting: Current Month Expense Edit & Delete Policy —
staff with
EXPENSE_MANAGEauthority can now modify and delete individual expense payment records in the “Month’s Expenses” table. To protect accounting integrity and P&L history, edits and deletions are strictly permitted for payments recorded or paid within the current calendar month (Asia/Colombo), while closed historical periods remain locked. - Accounting: Flexible Expense Payment Date Updates — when editing an eligible expense payment, staff can freely adjust the paid date to any past or future date, enabling data entry corrections and recording advance payments without constraint.
- Finance: Admin-Only Invoice Editing —
administrators (
ownerandmanagerroles withINVOICE_EDITauthority) can now modify existing invoices, adjusting line item descriptions and amounts, adding custom fees and surcharges, editing itemized taxes and discounts, and revising direct cost amounts. - Finance: Strict Ledger Safety Guard —
invoice editing enforces a double-entry accounting invariant: an invoice’s total amount cannot be reduced below the sum of payments already collected in receipts (
amountPaid), preventing negative balances and ledger inconsistencies. - Finance: Dynamic Status & Finalization Synchronization —
updating an invoice dynamically recalculates its payment status (
unpaid,partial, orpaid), purges cached PDF data to guarantee fresh downloads, and triggers task finalization checks across linked visa and flight records. - UI: Modern Organized Invoice Action Bar —
re-architected the
<InvoiceDetailModal />action buttons into a structured two-tier layout: a dedicated document sharing toolbar (for Invoice and Receipt PDF download and email actions with intuitive icons) and an operational footer that cleanly separates high-risk actions (Cancel & Delete) from management controls (Edit Invoice) and the primary operational CTA (Record Payment). - Accounting: Flight Revenue Breakdown & Transparency —
decoupled flight ticketing revenue into three distinct metrics across monthly and yearly financial reports: Ticket Sale (gross billed amount), Cost of Sale (airline/consolidator cost), and Flight Profit (
Ticket Sale − Cost of Sale), granting instant visibility into flight margins. - Accounting: Customer-Wise Flight Profit Detail Drawer —
introduced the
<FlightProfitDetailDrawer />accessible via the Flight Tickets KPI card. Provides an itemized audit table linking each flight invoice to the customer name, passenger name, route, airline, PNR code, ticket sale, cost of sale, and profit, complete with real-time search, dynamic KPI summaries, and pagination. - Accounting: Strict Other Fees Ticket Price Isolation —
updated database aggregation queries to strictly exclude flight ticket charges and tour packages from “Other Fees”. Other Fees now isolates genuine auxiliary charges (office charges, courier, clearing fees, translations), perfectly reconciling with
Total Invoiced. - Accounting: Month-End Timezone Boundary Preservation —
resolved a UTC date-shifting defect where month-end timestamps (e.g. September 30) were shifted backward by 5.5 hours into the previous day when converting to ISO strings. Replaced with local calendar day calculations (
.getDate()), ensuring 100% data consistency between high-level KPI tiles and drill-down audit drawers.
Last updated on