Enterprise Accounting for WooCommerce

Documentation · Plugin version 0.24.6 · Last updated 18 November 2026

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.

What it automates
  • 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
What you record
  • 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.

Accounting overview dashboard
The Accounting › Overview dashboard after a few posted transactions.

2. Accounting concepts used

You do not need to be an accountant to operate the plugin, but a few terms appear on every screen.

TermMeaning 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 / PostedA journal's lifecycle. Only posted journals affect reports and the dashboard. Posted journals are immutable.
ReversalA 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-checkerThe 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 accountA general-ledger account that summarises a subledger: 1100 Accounts Receivable for customer invoices, 2000 Accounts Payable for supplier bills.
SubledgerThe list of open documents (invoices or bills) behind a control account. The dashboard shows both so that differences stay visible.
Nominal accountsRevenue, contra-revenue and expense accounts. Their balances are closed to 3100 Retained Earnings at year-end.
Cash / bank accountsAny active asset account whose code begins with 10 (e.g. 1000). Used by settlements, expenses, bank reconciliation and the cash reports.
Accounting periodA named date range. Once closed, no journal dated inside it can be posted.

3. Requirements

ComponentMinimumNotes
WordPress6.5Tested up to 7.1.
WooCommerce8.0Must 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).
PHP7.4Tested on 7.4 – 8.4. The bcmath extension is used for exact decimal arithmetic when available.
DatabaseMySQL 5.7+ / MariaDB 10.4+InnoDB tables are required: approvals and postings run inside database transactions with row locks.
BrowserAny modern browserThe admin uses native WordPress styles plus one external stylesheet and one script.
Back up first. Take a full file and database backup before installing, upgrading or uninstalling any accounting software.

4. Installation & upgrade

4.1 Install from the ZIP

  1. Download enterprise-accounting-woocommerce.zip from your CodeCanyon downloads page.
  2. In WordPress go to Plugins › Add New › Upload Plugin, choose the ZIP and click Install Now.
  3. 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.
  4. A new top-level Accounting menu appears. Open Accounting › Overview.
If WooCommerce is not active you will see an admin notice and the accounting screens stay disabled until WooCommerce is activated.

4.2 Upgrade

  1. Back up the database.
  2. Upload the new ZIP via Plugins › Add New › Upload Plugin. WordPress offers "Replace current with uploaded". Accept it.
  3. Schema upgrades run automatically on the next admin page load (wea_schema_version is 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)

  1. 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.
  2. 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.
  3. Enter opening balances (existing businesses only) — Accounting › Opening Balances: bank balances, receivables, payables, equity as at the day before you start.
  4. Create an accounting period — Accounting › Accounting Periods, e.g. "November 2026", 2026-11-01 to 2026-11-30. Leave it open.
  5. Import history — Accounting › WooCommerce Sync › Import next 100 orders. Repeat until the batch reports zero orders.
  6. Let it run — from now on, every order reaching Processing or Completed and every refund posts automatically.
  7. Record your first payout — when your gateway pays out, enter it in Gateway Settlements.
  8. Record expenses and supplier bills as they occur; approve them with a second user.
  9. Reconcile the bank at month-end from a statement CSV.
  10. 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

SettingWhat it does
Base currencyRead 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 basisAccrual (default) or Cash. Guides future posting policies; changing it does not rewrite existing journals.
Fiscal year beginsMonth and day. Used by Fiscal Year & Year-End to calculate the year's date range.
Journal approvalWhen ticked, manual journals must be approved by a user other than their creator before they can be posted. Automated WooCommerce journals are unaffected.
Uninstall dataWhen 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.

CapabilityAllowsAdministratorShop Manager
wea_view_accountingSee the Accounting menu, Overview and Journal Entries list✔✔
wea_manage_accountingGeneral management actions✔✔
wea_view_reportsAll reports, Fiscal Year screen, exports✔✔
wea_manage_chart_of_accountsCreate / edit accounts✔✔
wea_create_journalsCreate manual journal drafts✔✔
wea_approve_journalsApprove another user's draft journal✔✔
wea_post_journalsPost approved / draft journals; create reversals✔✔
wea_manage_settingsSettings, WooCommerce Sync, Settlements, Periods, Opening Balances, cash-flow map✔✔
wea_manage_contactsCustomers & Suppliers✔✔
wea_manage_documentsInvoices & Bills, record payments✔✔
wea_manage_expensesSubmit expenses✔✔
wea_approve_expensesApprove and post expenses✔—
wea_approve_payablesApprove supplier bills and supplier payments✔—
wea_reconcile_bankBank Reconciliation✔✔
wea_view_audit_logsAudit Log and its CSV export✔—
Recommended separation of duties: bookkeeper = create journals, documents, expenses; finance manager = approve capabilities + post; auditor = view reports + view audit logs only.

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

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

