Skip to content

Improve exception handling of Unicommerce#430

Closed
manish-girman wants to merge 1 commit into
frappe:version-16from
girmantech:improve-exception-handling
Closed

Improve exception handling of Unicommerce#430
manish-girman wants to merge 1 commit into
frappe:version-16from
girmantech:improve-exception-handling

Conversation

@manish-girman
Copy link
Copy Markdown

No description provided.

@manish-girman manish-girman requested a review from ankush as a code owner May 14, 2026 05:44
fix(inventory): Add logging and error handling to inventory sync

- Add integration log creation with detailed progress tracking
- Add per-warehouse error handling (continue on failure)
- Add summary report with success/failure counts
- Fix silent failures - all operations now logged
- No breaking changes, maintains original controller imports

fix(product): Fix critical item sync bug affecting 30% of inventory

fix(product): Fix critical item sync bug affecting 30% of inventory

Critical Fix:
- Changed SQL query: SELECT item.name instead of item.item_code
- Fixed JOIN: ON item.name instead of item.item_code
- Bug caused 1,653 items to fail (frappe.get_doc needs primary key)
- Items where name ≠ item_code crashed silently

Improvements:
- Add per-item error handling (batch continues on failures)
- Add [x/total] progress tracking in logs
- Add detailed error messages and summary reports
- Add inline documentation explaining the bug fix

Impact: 5,522/5,522 items can now sync (was 3,869/5,522)

Update product.py

Update inventory.py

Update inventory.py

fix: Update inventory.py with proper import

Update invoice.py

fix: Update invoice.py

fix: Update invoice.py 2.0
fix : Update invoice.py 3.0, patch work added
fix: Update invoice.py 4.0
fix: Update order.py, added logs, error handling
Update order.py
Update invoice.py
fix(unicommerce-invoice): apply item tax templates and dynamic GST template resolution
fix: commented doc_events part from hooks.py
Update invoice.py
Update invoice.py

Better exception handling for unicommerce
@manish-girman manish-girman force-pushed the improve-exception-handling branch from 05f4b5b to c2940b4 Compare May 14, 2026 05:48
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.

2 participants