Installation
- Unzip Pandryx_Billing and place Pandryx_Billing in your server’s resources folder.
- Add ensure Pandryx_Billing to your server.cfg
- Import the database schema.sql
- Make sure it starts before any resource that depends on it
- Start / Restart your server
ESX: no extra tables needed (uses native billing/addon_account_data)
QBCore / QBOX: creates phone_invoices and management_funds.See schema.sql](schema.sql) for the full script.
CREATE TABLE IF NOT EXISTS phone_invoices (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
citizenid VARCHAR(64) NOT NULL DEFAULT '',
society VARCHAR(64) NOT NULL DEFAULT '',
label VARCHAR(255) NOT NULL DEFAULT '',
amount INT UNSIGNED NOT NULL DEFAULT 0,
status ENUM('unpaid','paid','overdue','void') NOT NULL DEFAULT 'unpaid',
issued_by VARCHAR(128) NOT NULL DEFAULT '',
name VARCHAR(128) NOT NULL DEFAULT '',
phone VARCHAR(64) NOT NULL DEFAULT '',
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_ts INT UNSIGNED NOT NULL DEFAULT 0
);
-- Society/management fund balances
CREATE TABLE IF NOT EXISTS management_funds (
job VARCHAR(64) PRIMARY KEY,
amount BIGINT NOT NULL DEFAULT 0
);
```