CodeAccountTypeUsed automatically by
1000Cash and Cash EquivalentsAssetDefault cash/bank account; any 10xx asset account is treated as cash/bank
1100Accounts ReceivableAssetUnpaid orders, customer invoices (control account)
1150Recoverable Input TaxAssetAvailable for bills
1200InventoryAssetManual use
1300Payment Gateway ClearingAssetRequired. Paid orders, refunds, settlements
2000Accounts PayableLiabilitySupplier bills (control account)
2100Tax PayableLiabilityOrder tax, document tax
3000Owner EquityEquityOpening balances
3100Retained EarningsEquityRequired for year-end close
4000Sales RevenueRevenueRequired. Order product lines
4100Shipping RevenueRevenueOrder shipping
4200Other Order IncomeRevenueOrder fee lines
5000Cost of Goods SoldExpenseManual use
6000Operating ExpensesExpenseExpenses default
6100Payment Processing FeesExpenseRequired. Settlement fees
6200Sales DiscountsContra-revenueOrder discounts; refund fallback
6300Sales Returns and RefundsContra-revenueWooCommerce refunds
6400–6950Rent, Salaries, Utilities, Marketing, Transport, Repairs, Office & AdminExpenseExpense categories
Do not deactivate or re-number 1100, 1300, 2000, 2100, 3100, 4000, 6100. Automation looks these codes up by number and will log a failure ("Required default accounts are missing or inactive") if they are not active.

9. Journal Entries Accounting › Journal Entries

Journal entries

Create a manual journal

  1. Enter the date, currency (3-letter code) and a description.
  2. Add at least two lines: account, debit or credit amount, optional line description.
  3. 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_journals clicks Approve. The creator sees "The journal creator cannot approve their own journal."
  • A user with wea_post_journals clicks 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.

System-generated journals (orders, refunds, settlements, invoices, bills, payments, expenses, opening balances, year-end) appear in the same list with their source so you can trace any figure back to its origin.

10. WooCommerce Sync Accounting › WooCommerce Sync

WooCommerce synchronisation

What triggers a journal

WooCommerce eventHookResult
Order moves to Processing or Completedwoocommerce_order_status_processing / _completedOne sale journal (once per order — idempotent)
Refund created (full or partial)woocommerce_order_refundedOne refund journal per refund
Partial refund status changewoocommerce_order_partially_refundedStatus logged

Sale journal mapping

LineDebitCredit
Order total1300 Payment Gateway Clearing if the order is paid, otherwise 1100 Accounts Receivable
Product subtotal4000 Sales Revenue
Shipping4100 Shipping Revenue
Tax2100 Tax Payable
Fee lines4200 Other Order Income
Discounts6200 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.

  1. Open your provider's payout / settlement statement (Paystack, Flutterwave, Stripe, PayPal, etc.).
  2. Enter Provider, the unique Settlement reference, date, currency, Gross settled transactions, Provider fees, Net payout received and the Bank / cash account that received it.
  3. Click record. Gross must equal fees + net; the reference must be unique (prevents double entry).
LineDebitCredit
Net payoutSelected 10xx bank account
Provider fees6100 Payment Processing Fees
Gross1300 Payment Gateway Clearing
The plugin never estimates fees and never assumes an order payment has reached your bank. The balance of 1300 at any time is money still held by your providers — reconcile it against their dashboards.

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

Invoices and bills with ageing

Create a document

  1. Choose Invoice (to a customer) or Bill (from a supplier), the contact, document date, optional due date and currency.
  2. Add line items (description, quantity, unit price, revenue or expense account).
  3. Enter one document-level tax rate (0–100 %). Tax = subtotal × rate.
  4. Save. Numbers are assigned as INV-YYYY-NNNNNN / BILL-YYYY-NNNNNN.
Customer invoiceSupplier bill
PostingImmediately: Dr 1100 AR / Cr line accounts + 2100 TaxStatus pending until approved by a user with wea_approve_payables; then Dr line accounts (+ tax) / Cr 2000 AP
PaymentsRecord 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.
Statuspending → 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

Expenses
  1. Enter date, payee, description, reference, amount, currency, the category (an expense account such as 6400 Rent) and the Paid from cash/bank account.
  2. Click Submit expense for approval. Number EXP-NNNNNN is assigned, status pending.
  3. A user with wea_approve_expenses approves it. The journal (Dr category / Cr paid-from account) is posted in the same database transaction and the expense is linked to its JE number.

Both creation and approval are audited (expense.created, expense.approved).

15. Bank Reconciliation Accounting › Bank Reconciliation

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, amount are mandatory; reference is 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

  1. Select the Bank / cash account (any active 10xx asset account) and the statement currency.
  2. Upload the CSV and click Import statement. Lines identical to ones already imported are skipped as duplicates; invalid rows are counted and reported.
  3. 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.
  4. 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

  1. Click Create Open Period: give it a name (e.g. "Q4 2026") and a start/end date.
  2. Work normally. At period-end review Journal Entries for drafts and approved-but-unposted entries dated in the range.
  3. 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

  1. 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).
  2. Make sure 3100 Retained Earnings is active and that the year-end date is not inside an already-closed period.
  3. Tick "I have reviewed the trial balance, reconciliations, tax, inventory and nominal account balances for this year."
  4. 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.
