Skip to content

Legacy bridge ​

Role: Migrate and transform data from the Optimizers-platform into the OCP, ensuring compatibility and data integrity.

Table of Contents ​

  1. Overview
  2. Item Migration
  3. Customer Migration

Overview ​

The LegacyBridge is a data-migration component responsible for:

  1. Extracting records from the Optimizers-platform
  2. Converting them into a format the OCP accepts
  3. 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 0 to 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:

AttributeSource FieldDescription
PurchasePackageSizeitem.PurchasePackageSizePackage size quantity for purchase.
EanCodeitem.EancodeEuropean Article Number (barcode).
ItemTypeitem.ItemTypeClassification or category of the item.
MinimumOrderQuantityitem.MinimumOrderQuantitySmallest 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 0 to 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 ​

AttributeSource Field
FaxCustomer fax number
WebsiteCustomer website URL
CustomerManagerAssigned account manager
CustomerClassificationTier or segment classification
PaymentConditionCodePayment terms code
DeliveryMethodDefault delivery method code

Contact-person Attributes ​

AttributeSource Field
FunctionJob title/role
MiddleNameSecond given name

Address Attributes ​

AttributeSource Field
AddressLine2Secondary street line
AddressLine3Tertiary street line
FaxFax number at address