1.3.0
🚀 New Features¶
- Added Shopify articles & margin-rules backend and frontend flows:
- Added articles CRUD to centralize stock snapshots: backend/service_multi-repricer/app/crud/articles.py
- New API endpoints for Shopify articles (list, create, update, delete), recalc, sync-from-plenty and export-updates: backend/service_multi-repricer/app/api/v1/endpoints/shopify_article.py
- Plenty API endpoint to fetch Shopify articles and attach stock: backend/service_multi-repricer/app/api/v1/endpoints/plenty.py
🔧 Improvements¶
- Data enrichment and pricing logic
- Enriched Plenty-returned shopify articles with latest stock from
articlessnapshots. - Centralized recalculation logic that computes
target_price, selects margin rule, applies package mapping and marks itemsUPDATE_NEEDED(no auto-export). -
Added
target_pricehandling and clearer status flow for staged exports. -
Backend changes
- Created
Articleschema for unified snapshots: backend/service_multi-repricer/app/schemas/articles.py - Added CRUD helper: backend/service_multi-repricer/app/crud/articles.py
-
Plenty manager batching and export helpers enhanced (weight & variation sales price batching) (service files modified).
-
Frontend changes
- Added API helpers and adjusted calls in
shopify.jsto send proper query params and sync/recalc/export actions: frontend/src/services/api/multi/shopify.js - New Shopify Margin Rules UI tab (simplified model:
buy_price,target_margin,min_profit): frontend/src/pages/MultiRepricer/Tabs/SubTabs/SubSubTabs/ShopifyMarginRulesSubTab.jsx - New Shopify Articles UI tab matching Kaufland layout (filters, pagination, cron controls, per-row actions): frontend/src/pages/MultiRepricer/Tabs/SubTabs/ShopifyArticlesSubTab.jsx
- Added cron UI (react-cron-generator) to Shopify Articles tab and wired start/stop/status calls.
🐛 Bug Fixes¶
- Fixed several endpoint call shapes between frontend and backend (query params vs. manual URL building) so
sync-from-plenty,getArticles, and recalc/export calls use consistent axiosparams.
SQL¶
- Execute the following SQL scripts (against the
service_multi-repricerdatabase) in this order: shopify_margin_rules.sqlshopify_articles.sql