Hi i have created sales order with 4 quantity of l...
# ask-stanley-ai
b
Hi i have created sales order with 4 quantity of line item and then i updated the sales order with soap api and quantity is null as i have not set any quantity on update so it will not update the quantity which was working fine but from 2-3 days on update it updates the quantity to 1 which should not happen
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like you're experiencing an issue with the SOAP API updating the quantity of a line item to 1, even though you haven't set any quantity during the update. This behavior is unexpected as it was working fine previously. One possible reason could be a change in the behavior of the SOAP API or a change in your code that's causing this issue. It's also possible that there's a default value being set somewhere in your code or in the API that's causing the quantity to be updated to 1. Here's a suggestion based on the conversations: 1. Check your code to ensure that there's no default value being set for the quantity during the update. If there's a default value being set, it could be causing the quantity to be updated to 1. 2. Check the behavior of the SOAP API. If there's been a change in the behavior of the API, it could be causing this issue. You might need to adjust your code to accommodate this change. 3. If you're using a script to update the sales order, consider using a Map/Reduce script. This type of script can handle large amounts of data and can be more efficient for updating large sales orders. 4. If you're trying to update the 'quantity committed', one of the conversations suggests that you can't modify this directly via a script. Instead, you can modify the 'quantity' and then add another line with the same item and remaining quantity, setting the 'commitinventory' option to 3 (Do not commit). 5. If you're trying to update an existing invoice, one of the conversations suggests not to change the item as it will reset all sourced fields. Also, avoid messing with the internal line and id fields. Remember to test any changes in a sandbox environment before applying them to your live environment. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830997
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825961471
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818793595
Please provide your feedback on this answer.