feat: sync sales order if not found during invoice preparation#425
Open
devinvento wants to merge 2 commits intofrappe:version-16from
Open
feat: sync sales order if not found during invoice preparation#425devinvento wants to merge 2 commits intofrappe:version-16from
devinvento wants to merge 2 commits intofrappe:version-16from
Conversation
Author
|
Fix: Handle Shopify Webhook Race Conditions This update ensures reliable synchronization between Shopify and ERPNext by handling out-of-order webhook execution. Problem Shopify may send orders/paid before orders/create, causing Sales Invoice creation to fail due to a missing Sales Order. Solution Added a fallback mechanism in prepare_sales_invoice: If the Sales Order is not found, call sync_sales_order(order, request_id) to create it immediately. |
…voices, Delivery Notes, and Sales Orders during Shopify order cancellation
787a981 to
3995e42
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.