Order Processing
The script is needed to automatically display orders from the marketplace in your accounting system and ensure that their statuses and product compositions are always up-to-date.
To get started, go to the Settings tab in the store card and add the Order Processing script.
Automatic Document Creation
You can configure which marketplace order statuses will trigger document creation in the accounting system:
- Shipment: It's recommended to link to multiple statuses (e.g., "Shipped" and "Delivered").
Important: When a Shipment is created, the inventory is deducted from the warehouse, and the reservation is automatically released.
-
Incoming Payment: Typically set to the final status (e.g., "Delivered").
-
Transfer: Needed for changing warehouses. Example: For WB, when the status is "Customer did not accept the product," you can configure a transfer to the marketplace warehouse (FBW) for resale.
-
Customer Return: Created for automatically redirecting returned products to the return warehouse.
Additional Document Options:
-
Draft: The document is created but not posted. It does not affect stock levels until you manually review and post it.
-
Update: If enabled, the system will update existing documents when changes occur. If disabled, documents will be created only once (useful if you manually handle further accounting).
Setting up and releasing product reservations
-
To prevent customers from ordering out-of-stock products, set up reservations:
-
Enable the 'Reserve Product' option.
-
Enable the 'Create Shipped Order' option.
-
-
How it works:
-
As soon as a new order is placed, the product is reserved. The available stock decreases (Stock - Reservation = Available).
-
When a Shipment document is created for this order, the reservation is released, and the product is finally written off the inventory.
-
Custom Field Templates
-
If you need to pass additional order information from the marketplace to the inventory management system document:
-
Locate the "Custom Field Filling" block within the script settings.
-
Enable the "Process Extended Order Data" toggle.
-
Customize the template to fit your needs.
-
Reprocessing Orders
This feature is useful if you need to recalculate data within your accounting system (e.g., update prices, commissions, accruals, product composition, or recreate documents based on the current status).
Important: Reprocessing does not download new data from the marketplace. It simply reprocesses the data that is already in the system. If you need to fully update the information directly from the marketplace, run the 'Order Processing' script manually with the 'Full Reprocessing' parameter enabled.
How to Start Reprocessing:
-
Go to the Orders tab in your store's listing.
-
Find the necessary orders using the Filter (you can search by period, status, specific order number, or a list of order numbers separated by semicolons ;).
-
Check the boxes next to the orders you want to reprocess in the first column of the list.
-
Click the yellow 'Reprocess' button in the top right corner of the screen.