Skip to content

Cashflow Management

Overview

The Cashflow module in Zal Ultra tracks all money movements in your ISP business. It provides a comprehensive view of income and expenses, helping you understand your financial health and make informed business decisions.


What is Cashflow?

Cashflow represents the actual movement of money in and out of your business:

  • Income (Inflow) - Money coming into your business
  • Expense (Outflow) - Money going out of your business
┌─────────────────────────────────────────────────────────┐
│                    CASHFLOW                              │
├─────────────────────────────────────────────────────────┤
│  INCOME (+)                    EXPENSE (-)               │
│  ─────────                     ──────────                │
│  • Subscriber Payments         • Employee Salary         │
│  • User Balance Topup          • Office Rent             │
│  • Subscriber Activation       • Equipment Purchase      │
│  • Equipment Sales             • Utility Bills           │
│  • Installation Charges        • Marketing Expense       │
│                                • Tax Payment             │
│                                • Insurance               │
│                                • Loan Repayment          │
└─────────────────────────────────────────────────────────┘

Cashflow Types

1. Automatic Cashflow (Source Type: 1)

These entries are created automatically by the system during transactions:

EventTypeDescription
Subscriber PaymentIncomeWhen subscriber pays for service
User Balance TopupIncomeWhen reseller receives balance
Subscriber ActivationIncomeWhen subscriber is activated
Invoice ReversalExpenseWhen invoice is reversed (negative)

2. Manual/Custom Cashflow (Source Type: 2)

These entries are created manually by admin/staff:

CategoryTypeDescription
Employee SalaryExpenseMonthly staff payments
Office RentExpenseRental payments
Equipment PurchaseExpenseBuying routers, cables, etc.
Utility BillsExpenseElectricity, internet, etc.
Marketing ExpenseExpenseAdvertising costs
Tax PaymentExpenseGovernment taxes
Insurance ExpenseExpenseBusiness insurance
Loan RepaymentExpenseLoan installments
General ExpenseExpenseMiscellaneous expenses
Equipment SalesIncomeSelling equipment to customers
Installation ChargeIncomeOne-time installation fees

Cashflow Categories

Categories help organize and classify your cashflow entries for better reporting.

Default Categories

The system comes with predefined categories that you can sync:

Category KeyDisplay NameType
subscriber_paymentSubscriber PaymentIncome
user_paymentUser PaymentIncome
subscriber_activationSubscriber ActivationIncome
equipment_salesEquipment SalesIncome
installation_chargeInstallation ChargeIncome
employee_salaryEmployee SalaryExpense
office_rentOffice RentExpense
general_expenseGeneral ExpenseExpense
equipment_purchaseEquipment PurchaseExpense
utility_billsUtility BillsExpense
marketing_expenseMarketing ExpenseExpense
tax_paymentTax PaymentExpense
insurance_expenseInsurance ExpenseExpense
annual_tourAnnual TourExpense
loan_repaymentLoan RepaymentExpense

Managing Categories

To sync default categories:

  1. Go to AccountingCashflowCategories
  2. Click Sync Categories button
  3. System will create missing default categories

To add custom category:

  1. Go to AccountingCashflowCategories
  2. Click Add Category
  3. Enter name, type (income/expense), and description
  4. Click Submit

Cashflow Data Structure

Cashflow Record Fields

FieldDescription
idUnique identifier
amountTransaction amount
typeincome or expense
category_idLink to cashflow category
profile_type1 = User, 2 = Subscriber
profile_idID of user or subscriber
source_type1 = Automatic, 2 = Custom/Manual
descriptionTransaction notes
status1 = Active, 2 = Reverted
created_by_idUser who created entry
created_by_usernameUsername of creator

How Cashflow Works

During Subscriber Activation

When a subscriber is activated with payment:

1. Invoice Created

2. Payment Recorded

3. Cashflow Entry Created (Automatic)
   ├── Type: Income
   ├── Category: Subscriber Activation
   ├── Profile Type: Subscriber
   ├── Profile ID: Subscriber ID
   ├── Source Type: 1 (Automatic)
   └── Amount: Payment Amount

