1. Introduction
Enterprise Accounting for WooCommerce adds a complete double-entry accounting workspace to your WordPress admin under the Accounting menu. Instead of summarising WooCommerce order totals, it records every financial event — sales, refunds, gateway payouts, customer invoices, supplier bills, expenses and bank movements — as a balanced journal entry, and then produces the standard financial statements from that ledger.
- Journals for paid WooCommerce orders and refunds
- Historical import of existing orders
- Dashboard KPIs, trends and alerts
- Profit & Loss, Balance Sheet, Cash Flows, Trial Balance, General Ledger
- Payment-gateway settlements (gross, fees, net)
- Invoices, bills, payments and expenses
- Bank statement lines to reconcile
- Opening balances, periods and year-end close
The plugin ships with 21 admin screens. All are listed in section 25 together with the capability that controls access to each one.
2. Accounting concepts used
You do not need to be an accountant to operate the plugin, but a few terms appear on every screen.
| Term | Meaning in this plugin |
|---|---|
| Journal (entry) | A dated set of lines where total debits equal total credits. Numbered JE-YYYY-NNNNNN. Every financial event becomes exactly one journal. |
| Draft / Approved / Posted | A journal's lifecycle. Only posted journals affect reports and the dashboard. Posted journals are immutable. |
| Reversal | A new journal that mirrors a posted one (debits and credits swapped), linked to the original. This is the only way to "undo" a posted journal. |
| Maker-checker | The user who creates something cannot be the one who approves it. Applies to manual journals (when enabled in Settings), supplier bills, supplier payments and expenses. |
| Control account | A general-ledger account that summarises a subledger: 1100 Accounts Receivable for customer invoices, 2000 Accounts Payable for supplier bills. |
| Subledger | The list of open documents (invoices or bills) behind a control account. The dashboard shows both so that differences stay visible. |
| Nominal accounts | Revenue, contra-revenue and expense accounts. Their balances are closed to 3100 Retained Earnings at year-end. |
| Cash / bank accounts | Any active asset account whose code begins with 10 (e.g. 1000). Used by settlements, expenses, bank reconciliation and the cash reports. |
| Accounting period | A named date range. Once closed, no journal dated inside it can be posted. |
3. Requirements
| Component | Minimum | Notes |
|---|---|---|
| WordPress | 6.5 | Tested up to 7.1. |
| WooCommerce | 8.0 | Must be installed and active. Works with High-Performance Order Storage (HPOS) and classic post storage — the plugin only uses WooCommerce CRUD functions (wc_get_order, wc_get_orders). |
| PHP | 7.4 | Tested on 7.4 – 8.4. The bcmath extension is used for exact decimal arithmetic when available. |
| Database | MySQL 5.7+ / MariaDB 10.4+ | InnoDB tables are required: approvals and postings run inside database transactions with row locks. |
| Browser | Any modern browser | The admin uses native WordPress styles plus one external stylesheet and one script. |
4. Installation & upgrade
4.1 Install from the ZIP
- Download
enterprise-accounting-woocommerce.zipfrom your CodeCanyon downloads page. - In WordPress go to Plugins › Add New › Upload Plugin, choose the ZIP and click Install Now.
- Click Activate. On activation the plugin:
- creates its 13 database tables (all prefixed
{wp_prefix}wea_), - seeds the 24-account default chart of accounts (only if the table is empty),
- grants accounting capabilities to the Administrator and Shop Manager roles.
- creates its 13 database tables (all prefixed
- A new top-level Accounting menu appears. Open Accounting › Overview.
4.2 Upgrade
- Back up the database.
- Upload the new ZIP via Plugins › Add New › Upload Plugin. WordPress offers "Replace current with uploaded". Accept it.
- Schema upgrades run automatically on the next admin page load (
wea_schema_versionis compared with the bundled version). No data is rewritten.
Do not delete the plugin folder by FTP before upgrading — deactivation and reactivation are non-destructive, but deleting through the Plugins screen triggers uninstall.php (see section 22).
4.3 Deactivate / uninstall
Deactivating keeps all data. Deleting the plugin from the Plugins screen keeps the data too, unless you ticked Delete accounting data when this plugin is uninstalled in Settings.
5. Quick start (about 15 minutes)
- Check Settings — Accounting › Settings: confirm the base currency (it follows WooCommerce), choose accrual or cash basis, set the fiscal-year start, decide whether manual journals need approval.
- Review the Chart of Accounts — Accounting › Chart of Accounts. Keep the default codes listed in section 8; they are required by the automation. Add your own expense or revenue accounts as needed.
- Enter opening balances (existing businesses only) — Accounting › Opening Balances: bank balances, receivables, payables, equity as at the day before you start.
- Create an accounting period — Accounting › Accounting Periods, e.g. "November 2026", 2026-11-01 to 2026-11-30. Leave it open.
- Import history — Accounting › WooCommerce Sync › Import next 100 orders. Repeat until the batch reports zero orders.
- Let it run — from now on, every order reaching Processing or Completed and every refund posts automatically.
- Record your first payout — when your gateway pays out, enter it in Gateway Settlements.
- Record expenses and supplier bills as they occur; approve them with a second user.
- Reconcile the bank at month-end from a statement CSV.
- Close the period once all drafts are posted. Run the Trial Balance and P&L; export to CSV or PDF for your accountant.
6. Settings Accounting › Settings
| Setting | What it does |
|---|---|
| Base currency | Read from WooCommerce (WooCommerce › Settings › General). All reports format amounts with the symbol of the currency you select on each screen; journals keep the currency of their source (e.g. the order currency). |
| Accounting basis | Accrual (default) or Cash. Guides future posting policies; changing it does not rewrite existing journals. |
| Fiscal year begins | Month and day. Used by Fiscal Year & Year-End to calculate the year's date range. |
| Journal approval | When ticked, manual journals must be approved by a user other than their creator before they can be posted. Automated WooCommerce journals are unaffected. |
| Uninstall data | When ticked, deleting the plugin drops all wea_ tables and options. Default: keep data. |
Advanced: the Statement of Cash Flows screen has its own cash-flow classification map (operating / investing / financing / non-cash per account). It is saved from that screen and requires the wea_manage_settings capability.
7. Roles & capabilities
Access is controlled by 15 custom capabilities. On activation they are granted as follows; use any role-editor plugin to fine-tune them for bookkeepers, approvers or auditors.
| Capability | Allows | Administrator | Shop Manager |
|---|---|---|---|
wea_view_accounting | See the Accounting menu, Overview and Journal Entries list | ✔ | ✔ |
wea_manage_accounting | General management actions | ✔ | ✔ |
wea_view_reports | All reports, Fiscal Year screen, exports | ✔ | ✔ |
wea_manage_chart_of_accounts | Create / edit accounts | ✔ | ✔ |
wea_create_journals | Create manual journal drafts | ✔ | ✔ |
wea_approve_journals | Approve another user's draft journal | ✔ | ✔ |
wea_post_journals | Post approved / draft journals; create reversals | ✔ | ✔ |
wea_manage_settings | Settings, WooCommerce Sync, Settlements, Periods, Opening Balances, cash-flow map | ✔ | ✔ |
wea_manage_contacts | Customers & Suppliers | ✔ | ✔ |
wea_manage_documents | Invoices & Bills, record payments | ✔ | ✔ |
wea_manage_expenses | Submit expenses | ✔ | ✔ |
wea_approve_expenses | Approve and post expenses | ✔ | — |
wea_approve_payables | Approve supplier bills and supplier payments | ✔ | — |
wea_reconcile_bank | Bank Reconciliation | ✔ | ✔ |
wea_view_audit_logs | Audit Log and its CSV export | ✔ | — |
Site administrators may approve and post supplier bills and expenses they created themselves (since 0.24.4); all other users are held to independent approval. The creator of a manual journal can never approve that journal.
8. Chart of Accounts Accounting › Chart of Accounts
Add an account with a numeric code, a name and a type (asset, liability, equity, revenue, contra-revenue, expense). Accounts can be deactivated but not deleted once used.
Default accounts and which features depend on them
| Code | Account | Type | Used automatically by |
|---|---|---|---|
| 1000 | Cash and Cash Equivalents | Asset | Default cash/bank account; any 10xx asset account is treated as cash/bank |
| 1100 | Accounts Receivable | Asset | Unpaid orders, customer invoices (control account) |
| 1150 | Recoverable Input Tax | Asset | Available for bills |
| 1200 | Inventory | Asset | Manual use |
| 1300 | Payment Gateway Clearing | Asset | Required. Paid orders, refunds, settlements |
| 2000 | Accounts Payable | Liability | Supplier bills (control account) |
| 2100 | Tax Payable | Liability | Order tax, document tax |
| 3000 | Owner Equity | Equity | Opening balances |
| 3100 | Retained Earnings | Equity | Required for year-end close |
| 4000 | Sales Revenue | Revenue | Required. Order product lines |
| 4100 | Shipping Revenue | Revenue | Order shipping |
| 4200 | Other Order Income | Revenue | Order fee lines |
| 5000 | Cost of Goods Sold | Expense | Manual use |
| 6000 | Operating Expenses | Expense | Expenses default |
| 6100 | Payment Processing Fees | Expense | Required. Settlement fees |
| 6200 | Sales Discounts | Contra-revenue | Order discounts; refund fallback |
| 6300 | Sales Returns and Refunds | Contra-revenue | WooCommerce refunds |
| 6400–6950 | Rent, Salaries, Utilities, Marketing, Transport, Repairs, Office & Admin | Expense | Expense categories |
9. Journal Entries Accounting › Journal Entries
Create a manual journal
- Enter the date, currency (3-letter code) and a description.
- Add at least two lines: account, debit or credit amount, optional line description.
- Click Create journal draft. The plugin validates that total debits equal total credits, that every account is active, and that the date is not in a closed period.
Approve and post
- If Journal approval is enabled in Settings, a different user with
wea_approve_journalsclicks Approve. The creator sees "The journal creator cannot approve their own journal." - A user with
wea_post_journalsclicks Post. Posting is transactional; the journal receives its final number and becomes immutable.
Reverse a posted journal
Click Reverse on a posted row. A mirrored journal is created and posted immediately, dated today, with reversal_of pointing at the original. Reversals are written to the audit log as journal.reversed.
10. WooCommerce Sync Accounting › WooCommerce Sync
What triggers a journal
| WooCommerce event | Hook | Result |
|---|---|---|
| Order moves to Processing or Completed | woocommerce_order_status_processing / _completed | One sale journal (once per order — idempotent) |
| Refund created (full or partial) | woocommerce_order_refunded | One refund journal per refund |
| Partial refund status change | woocommerce_order_partially_refunded | Status logged |
Sale journal mapping
| Line | Debit | Credit |
|---|---|---|
| Order total | 1300 Payment Gateway Clearing if the order is paid, otherwise 1100 Accounts Receivable | |
| Product subtotal | 4000 Sales Revenue | |
| Shipping | 4100 Shipping Revenue | |
| Tax | 2100 Tax Payable | |
| Fee lines | 4200 Other Order Income | |
| Discounts | 6200 Sales Discounts |
The journal is created in the order's currency and dated on the order date. If the lines cannot be reconciled to the order total (for example a negative fee line) the order is not posted; a failure with a reason is written to the sync log for you to handle manually.
Refund journal mapping
Debit 6300 Sales Returns and Refunds (falls back to 6200), credit 1300 Payment Gateway Clearing, for the refund amount. Refunds are separate contra-revenue events — the original sale journal is never edited.
Historical order import
Click Import next 100 orders. Each click processes the next page of Processing/Completed orders (oldest first) and reports how many succeeded or failed. Orders already synchronised are skipped, so re-running is safe. An empty batch resets the importer to page 1.
Recent synchronization events
Every attempt is stored with source, ID, event, status (success / failed) and message. Failed events are counted on the dashboard under Items requiring attention. After fixing the cause (usually a missing account or an unusual fee line), re-run the importer — the failed order will be retried.
11. Gateway Settlements Accounting › Gateway Settlements
Sales are first debited to 1300 Payment Gateway Clearing because the money is with your payment provider, not yet in your bank. A settlement moves it to the bank and recognises the provider's fee.
- Open your provider's payout / settlement statement (Paystack, Flutterwave, Stripe, PayPal, etc.).
- Enter Provider, the unique Settlement reference, date, currency, Gross settled transactions, Provider fees, Net payout received and the Bank / cash account that received it.
- Click record. Gross must equal fees + net; the reference must be unique (prevents double entry).
| Line | Debit | Credit |
|---|---|---|
| Net payout | Selected 10xx bank account | |
| Provider fees | 6100 Payment Processing Fees | |
| Gross | 1300 Payment Gateway Clearing |
12. Customers & Suppliers Accounting › Customers & Suppliers
Create a contact with type (customer or supplier), name, and optional company, email, phone, tax number and billing address. Contacts are independent of WooCommerce customers so you can bill wholesale clients or record suppliers that never place orders. Contact creation is audited (contact.created).
13. Invoices & Bills Accounting › Invoices & Bills
Create a document
- Choose Invoice (to a customer) or Bill (from a supplier), the contact, document date, optional due date and currency.
- Add line items (description, quantity, unit price, revenue or expense account).
- Enter one document-level tax rate (0–100 %). Tax = subtotal × rate.
- Save. Numbers are assigned as
INV-YYYY-NNNNNN/BILL-YYYY-NNNNNN.
| Customer invoice | Supplier bill | |
|---|---|---|
| Posting | Immediately: Dr 1100 AR / Cr line accounts + 2100 Tax | Status pending until approved by a user with wea_approve_payables; then Dr line accounts (+ tax) / Cr 2000 AP |
| Payments | Record a receipt against the invoice: Dr cash-bank / Cr 1100. Posts immediately. | Record a payment: creates a draft journal that posts only when the payment is approved (maker-checker). Over-allocation is blocked. |
| Status | pending → posted → partial → paid. Outstanding = total − paid. | |
Ageing
The Receivables Ageing and Payables Ageing tables list every open document with its currency, outstanding amount and days overdue (0 until the due date passes). The pending bill and pending supplier-payment queues appear at the top of the screen for approvers.
14. Expenses Accounting › Expenses
- Enter date, payee, description, reference, amount, currency, the category (an expense account such as 6400 Rent) and the Paid from cash/bank account.
- Click Submit expense for approval. Number
EXP-NNNNNNis assigned, status pending. - A user with
wea_approve_expensesapproves it. The journal (Dr category / Cr paid-from account) is posted in the same database transaction and the expense is linked to itsJEnumber.
Both creation and approval are audited (expense.created, expense.approved).
15. Bank Reconciliation Accounting › Bank Reconciliation
Statement CSV format
date,description,amount,reference
2026-11-03,PAYSTACK SETTLEMENT,49700.00,PSTK-88213
2026-11-05,OFFICE RENT NOVEMBER,-300.00,TRF-10021
- Header row required. Columns
date,description,amountare mandatory;referenceis optional. Column order does not matter; header names are case-insensitive. - Dates must be
YYYY-MM-DD. Positive amounts are deposits, negative amounts are withdrawals. - Maximum file size 2 MB, extension
.csv. Export this format from your online banking or re-save in a spreadsheet.
Workflow
- Select the Bank / cash account (any active 10xx asset account) and the statement currency.
- Upload the CSV and click Import statement. Lines identical to ones already imported are skipped as duplicates; invalid rows are counted and reported.
- For each unmatched line the Suggested journal column proposes a posted journal that touches the same account with the exact amount within ±5 days. Review the description and reference, then click Match. You can also choose a different journal.
- Lines with no counterpart usually mean a missing entry — record the expense, settlement or journal, then return and match it.
Unmatched statement lines are counted on the dashboard under Items requiring attention.
16. Accounting Periods Accounting › Accounting Periods
- Click Create Open Period: give it a name (e.g. "Q4 2026") and a start/end date.
- Work normally. At period-end review Journal Entries for drafts and approved-but-unposted entries dated in the range.
- Click Close Period. The close is refused while any draft or approved journal remains in the range ("Close blocked…").
Once closed, any attempt to create or post a journal dated inside the period — manual, synced or system — is rejected with "The transaction date falls in a closed accounting period." Closing is recorded in the audit log as period.closed with the period name and range. Periods cannot be reopened from the UI; this is deliberate.
17. Fiscal Year & Year-End Accounting › Fiscal Year & Year-End
The screen calculates the fiscal-year range from the start month/day in Settings and shows a readiness checklist: draft/approved journals in the year, whether closed periods cover the full year, and the nominal accounts with activity in the chosen closing currency. It then shows a preview of the closing journal before anything is posted.
Closing
- Ensure no draft/approved journals remain in the year and that all posted journals in the year use the selected closing currency (foreign-currency journals must be handled separately first).
- Make sure 3100 Retained Earnings is active and that the year-end date is not inside an already-closed period.
- Tick "I have reviewed the trial balance, reconciliations, tax, inventory and nominal account balances for this year."
- Post the closing journal. Each revenue, contra-revenue and expense account is zeroed and the net result is moved to 3100. The journal is idempotent: a second close for the same year and currency is refused.
18. Opening Balances Accounting › Opening Balances
- Enter the opening date (normally the day before your go-live) and currency.
- Add one line per balance-sheet account (asset, liability or equity only): bank balances and receivables as debits, payables, loans and equity as credits.
- If the lines do not balance, put the difference to 3000 Owner Equity (or your retained-earnings figure).
- Submit. One balanced opening journal is posted; only one opening journal is allowed per date.
19. Overview dashboard Accounting › Overview
Choose a From / To range and a currency, then Update dashboard. All figures come from posted journals in that currency only — drafts and pending items are excluded, and unlike currencies are never added together.
| Panel | Source |
|---|---|
| Net revenue | Revenue accounts less contra-revenue (returns, discounts) in the period |
| Expenses / Net profit | Expense accounts; revenue − expenses |
| Cash & bank | Posted balances of 10xx asset accounts as at the To date |
| Accounts receivable / payable | Control-account balances (1100 / 2000) as at the To date |
| Financial performance | 12-month revenue / expenses / profit trend |
| Expense breakdown | Top expense accounts in the period |
| Receivables & payables | Open document totals and overdue counts — the subledger view |
| Items requiring attention | Pending approvals (journals, bills, payments, expenses), unmatched bank lines, failed sync events, approved-but-unposted journals |
| Recent posted journal activity | Latest journals with source and total; link to the register |
20. Financial reports
All reports accept a date range (or an "as at" date) and are generated live from posted journals. Buttons: Export CSV (Excel) — UTF-8 with BOM, opens cleanly in Excel — and Print / Save as PDF (uses your browser's print dialog; choose "Save as PDF").
| Report | Shows | CSV | |
|---|---|---|---|
| Profit & Loss | Revenue, contra-revenue, expenses, net profit/(loss) for the range | ✔ | ✔ |
| Balance Sheet | Assets, liabilities, equity and current-year result as at the To date, with a balance check line | ✔ | ✔ |
| Trial Balance | Every active account with debit / credit balance and totals | ✔ | ✔ |
| General Ledger | All posted lines for one selected account, with journal number and source description | ✔ | ✔ |
| Cash & Bank Movement | Net movement per 10xx account (an account-movement report, not a classified cash-flow statement) | ✔ | ✔ |
| Statement of Cash Flows | Direct-method operating / investing / financing / non-cash totals, reconciled to cash & bank movement; classification map editable on-screen | — | ✔ |
| Financial Analytics | Net profit margin, current ratio, liabilities-to-equity; comparative P&L vs the immediately preceding period of equal length | — | ✔ |
Cash-flow classification
On the Statement of Cash Flows screen, assign each non-cash account to operating, investing, financing or non-cash / excluded and save. Unclassified accounts default to operating. The Reconciliation difference line should be 0.00; if not, a journal touches a cash account and a counterpart you have excluded.
21. Audit Log Accounting › Audit Log
An append-only table of significant actions with user, timestamp, object type/ID and details. Filter by action, object type, user and date range; click Export filtered log (CSV).
Recorded actions include contact.created, document.created, document.payment_recorded, expense.created, expense.approved, journal.reversed and period.closed. Journal posting and approval identities are stored on the journal itself (created_by, approved_by, posted_by with timestamps).
22. Data, privacy & uninstall
- All data lives in your WordPress database in 13 tables:
wea_accounts, wea_periods, wea_journals, wea_journal_lines, wea_sync_logs, wea_settlements, wea_contacts, wea_documents, wea_document_items, wea_document_payments, wea_expenses, wea_bank_statement_lines, wea_audit_logs. - The plugin makes no remote requests, collects no telemetry and loads no external assets.
- Personal data stored: contact names, emails, phones, addresses and tax numbers you enter; WordPress user IDs on journals and audit rows. Include these in your privacy policy and data-export procedures.
- Uninstall: by default
uninstall.phpleaves all tables intact. If Delete accounting data when this plugin is uninstalled is enabled, it drops everywea_table and deletes the plugin options (wea_schema_version, wea_version, wea_settings, wea_delete_data_on_uninstall).
23. Limitations (please read)
- This is bookkeeping software, not professional accounting or tax advice. Have a qualified accountant review account mappings, tax treatment and statements.
- Jurisdiction-specific tax compliance and automated tax filing are not included. Documents support a single document-level tax rate.
- Inventory costing and automated cost-of-goods-sold are not included (5000 COGS is available for manual journals).
- No live bank feeds; reconciliation uses imported statement CSVs.
- Currency-aware, not multi-currency accounting: journals keep their own currency and reports are per currency, but FX revaluation and realised/unrealised gains or losses are not calculated. Year-end close requires a single currency per fiscal year.
- Cash-flow classification is account-mapping based and needs operator review.
- Orders with negative or invalid fee lines are not auto-posted; they are logged for manual handling.
- Audit logs are not tamper-proof against database administrators.
24. Troubleshooting & FAQ
The Accounting menu does not appear.
WooCommerce must be active, and your user needs wea_view_accounting. Deactivate and reactivate the plugin to re-grant default capabilities.
An order shows "failed" in the sync log: "Required default accounts are missing or inactive."
Reactivate accounts 1100, 1300, 2100, 4000, 4100, 4200 and 6200 in the Chart of Accounts, then click Import next 100 orders to retry.
"Order totals could not be reconciled."
The order contains a negative fee line or rounding that the plugin will not guess at. Record that order with a manual journal.
Dashboard shows 0 but I have orders.
Check the currency selector matches the order currency, the date range, and that the orders are Processing/Completed. Draft journals are excluded.
Why is Cash & bank negative?
Expenses were paid from a 10xx account before you recorded settlements or opening balances. Record the gateway payouts (section 11) or opening balances (section 18).
I cannot approve my own journal/bill/expense.
By design (maker-checker). A second user with the approve capability must do it. Administrators may self-approve bills and expenses only.
Period close is blocked.
Post or reverse every draft/approved journal dated in the range. The Journal Entries list shows status per row.
Bank CSV import fails.
Confirm the header contains date, description, amount; dates are YYYY-MM-DD; file ≤ 2 MB; extension is .csv; the currency field is a 3-letter code.
WooCommerce says the plugin is incompatible with HPOS.
The plugin uses only WooCommerce CRUD APIs and works under HPOS. If you see a compatibility notice, make sure you are on the latest plugin release.
Can I translate it?
Yes. Text domain woocommerce-enterprise-accounting; the template is in languages/woocommerce-enterprise-accounting.pot. Place .mo files in wp-content/languages/plugins/ or the plugin's languages folder.
25. Developer reference
Plugin identity
| Main file | woocommerce-enterprise-accounting/woocommerce-enterprise-accounting.php |
| Namespace / autoloader | WEA\ — PSR-4 style, includes/Autoloader.php |
| Constants | WEA_VERSION, WEA_FILE, WEA_PATH, WEA_URL, WEA_BASENAME |
| Text domain | woocommerce-enterprise-accounting |
| Options | wea_settings (array), wea_delete_data_on_uninstall, wea_cash_flow_classification, wea_import_page, wea_schema_version, wea_version |
| Licence | GPL-2.0-or-later (LICENSE.txt) |
Folder structure
woocommerce-enterprise-accounting.php bootstrap, constants, activation hooks
uninstall.php honours the data-retention setting
includes/
Core/ Plugin.php (boot), Activator.php, Deactivator.php
Database/ Schema.php (dbDelta tables, default accounts, upgrades)
Security/ Capabilities.php
Accounting/ JournalService, DocumentService, ExpenseService, OpeningBalanceService,
YearEndService, AuditLog, Currency, Decimal, StatementAmount
Integrations/WooCommerce/ AccountingSync.php (hooks + importer), Dependency.php
Admin/ Admin.php (menus) and Pages/*.php (one class per screen)
assets/css/admin.css, assets/js/admin.js
languages/woocommerce-enterprise-accounting.pot
documentation/help/index.html bundled customer help guide
Screens, slugs and required capability
| Menu item | Page slug | Capability |
|---|---|---|
| Overview | wea-accounting | wea_view_accounting |
| Chart of Accounts | wea-accounting-accounts | wea_manage_chart_of_accounts |
| Journal Entries | wea-accounting-journals | wea_view_accounting |
| General Ledger / Trial Balance / Profit & Loss / Balance Sheet / Cash & Bank Movement / Statement of Cash Flows / Financial Analytics | wea-accounting-ledger, -trial-balance, -profit-loss, -balance-sheet, -cash-movement, -cash-flow, -analytics | wea_view_reports |
| WooCommerce Sync | wea-accounting-sync | wea_manage_settings |
| Gateway Settlements | wea-accounting-settlements | wea_manage_settings |
| Customers & Suppliers | wea-accounting-contacts | wea_manage_contacts |
| Invoices & Bills | wea-accounting-documents | wea_manage_documents |
| Expenses | wea-accounting-expenses | wea_manage_expenses |
| Bank Reconciliation | wea-accounting-bank-reconciliation | wea_reconcile_bank |
| Accounting Periods | wea-accounting-periods | wea_manage_settings |
| Fiscal Year & Year-End | wea-accounting-fiscal-year | wea_view_reports |
| Opening Balances | wea-accounting-opening-balances | wea_manage_settings |
| Audit Log | wea-accounting-audit-logs | wea_view_audit_logs |
| Settings | wea-accounting-settings | wea_manage_settings |
Using the services from your own code
// Create and post a manual journal programmatically.
$service = new \WEA\Accounting\JournalService();
$id = $service->create_draft( array(
'transaction_date' => '2026-11-18',
'currency' => 'USD',
'description' => 'Owner capital injection',
'source_type' => 'custom',
'source_id' => 'CAP-1',
'lines' => array(
array( 'account_id' => 1, 'debit' => '5000.00', 'credit' => '0' ), // 1000 Cash
array( 'account_id' => 8, 'debit' => '0', 'credit' => '5000.00' ), // 3000 Owner Equity
),
) );
if ( ! is_wp_error( $id ) ) {
$service->post( $id );
}
// Write to the audit log.
\WEA\Accounting\AuditLog::record( 'custom.event', 'journal', $id, array( 'note' => 'Imported' ) );
Amounts are strings handled by \WEA\Accounting\Decimal (bcmath-backed) — never pass floats. All public service methods return WP_Error on validation failure.
Security model
- Every form action checks a nonce (
check_admin_referer) and a capability (current_user_can). - All SQL uses
$wpdb->preparewith explicit column lists; posting/approval run in transactions withSELECT … FOR UPDATE. - Output is escaped (
esc_html,esc_attr,esc_url); CSS and JS are external files, no inline handlers. - Uploads (bank CSV) are validated for size, extension, header and row content; nothing is stored on disk.
26. Changelog (recent)
- 0.24.6 — Supplier bill and expense posting routed through approval workflows; reconcile records whose journals were posted directly; restore 0.24.4 currency behaviour.
- 0.24.4 — Base currency follows the WooCommerce store currency; administrators may approve bills/expenses they created.
- 0.24.3 — Tested up to WordPress 7.1; code-style updates; refreshed help guide.
- 0.24.0 — New Overview dashboard: six KPI cards, 12-month trend, expense breakdown, subledger summaries, attention items.
- 0.23.0 — Period close blocked while draft/approved journals remain; period-close audit events.
- 0.22.0 — Uninstall data-retention setting; explicit column lists; translation template.
- 0.20.0 / 0.19.0 — Atomic bill and payment approval; maker-checker for supplier payments;
wea_approve_payablescapability.
The full history is in CHANGELOG.md and readme.txt inside the plugin.
27. Support & licence
- Support is provided through the CodeCanyon item support tab for six months from purchase (extendable). It covers installation, configuration and bug reports. It does not cover accounting advice or custom development.
- When reporting a problem please include: WordPress, WooCommerce and PHP versions, whether HPOS is enabled, the plugin version, and the relevant sync-log or audit-log rows.
- Licensed under GPL-2.0-or-later. Author: Choicenet Technologies Limited.