Appearance
Legacy bridge β
Role: Migrate and transform data from the Optimizers-platform into the OCP, ensuring compatibility and data integrity.
Table of Contents β
Overview β
The LegacyBridge is a data-migration component responsible for:
- Extracting records from the Optimizers-platform
- Converting them into a format the OCP accepts
- Applying corrective rules to satisfy OCPβs stricter validation
The LegacyBridge runs after every synchronization cycle, ensuring that any changes in the Optimizers-platform are reflected in the OCP.
Item Migration β
Stocks β
- Default Warehouse: All stock records are assigned to the
"General"warehouse. - Negative Quantities: Any negative stock levels are reset to
0to prevent validation errors.
Prices β
- Default Pricelist Creation: For each currency detected in the Optimizers-platform, the LegacyBridge generates a corresponding default pricelist in OCP.
- Price Assignment: Each itemβs price in OCP is initialized from the default price in the Optimizers-platform.
ItemImages β
- Format Conversion: Optimizers-platform exports images as optimized JPGs (no alpha channel).
- Transparency Limitation: PNGs or formats with transparency cannot be generatedβimages remain opaque.
Item Attributes β
The LegacyBridge transfers additional item-specific metadata into OCP via the Attributes system when present:
| Attribute | Source Field | Description |
|---|---|---|
PurchasePackageSize | item.PurchasePackageSize | Package size quantity for purchase. |
EanCode | item.Eancode | European Article Number (barcode). |
ItemType | item.ItemType | Classification or category of the item. |
MinimumOrderQuantity | item.MinimumOrderQuantity | Smallest allowable order quantity per item. |
Stocks β
- Default Warehouse: All stock records are assigned to the
"General"warehouse. - Negative Quantities: Any negative stock levels are reset to
0to prevent validation errors.
Prices β
- Default Pricelist Creation: For each currency detected in the Optimizers-platform, the LegacyBridge generates a corresponding default pricelist in OCP.
- Price Assignment: Each itemβs price in OCP is initialized from the default price in the Optimizers-platform.
ItemImages β
- Format Conversion: Optimizers-platform exports images as optimized JPGs (no alpha channel).
- Transparency Limitation: PNGs or formats with transparency cannot be generatedβimages remain opaque.
Customer Migration β
OCP models customers, contacts, and addresses via a flexible Attributes system. The LegacyBridge copies relevant fields into these attributes if present.
Customer Attributes β
| Attribute | Source Field |
|---|---|
Fax | Customer fax number |
Website | Customer website URL |
CustomerManager | Assigned account manager |
CustomerClassification | Tier or segment classification |
PaymentConditionCode | Payment terms code |
DeliveryMethod | Default delivery method code |
Contact-person Attributes β
| Attribute | Source Field |
|---|---|
Function | Job title/role |
MiddleName | Second given name |
Address Attributes β
| Attribute | Source Field |
|---|---|
AddressLine2 | Secondary street line |
AddressLine3 | Tertiary street line |
Fax | Fax number at address |