Hey all, has anyone had experience with updating a...
# suitecommerce
c
Hey all, has anyone had experience with updating a line quantity on an existing sales order through a web service in My Account? I currently have a service that will load a sales order in the 'Pending Approval' status using nlapiLoadRecord, adjust the quantity on a given line and save the record using nlapiSubmitRecord. However, I continue to receive an error stating to 'Please enter credit card information.' The issue is that the sales order is currently using terms, so there should be no need for a credit card. I have confirmed that this works as expected when a credit card is on the sales order, or if a credit card was previously set, but currently has terms. Any information would be greatly appreciated.
k
@Cory does the customer associated with the sales order have a stored credit card?
If it does, make sure you clear the credit card fields when setting terms
c
@Keith Fetterman I have setup both scenarios. A customer with a credit card and one without. They both are experiencing the same issue when attempting to load and save the sales order. What is also interesting is that when I log out the sales order, it does not contain terms, nor can I get to it with a rec.getFieldValue('terms').
k
Weird. I know I have had issues in the past with a customer that had stored credit cards and I tried to submit a sales order with terms via scripting. I had to clear the fields that contained the stored credit card, credit card number, and I think the other fields as well (name on card, expiration date, etc.)
c
I am able to make it work if the sales order previously had a credit card set, but was set back to terms in the UI. When I look at the results of the record being logged out, I can see a credit card property with an id and no name. It's almost as if having that credit card property there is enough to pass validation. Although, that property does not exist if the sales order has only ever had terms.
k
Sounds like you may need to file a support case
c
That's what I'm starting to think as well. Thanks for the help though!