Migration
The migration wizard copies the data of another invoicing component into JoomInvoice. In 6.5.2 the source it supports is Invoice Manager by JoomlaThat.com (component com_invoices), all releases from 1.x to 5.0.0 Pro.
The other component is only read. Nothing is changed in it, so you can keep it installed until you are happy with the result.
Only a Super User can run a migration.
Before you start
Back up your database. A migration writes many rows at once. The wizard can undo a run, but a full backup protects you from every outcome.
Run the wizard
Click Migration in the JoomInvoice sidebar. The wizard has five steps.
1. Source
Pick Invoice Manager. The wizard shows how many records it found on this site.
If the old invoices are on another site, export the Invoice Manager tables there and upload the file under Migrating from another site. Accepted formats are .sql, .zip and .gz. Only the invoice tables are read. A file with other tables or other statements is refused. Discard uploaded data removes the uploaded data again.
2. Review
A table lists each kind of data, the source table, how many rows will be migrated, how many are already in JoomInvoice and how they are handled. Warnings tell you about tables or columns that older Invoice Manager releases do not have.
3. Options
Under Data, tick what to migrate: Currencies, Taxes, Templates, Products, Contacts, Invoices and quotes, Line items, Invoice taxes and Payments. Leave Templates unticked to keep JoomInvoice's own templates. Imported invoices then use those.
Under Also bring across:
| Option | What it does |
|---|---|
| Recalculate totals and statuses | Rebuilds the totals, taxes and status of every imported invoice from its lines and payments. |
| Component settings | Copies the Invoice Manager options JoomInvoice also has: company details, numbering, date format, email subjects and PDF folder. |
| Logos and media files | Copies files from /media/com_invoices/ to /media/com_joominvoice/. Existing files are not overwritten. |
| Site menu items | Points menu items of the old component at JoomInvoice. Undo restores them. |
Under Mode:
| Mode | What it does |
|---|---|
| Add to existing data | Keeps your JoomInvoice records and gives the imported records new IDs. Safe to run more than once. |
| Replace existing data | Empties the JoomInvoice tables first, so the old IDs and invoice numbers are kept exactly. Only for a fresh install. You must type DELETE to confirm. |
4. Migrate
Click Start migration. A table shows for each step how many records were imported, matched or skipped, with Details below.
5. Finish
Check the list under Worth checking now:
- Open the invoice list and check totals and statuses.
- Make a PDF of one migrated invoice.
- Enter your payment gateway keys again in the JoomInvoice payment plugins. They are stored in the old component's plugins and are not migrated.
- Check that invoice numbering continues from your last number.
- Uninstall the old component when you are satisfied.
Undo a migration
The Previous migrations list shows each run with its source, start time, records imported and status. Undo migration #N removes every record that run created and restores the settings and menu items it changed. Records that were already in JoomInvoice are not touched.