During User Balance Topup

When a reseller receives balance:

1. Payment Recorded

2. Ledger Entry Created

3. Cashflow Entry Created (Automatic)
   ├── Type: Income
   ├── Category: User Payment
   ├── Profile Type: User
   ├── Profile ID: User ID
   ├── Source Type: 1 (Automatic)
   └── Amount: Topup Amount

During Invoice Reversal

When an invoice is reversed:

1. Invoice Reversed

2. Payment Status → Reverted

3. Cashflow Status → Reverted (2)

4. Original cashflow marked as reverted

Adding Manual Cashflow

Step 1: Access Cashflow

  1. Go to AccountingCashflow
  2. Click Add Cashflow button

Step 2: Fill Details

FieldDescription
AmountEnter the transaction amount
TypeSelect Income or Expense
CategoryChoose appropriate category
DescriptionAdd notes about the transaction

Step 3: Submit

Click Submit to save the cashflow entry.


Viewing Cashflow Reports

Cashflow List

The main cashflow page shows all entries with:

  • ID - Unique identifier
  • Amount - Transaction amount
  • Type - Income (green) or Expense (red)
  • Category - Classification
  • Description - Notes
  • Created By - Who added the entry
  • Date - When it was created

Filtering Options

FilterDescription
SearchFind by ID, amount, or description
Date RangeFilter by time period
TypeShow only income or expense
CategoryFilter by specific category

Exporting Cashflow Data

Excel Export

  1. Apply desired filters
  2. Click Excel Export button
  3. Wait for file generation
  4. Download the .xlsx file

CSV Export

  1. Apply desired filters
  2. Click CSV Export button
  3. Wait for file generation
  4. Download the .csv file

Data Isolation

Cashflow data is isolated based on user permissions:

Admin/Staff View

  • All cashflow entries for the ISP/Branch
  • Custom entries created by admin
  • All subscriber and user transactions

Reseller View

  • Own custom cashflow entries
  • Own subscribers' transactions
  • Sub-resellers' and retailers' transactions (if applicable)

Sub-Reseller View

  • Own custom cashflow entries
  • Own subscribers' transactions
  • Retailers' transactions (if applicable)

Retailer View

  • Own custom cashflow entries
  • Own subscribers' transactions only

Best Practices

Recording Expenses

  1. Be consistent - Use the same category for similar expenses
  2. Add descriptions - Include invoice numbers, vendor names
  3. Record promptly - Enter expenses as they occur
  4. Review regularly - Check for missing entries

Analyzing Cashflow

  1. Monthly review - Compare income vs expenses
  2. Category analysis - Identify major expense categories
  3. Trend tracking - Monitor changes over time
  4. Budget planning - Use data for future budgets

Common Use Cases

ScenarioAction
Pay employee salaryAdd expense → Employee Salary
Pay office rentAdd expense → Office Rent
Buy router for resaleAdd expense → Equipment Purchase
Sell router to customerAdd income → Equipment Sales
Pay electricity billAdd expense → Utility Bills
Receive installation feeAdd income → Installation Charge

Troubleshooting

Issue: Missing Automatic Entries

Problem: Subscriber payment not showing in cashflow

Solutions:

  1. Check if payment was recorded successfully
  2. Verify payment status is not "Reverted"
  3. Check ISP/Branch filter settings

Issue: Wrong Category

Problem: Entry has incorrect category

Solution:

  1. Go to Cashflow list
  2. Click Edit on the entry
  3. Change category
  4. Save changes

Issue: Duplicate Entries

Problem: Same transaction appears twice

Solutions:

  1. Check if both automatic and manual entries exist
  2. Delete the duplicate manual entry
  3. Never manually add entries for automatic transactions

Summary

FeatureDescription
Automatic TrackingSystem records payments and activations
Manual EntriesAdd custom income/expenses
CategoriesOrganize transactions by type
Data IsolationUsers see only their relevant data
Export OptionsExcel and CSV downloads
Reversal HandlingTracks reversed transactions

Cashflow management helps you understand where your money comes from and where it goes! 💰

www.onezeroart.com