WooCommerce for Perfex CRM By Head Random 2026-05-04 3:20 AM

Auto-Generate Invoices From WooCommerce Orders in Perfex CRM

The Accounting Nightmare

A customer completes an order on your WooCommerce store at 2 AM. The next morning, your sales team sees it. By afternoon, someone manually creates an invoice in Perfex CRM. Two days later, accounting discovers the invoice total doesn’t match the order because someone forgot the shipping charge.

When invoices and orders live in different systems, mistakes aren’t exceptions — they’re the default.

Automatic Invoice Generation

WooSync includes a built-in Invoice Builder that automatically converts completed WooCommerce orders into Perfex CRM invoices. Enable it per store with a single toggle: auto_create_invoice.

When an order reaches “completed” status, the invoice builder:

Two-Way Synchronization (Bi-directional Updates)

Invoicing shouldn't be a one-way street. WooSync v1.2.0 introduced powerful two-way automation to keep both systems perfectly aligned:

  • Payment to Completion: When a client pays an invoice in Perfex CRM, WooSync automatically updates the corresponding WooCommerce order status from 'Processing' to 'Completed'.

  • Automated Refunds: If you refund an order directly in WooCommerce, WooSync detects the webhook and automatically generates a Credit Note or Expense in Perfex CRM. This guarantees your accounting books remain perfectly balanced without double-entry manual work.

Smart Tax Mapping

WooCommerce and Perfex CRM have different tax systems. WooSync bridges them with a tax mapping table:

WooCommerce→Perfex CRMTax class + Rate ID→Perfex Tax ID + Name + Rate

Configure your mappings once. Every invoice generated afterward applies the correct Perfex tax automatically. No manual tax calculation. No rate mismatches.

Full Line Item Detail

Every invoice captures the complete order structure:

  • Products: Name, SKU (in long description), quantity, unit price

  • Shipping: Method title and total (e.g., “Shipping: Flat Rate — $15.00”)

  • Fees: Additional charges with name and amount

  • Coupons: Discount codes as negative amounts (e.g., “Coupon: SUMMER20 — -$25.00”)

Currency Resolution

Multi-currency WooCommerce stores? WooSync resolves WooCommerce currency codes (USD, EUR, VND) to Perfex CRM currency IDs automatically. Falls back to your base currency if no match is found.

Duplicate Prevention

What happens if you clear WooSync data and re-sync? The invoice builder uses an adminnote signature check — it searches for existing invoices with the same “WooSync: Order #XXXX” note. If found, it re-links instead of creating a duplicate.

This idempotency guarantee means you can re-sync safely without invoice pollution.

From Order to Invoice: Zero Manual Steps

Manual ProcessWooSync ProcessSee order → Copy details → Create invoice → Add items → Calculate tax → SaveOrder completed → Invoice created automatically~15 minutes per order~0 secondsHuman errors in every stepExact data from sourceAccounting discovers mismatches days laterInvoice matches order by design

Financial Accuracy at Scale

Whether you process 10 orders or 10,000, every invoice is:

  • Created automatically

  • Linked to the correct client

  • Tax-accurate via mapping

  • Complete with all line items

  • Audit-stamped with the WooCommerce order number

Accounting should verify invoices, not create them.