Import from store
This wizard syncs your file with a linked online store in one of two ways, which you choose at the start: Import Bills from the store's orders, or Export Materials Cards to the store. This page also covers the Import Log dialog, which shows the result of every import. The steps are in Sync an online store.
Opening the window
- Open File > Online Stores and select the store. See Online stores.
- Click Sync, or double-click the store, or press
Enterwith the cursor in the list.
The command is enabled by the permission Export Materials and Warehouses or Import Bills (the Online Stores section on the Operations page of the Users window). A user who has only one of them sees the other sync type dimmed and cannot choose it. The wizard needs no licence feature. Its title is Sync with and the kind of store, such as Sync with Shopify.
| Button | What it does |
|---|---|
| Next | Moves to the next page. It is disabled on pages that wait for a result, as each page says. It is not shown on the first page. |
| Back | Returns to the previous page. It is disabled while an operation runs, and not shown on the first two pages. |
| Start | On the Export and Import Orders pages. Starts the run. |
| Cancel | Closes the window. During a run it asks first. After the run finishes, or after an error, its text becomes Close. |
On closing: if the wizard has finished a run, the window closes and the store records the sync time. If no operation has started, it closes at once. If an operation is running it asks "Are you sure you want to cancel the operation?" with Yes and No, and the operation pauses until you answer. Yes stops it and closes the window.
First page: connecting
Its title is "Welcome to Sync with Shopify Wizard", with the kind of store in place of Shopify. It opens by itself and starts the check: the program verifies the saved link settings, then connects to the store with the access keys. A picture and the words "Connecting to store..." show.
- If the check succeeds, the program reads the information about the last import and moves to Select Sync Type.
- If it fails, the picture changes, the error text shows in red with its instruction under it, and a Connect button runs the check again. The text of Cancel becomes Close.
The check messages are the same as those of the Link Settings page and the Store Settings page, except the currency mismatch message, which appears at Request Data.
The Select Sync Type page
| Option | Description |
|---|---|
| Import Bills | "Importing invoices from orders completed in the online store into the sales type specified in the store settings within the Al-Amin system". Available with the permission Import Bills. |
| Export Materials Cards | "Export material cards from the Al-Amin system to the online store (only materials that have been marked for the current store in the online stores tab)". Available with the permission Export Materials and Warehouses. |
Next is enabled only after you choose an available option. Back is not shown on this page. Next opens Request Data from Store for importing invoices, or Export Options for exporting.
Exporting material cards
The Export Options page
The top shows: "Warehouse balances update automatically after each export."
| Field | Description | Required | Values and rules |
|---|---|---|---|
| All products | All the materials marked for the store are exported. | Yes | One of two options. The value saved in the store settings, which starts as All products. |
| Specific products | Materials and groups you choose are exported. | Yes | Enables the two tabs. |
| Groups tab (with a count) | Groups whose materials are exported. | With Specific products | A grid with a Value column. Add a row from the new-row line at the bottom and choose the group from a search list. Delete a row with the Delete key. |
| Products tab (with a count) | Materials that are exported. | With Specific products | Like the previous tab, and you choose a material in it. |
| All, Default images of product and combination only, and None | What is exported of the material pictures. | Yes | In the Images Sync group. The value saved in the store settings. |
The grid rejects a row with no value with the message "The field 'Value' is required. Please enter an appropriate value." When you click Next the program saves these choices at once in the store settings in the file, and scheduled exports use them as well.
The Prepare Materials Cards page
Preparation starts when you reach it. The page shows "The wizard is now preparing product and warehouse cards.", a grid of materials, and, while it works, a progress line, a percentage and a bar at the bottom. The program prepares the store's warehouses first, then the materials. Only materials that need to be created or updated in the store are listed: those you marked for this store on the Online Stores page that have not been exported yet, or that changed since the last export.
| Column | Description |
|---|---|
| Material Code | The material code. A link that opens the material card. |
| Material Name | Its name. |
| Status | A success, warning or error mark. It shows when the material has been prepared. |
Below the grid is a summary of the number of cards, "… materials cards". A selected row that has warnings or errors expands and shows their messages. Back and Next are disabled during preparation. When it ends, Next is enabled if at least one material has no error. If an unexpected error occurs the message "An error occurred while preparing materials cards." appears.
The Export page
It lists the materials that are ready and have no errors, with this above them: "The wizard is ready to export. To continue, press Start." Click Start.
| Column | Description |
|---|---|
| Material Code and Material Name | As in the preparation. |
| Operation | After processing: an add mark if the material was created in the store, and a delete mark if it was removed from it. |
| Status | A success, warning or error mark after processing. Select a row with an error to read its messages. |
During the export the progress line, the percentage and the bar show at the bottom, and Back is disabled. In Shopify, the warehouses under Sales Store are exported before the materials.
When it finishes the message "Operation completed successfully" appears with the count under it: "… Succeeded" if all succeeded. If a material failed, the same message appears as a warning with "… Succeeded" and "… Failed". Then Back, Next and Start disappear, and Cancel becomes Close. If an unexpected error occurs, "An error occurred while exporting materials cards." appears and the window closes.
Importing invoices
The Request Data from Store page
It lists the orders that can be imported. The top shows: "The wizard is ready to request data from the store. To continue, click Request Data."
| Field | Description | Required | Values and rules |
|---|---|---|---|
| From | The first day orders are read from. | Yes | A date. The default is the date of the last import, never earlier than the start of the financial period. If nothing was imported from the store yet, it is the date the store was linked. |
| To | The last day. | Yes | A date. The default is today. |
| Request Data | Reads the orders from the store and lists them. | — | Disabled while it reads. |
Above the two fields an information box shows the last import, if there is one: "Latest Orders Import …" with the result, which is one of Succeeded, Partially Succeeded, Failed, Has Been Cancelled and Unexpectedly Interrupted, with the date and the user name. If the last import was scheduled, the import log shows the user name Scheduled.
Before it reads, the program adjusts the two dates and shows messages in these cases (see Messages): From is earlier than the store link date or the start of the period, or To is later than the end of the period, or To is earlier than From. It reads nothing if the store has no new order.
The orders grid. The orders are listed one by one with a progress line:
| Column | Description |
|---|---|
| Order Number | The order number in the store. A link that opens the order page. |
| Order Date | The date the order was created. |
| Bill Type | Sales or Sales Return. |
| Bill Date | Shopify: the shipment date. WooCommerce: the date the order was last modified. |
| Source | Shopify: the shipment name. WooCommerce: the order number. |
| Customer | The customer name as it is in the store. |
| Total | The order total as the program read it from the store. |
| Status | A success, warning or error mark. |
Below the grid is a summary, "… orders". A selected row that has a problem expands and shows its messages. Orders with an error are not imported, and the program records them in the import log. A warning alone does not prevent the import. Next is enabled if at least one order in the grid has no error.
Order problems the wizard shows:
| Message | Why it appears |
|---|---|
| Unknown product (…) | No material in the file matches the order's product. Link materials from the Link Products dialog. |
| Unknown Product Variant/Variation (…) | No combination in the file matches the product's combination. |
| Product variant segments count does not match its counterpart in alameen: … | The number of segments of the product's combination in the store differs from the number in the file. |
| Unknown Store (…) | In Shopify: the location of the shipment in the store is not linked to a warehouse in the file. |
| At least one order item does not have SKU | An order item has no SKU. |
| Bill currency does not match file default currency! | In WooCommerce: the order currency is not the file's first currency. |
| Order currency … is not defined in the Ameen system. | In Shopify, at import: the order currency is not in the file. It shows on the Import Orders page. |
| Currency Value Inconsistency | In Shopify: the items of one shipment have different exchange values, and the invoice can carry only one value. |
| Bill Date is before Opening Date or after Ending Date! | In Shopify: the shipment date is outside the file's financial period. |
| Payment Method is undefined! | In WooCommerce: the order has no payment method. |
| Payment method: … has no valid mapping! | In WooCommerce: the payment method is not linked in the Payment Methods dialog. |
| Bill tax value is zero! | In WooCommerce with the GCC tax system: the order's tax is zero. |
The Import Orders page
It lists the orders that have no error, sorted by order date, with this above them: "The wizard is ready to import orders. To continue, press Start." Click Start.
| Column | Description |
|---|---|
| Order Number, Order Date, Customer and Total | As on the previous page. |
| Status | A success, warning or error mark after processing. |
| Bill | The number of the invoice the program created. A link that opens it. |
Each order becomes a sales invoice (or a sales return invoice in Shopify) in the invoice type set in the link settings, saved with the customer, customers account and warehouse set there. In Shopify, if the order has a customer and Default Customer is set, the invoice is saved to it. If Default Customer is not set, the customer is saved in the file (and created if it does not exist). If the order has no customer, the invoice is saved as cash. The invoice notes show the source and the shipment or order number. After the import the program updates the warehouse balances in the store, as the note on the Import Settings page says.
When it finishes, the message "Operation completed successfully" appears with "… Succeeded", or as a warning with "… Succeeded" and "… Failed" if an order failed. Then Cancel becomes Close. If an unexpected error occurs, "An error occurred while importing orders." appears and the window closes. The program records in the import log the import operation and every order that was not imported.
The Import Log dialog
It shows the invoice imports from the store, not the material exports. It opens from the Import Log button on the Online Stores page with the permission Show Import History, and from the Import Log action of a scheduled import notification. It can be maximised.
| Group | What it holds |
|---|---|
| Import Operations | A grid with one import operation in each row, from the oldest to the newest. The first row is selected when it opens. |
| Unimported bill details | A grid of the orders that were not imported in the selected operation, and under it a read-only box with the details of the selected row. |
Columns of Import Operations:
| Column | Description |
|---|---|
| Date | The date of the operation. |
| User name | Who ran the import. Scheduled appears for a scheduled import. |
| Imported | The number of invoices the operation created. |
| Not imported | The number of orders that were not imported. |
Columns of Unimported bill details:
| Column | Description |
|---|---|
| Bill Type | The type of invoice that would have been created. |
| Source | The order or shipment number. |
| Reason | Why it was not imported, in the program's words, such as "Unknown Product" or "Payment Method is undefined!". |
The box under the grid shows the detail of the reason for the selected row, such as the material name or the currency.
| Button | What it does |
|---|---|
| Export | Saves the selected operation in an Excel file (xlsx) and opens it. Its sheet shows two tables: the operation data (Date, User name, Imported, Not imported), and its unimported orders (Bill Type, Source, Reason, Details). It is disabled with no operation selected. The save box starts at the desktop and asks before it replaces a file. |
| Close | Closes the dialog. There is no Ok button. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| The date specified in "From Date" field is earlier than the store link date or opening date; therefore, the import will start from the nearer of the two dates. | You clicked Request Data and From is earlier than the store link date or the start of the period. A warning. | Read the orders listed. The import starts from the later of the two dates. |
| The date entered in the "To Date" field is later than the ending date; therefore, the import will proceed up to the ending date. | To is later than the end of the financial period. A warning. | Nothing. The import stops at the end of the period. |
| The date specified in the "To Date" field is earlier than the date specified in the "From Date" field! | To is earlier than From after the adjustment. | Correct the two dates. |
| Store default currency does not match file default currency! | The store's currency is not the file's first currency. | Make the two currencies match. |
| No Orders to import! | There are no new orders in the period. | Widen the period. |
| An error occurred while reading orders from the store. | Reading the orders failed. | Check the connection and click Request Data again. |
| An error occurred while preparing materials cards. | Preparation failed. | Try again. |
| An error occurred while exporting materials cards. | The export failed. The window closes. | Sync again. |
| An error occurred while importing orders. | The import failed. The window closes. | Check the import log. |
| Operation completed successfully | The import or the export finished. | Click Close. |
| Are you sure you want to cancel the operation? | You closed the window during a run. | Yes stops it and closes. |
When you start an import or an export for a store in which an operation of the same kind is already running, started by another user or by the scheduler, these messages appear:
| Message | Why it appears | What to do |
|---|---|---|
| The operation is currently being executed by another user. Do you want to request an abort of the current operation? It is followed by the user, the machine, how long ago it started, the last heartbeat and when the operation will be considered frozen, or "The operation is now in a frozen state" | An operation of the same kind is running for the same store. The title is "Current Operation Abort Request". | Yes sends an abort request, and then "The request to abort the current operation has been sent. It will stop shortly, so please try again after a while." appears. No closes the wizard. |
| A request to abort the current operation has already been made, and it may take a little time for it to stop completely automatically. Do you want to force the operation to stop now? | An abort was requested earlier and the operation has not stopped yet. The title is "Force operation to stop". | Yes releases the lock, and "The current operation was forcibly stopped." appears. No closes the wizard. |
| Abort request for the current operation has been made by the user: … | Another user asked to abort your operation while it runs. | Try again in a while. |
| Sales Bill could not be generated! Check that Order Date is not after Ending Date and not before Opening Date or before Operations Lock Date | An order's invoice could not be saved. It shows in the order's problems. | Correct the dates and import again. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.