Skip to content

1.6.6

βš™οΈ Patch 1.6.6 β€” Repricer stability, profit accuracy and UI fixes

πŸš€ Summary

  • Fix Shopify expected profit to use the real margin model instead of price βˆ’ buy_price.
  • Run FBM recalculations in a background thread so bulk SP-API work no longer blocks other API requests.
  • Surface SP-API fee failures as proper article errors instead of silent fallback values.
  • Fix UVP removal, FBM export persistence, and article table header alignment.

✨ Improvements

  • Backend (Shopify):
  • expected_profit now uses the same net-revenue formula as price calculation (VAT, provision, fixed fee, package cost).
  • Backend (FBM):
  • FBM recalculation runs in a worker thread (same pattern as FBA), keeping the server responsive during long batch recalcs.
  • SP-API FeesEstimate failures raise SpApiFeeEstimateError and set per-country pricing errors plus article status=error with the real message (e.g. invalid/missing ASIN for SKU).
  • UVP export persists DE.ignore=true via deep-copy of international_pricing so JSONB updates are reliably saved.
  • Backend (UVP):
  • DELETE /{sku}/uvp accepts an optional body (channel flags) and clears min_uvp / max_uvp correctly.
  • Frontend:
  • Kaufland article table headers aligned with body columns (listing/min/max price, buybox, expected profit).
  • FBM table headers renamed to Min Price / Max Price with corrected column spans.

πŸ› Bug Fixes

  • Fixed FBM export DetachedInstanceError by re-fetching FBMDetails by ID after async Plenty/Sellerlogic calls.
  • Fixed DELETE UVP returning 422 because the frontend sent no request body.
  • Fixed sync_details_prices possibly using price_value before assignment when Plenty returned an unsupported or empty price entry.
  • Fixed misleading SP-API logs that claimed β€œreturning fallback values” while still producing incorrect profit data.

πŸ“ Files changed

  • backend/service_multi-repricer/app/api/v1/endpoints/shopify_articles.py β€” correct expected_profit calculation.
  • backend/service_multi-repricer/app/api/v1/endpoints/fbm_articles.py β€” non-blocking recalc; SP-API error handling; export ignore persistence.
  • backend/service_multi-repricer/app/services/amazon/spapi_client.py β€” SpApiFeeEstimateError; no fallback fee values on failure.
  • backend/service_multi-repricer/app/api/v1/endpoints/repricer_articles.py β€” UVP remove fix; sync_details_prices price guard.
  • frontend/src/pages/MultiRepricer/Tabs/BaseArticles/BaseArticles.jsx β€” UVP remove sends channel flags.
  • frontend/src/services/api/multi/repricer.js β€” removeUVP default body.
  • frontend/src/pages/MultiRepricer/Tabs/Kaufland/KauflandArticles.jsx β€” table header alignment.
  • frontend/src/pages/MultiRepricer/Tabs/FBM/FBMArticles.jsx β€” table header labels and colSpans.