Skip to content

Manish girman patch 1#429

Closed
manish-girman wants to merge 18 commits into
frappe:version-16from
girmantech:manish-girman-patch-1
Closed

Manish girman patch 1#429
manish-girman wants to merge 18 commits into
frappe:version-16from
girmantech:manish-girman-patch-1

Conversation

@manish-girman
Copy link
Copy Markdown

No description provided.

uditsingh-girman and others added 18 commits April 27, 2026 20:07
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

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)
@manish-girman manish-girman requested a review from ankush as a code owner May 7, 2026 10:04
@manish-girman manish-girman changed the base branch from develop to version-16 May 7, 2026 10:04
@manish-girman manish-girman deleted the manish-girman-patch-1 branch May 7, 2026 10:05
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