The readiness checks confirm journal and period hygiene only. They are not confirmation that reconciliations, tax reviews, inventory valuation or statutory requirements are complete — have an accountant sign off.

18. Opening Balances Accounting › Opening Balances

  1. Enter the opening date (normally the day before your go-live) and currency.
  2. Add one line per balance-sheet account (asset, liability or equity only): bank balances and receivables as debits, payables, loans and equity as credits.
  3. If the lines do not balance, put the difference to 3000 Owner Equity (or your retained-earnings figure).
  4. Submit. One balanced opening journal is posted; only one opening journal is allowed per date.

19. Overview dashboard Accounting › Overview

Dashboard subledgers and attention items

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.

PanelSource
Net revenueRevenue accounts less contra-revenue (returns, discounts) in the period
Expenses / Net profitExpense accounts; revenue − expenses
Cash & bankPosted balances of 10xx asset accounts as at the To date
Accounts receivable / payableControl-account balances (1100 / 2000) as at the To date
Financial performance12-month revenue / expenses / profit trend
Expense breakdownTop expense accounts in the period
Receivables & payablesOpen document totals and overdue counts — the subledger view
Items requiring attentionPending approvals (journals, bills, payments, expenses), unmatched bank lines, failed sync events, approved-but-unposted journals
Recent posted journal activityLatest journals with source and total; link to the register
The KPI card for receivables (control account) and the subledger card (open invoices) can legitimately differ — e.g. an unpaid WooCommerce order sits in 1100 but is not an invoice document. Investigate differences rather than expecting equality.

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").

ReportShowsCSVPDF
Profit & LossRevenue, contra-revenue, expenses, net profit/(loss) for the range✔✔
Balance SheetAssets, liabilities, equity and current-year result as at the To date, with a balance check line✔✔
Trial BalanceEvery active account with debit / credit balance and totals✔✔
General LedgerAll posted lines for one selected account, with journal number and source description✔✔
Cash & Bank MovementNet movement per 10xx account (an account-movement report, not a classified cash-flow statement)✔✔
Statement of Cash FlowsDirect-method operating / investing / financing / non-cash totals, reconciled to cash & bank movement; classification map editable on-screen—✔
Financial AnalyticsNet profit margin, current ratio, liabilities-to-equity; comparative P&L vs the immediately preceding period of equal length—✔
Profit and Loss
Balance Sheet
Statement of Cash Flows
Trial Balance
General Ledger
Financial Analytics

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).

Audit records are application-level. They are not tamper-proof against someone with direct database access; restrict database credentials accordingly.

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.php leaves all tables intact. If Delete accounting data when this plugin is uninstalled is enabled, it drops every wea_ 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 filewoocommerce-enterprise-accounting/woocommerce-enterprise-accounting.php
Namespace / autoloaderWEA\ — PSR-4 style, includes/Autoloader.php
ConstantsWEA_VERSION, WEA_FILE, WEA_PATH, WEA_URL, WEA_BASENAME
Text domainwoocommerce-enterprise-accounting
Optionswea_settings (array), wea_delete_data_on_uninstall, wea_cash_flow_classification, wea_import_page, wea_schema_version, wea_version
LicenceGPL-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 itemPage slugCapability
Overviewwea-accountingwea_view_accounting
Chart of Accountswea-accounting-accountswea_manage_chart_of_accounts
Journal Entrieswea-accounting-journalswea_view_accounting
General Ledger / Trial Balance / Profit & Loss / Balance Sheet / Cash & Bank Movement / Statement of Cash Flows / Financial Analyticswea-accounting-ledger, -trial-balance, -profit-loss, -balance-sheet, -cash-movement, -cash-flow, -analyticswea_view_reports
WooCommerce Syncwea-accounting-syncwea_manage_settings
Gateway Settlementswea-accounting-settlementswea_manage_settings
Customers & Supplierswea-accounting-contactswea_manage_contacts
Invoices & Billswea-accounting-documentswea_manage_documents
Expenseswea-accounting-expenseswea_manage_expenses
Bank Reconciliationwea-accounting-bank-reconciliationwea_reconcile_bank
Accounting Periodswea-accounting-periodswea_manage_settings
Fiscal Year & Year-Endwea-accounting-fiscal-yearwea_view_reports
Opening Balanceswea-accounting-opening-balanceswea_manage_settings
Audit Logwea-accounting-audit-logswea_view_audit_logs
Settingswea-accounting-settingswea_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->prepare with explicit column lists; posting/approval run in transactions with SELECT … 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_payables capability.

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.