Skip to content

Merge dev into main #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 31, 2025
Merged

Merge dev into main #337

merged 8 commits into from
Jul 31, 2025

Conversation

rafaelurben
Copy link
Owner

No description provided.

@rafaelurben rafaelurben requested a review from Copilot July 31, 2025 01:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors stock management functionality by extracting stock-related code from models into a dedicated utility class, improves email templates with better table structure and formatting, and fixes typos throughout the codebase.

  • Extracts stock management logic from Order and Product models into a new StockUtils utility class
  • Updates email templates with improved table layout and fixed CSS styling for better presentation
  • Fixes spelling errors in variable names and documentation

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
kmuhelper/modules/main/utils.py Adds new StockUtils class with refactored stock management functionality
kmuhelper/modules/main/models.py Removes deprecated stock management methods from Order and Product models
kmuhelper/modules/main/admin.py Updates admin to use new StockUtils class and adds stock warning email action
kmuhelper/modules/integrations/woocommerce/api/orders.py Updates order creation to use new StockUtils for stock warnings
kmuhelper/templates/kmuhelper/emails/order_stock_warning.html Improves table structure and adds trigger information display
kmuhelper/templates/kmuhelper/emails/base.html Simplifies CSS and fixes postcontent typo
kmuhelper/modules/emails/models.py Fixes postcontent variable name typo
docs/manual/emails.md Updates documentation to reflect fixed variable name

@rafaelurben rafaelurben merged commit 4fd327e into main Jul 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant