Skip to content

1.6.2

⚙️ Patch 1.6.2 — PrepBusiness disambiguation and Sellerlogic FBA SKU preference

🚀 Summary

  • Backend: When PrepBusiness returns multiple matches for an ASIN, the backend now queries Sellerlogic to resolve the active (FBA) SKU and selects the matching PrepBusiness article. This reduces FBA/FBM mismatches and ensures correct dimensions and title metadata are applied to items used for bundling and shipment creation.

✨ Improvements

  • Sellerlogic integration: Query Sellerlogic for ASINs that yield multiple PrepBusiness results and prefer the active SKU returned by Sellerlogic when selecting the PrepBusiness record.
  • Data propagation: Propagates resolved sku, title, and prepbusiness_id onto BundleItem instances so downstream bundling, notes and submission use canonical values.
  • Non-blocking calls: Sellerlogic lookups run via asyncio.to_thread to avoid blocking the event loop.
  • Logging: Added clear logs for the disambiguation flow (match counts, Sellerlogic result, chosen fallback and final PrepBusiness summary) to make troubleshooting easier.
  • Deterministic fallback order: single match -> Sellerlogic match -> exact merchant_sku -> first result.
  • Metadata validation: If Sellerlogic resolves a SKU but the matched PrepBusiness article lacks a title, code now raises a visible exception so missing metadata is surfaced instead of silently falling back.

🐛 Bug Fixes

  • Premature selection: Fixed a bug where the first PrepBusiness result was selected prematurely when searching by ASIN, which prevented Sellerlogic from being consulted and caused incorrect SKU selection.

📁 Files changed