hayat help
Help › Hayat ISP

Billing, suspensions and the router link

hayaterp.com ↗

Bill internet subscribers in Hayat ISP — the settings (billing day, due and grace days, pro-rata first month, prices with tax, auto-suspend and auto-reconnect, suspend mode, SLA hours, self-service page, accounts), the monthly billing run for prepaid and postpaid subscribers, discounts and add-ons, extra charges, automatic suspension after the grace days and reconnection on payment, the optional MikroTik RouterOS link that switches PPPoE accounts off and on, the network log, account codes and what posts where.

Billing and the router link need isp.manage.

Settings

Open ISP settings:

Setting Default Means
Billing day (1–28) 1 The day of the month bills are raised
Due after (days) 10 Due date = bill date + these days
Grace after due (days) 5 How long after the due date before a subscriber is suspended
Pro-rata first month from activation On The first month is charged for the days used; off: the full month
Package prices include tax On Prices are what the subscriber pays; off: tax is added on top
Suspend automatically after the grace days On
Reconnect automatically after payment On
Suspend mode Disable secret What the router does on suspension: switch the PPPoE account off, or Change profile to a slow / walled profile
Suspended profile (router) suspended The PPP profile used with Change profile
Bill-due reminder (days before) 3 When the bill due reminder goes
Complaint SLA (hours) 24 See Tickets
Installation SLA (hours) 72
Subscriber self-service page (my.hayaterp.com/isp/…) On
Accounts 4793, 4794, 1793 See Account codes

Press Save settings.

Monthly billing

Hayat raises the bills by itself every few hours, and also when a subscriber is activated or reconnected. Run billing now on ISP billing does it at once. Running it twice never bills the same month twice, and a missed month is caught up (up to 12 months).

Billing Month billed on
Prepaid The billing day of that month (the first month on the activation date)
Postpaid The billing day of the next month

Each bill is one Sales invoice with a line for the package and one per add-on, less the subscriber's discount (Discount %, then Discount amount / month, never more than the bill). Only Active subscribers are billed.

Example: a prepaid subscriber on a 3,000 package activated on 21 June (30 days) with pro-rata on: the first bill is 10 days = 1,000, then 3,000 on 1 July, 1 August…

ISP billing lists the bills with Open only and Overdue only, by Kind (Monthly, Installation, Device, Other) and date. Each bill shows the period, lines, discount, amount, paid, balance and the Sales invoice number.

+ Extra charge bills a one-off amount to a subscriber now — a relocation, a late fee, a replacement cable: Subscriber, Kind, Label, Amount, Taxable, then Bill charge.

Suspension and reconnection

With Suspend automatically on, a subscriber whose bill is still unpaid grace days after its due date is Suspended with the reason Non-payment. Auto-suspend now on ISP billing runs this check at once.

When a payment clears every overdue bill — at the desk, by a field agent, online, or a receipt entered in Sales — a subscriber suspended for non-payment is reconnected by itself (with Reconnect automatically on) and billing resumes with the current month. Months that started while they were suspended are not billed.

You can also Suspend and Reconnect by hand on the subscriber's page.

Linking your MikroTik router is optional — Hayat works fully without it. With it, Hayat keeps the subscriber's PPPoE account on the router in step:

When On the router
Activation Creates the PPPoE account with the package's router profile (and static IP)
Change of PPPoE user, password or static IP Updates the account
Change package Changes the profile
Suspend (by hand or automatic) Disables the account — or moves it to the suspended profile — and drops the live session
Reconnect (by hand or automatic) Enables it again with the package's profile
Disconnect Disables it
Sync router Sends the account again

Set it up:

  1. On the router (RouterOS v7), switch on the www-ssl service and make a user for Hayat that may manage PPP secrets.
  2. Open Routers & network log and press + Router: a Name, the Base URL (https:// and the router's public address, with the port if not 443), the Username and Password. If the router uses its own self-signed certificate, paste its Certificate SHA-256 fingerprint — Hayat trusts that certificate only.
  3. Press Test. Hayat shows whether it could reach the router.
  4. In Network, choose the Router on each POP it serves.
  5. Give each package its Router profile — the name of the PPP profile on the router.

Hayat finds the router for a subscriber through their box → POP; if the box's POP has none, the first POP of the area with a router. Subscribers with no router are simply not sent anywhere.

A router that is down never stops billing. Each action's result is shown on the subscriber's page and kept in the network log (Failed only shows the problems; the dashboard counts them). Press Sync router once the router is back. The router password is kept encrypted and never shown.

Account codes

Hayat ISP adds these accounts to your chart the first time it needs them. Each can be pointed to another account in ISP settings.

Code Account Kind Used for
1793 Customer Premises Equipment (on loan) Asset Routers and ONTs on loan to subscribers, at cost
4793 Internet Subscription Revenue Income Monthly package and add-on charges
4794 Installation & Connection Fees Income Installation and other one-off charges

What posts where

Event Accounts
Monthly bill Sales invoice Dr Receivable / Cr Sales (+ tax); then the net moved to Subscription revenue 4793
Installation or extra charge Sales invoice; the net moved to Installation & connection fees 4794
Payment (desk, field, online) Dr Cash / bank / wallet / Cr Receivable (Sales receipt), oldest bills first
Device sold Sales invoice with the stock item: sales revenue and cost of sales as for any sale
Device loaned Stock issued at cost: Dr Customer premises equipment 1793 / Cr Inventory
Device returned Dr Inventory / Cr Customer premises equipment 1793, at the same cost

Invoices use service items made on first use: ISP-NET / ISP-NET-T (monthly, exempt / taxable) and ISP-INST / ISP-INST-T (installation). Document numbers: ISP subscriber accounts, ITK tickets; bills and receipts carry the Sales numbers.

See also How every module reaches the accounts.