I'm trying to post an inventory worksheet using a restlet and for some reason i'm getting an error that stops me on posting my inventory worksheet:
"The field estamount contained more than the maximum number ( 15 ) of characters allowed."
I don't even set any amount just the quantity with this line:
//…. More codes
inventoryRecord.selectLine({ sublistId: 'invt', line: matchedLine });
inventoryRecord.setCurrentSublistValue({ sublistId: 'invt', fieldId: 'invtnewqty', value: newqty });
my logs indicate that after setting the qty it gives me error; ive also tried using "ignoreFieldChange: true" and setting the 'invtenteredcost' to a fixed value but it still doesn't allow me to save
but when i tried to switch the location to a one without bin, any ideas or help would be helpful
Resolution:
The 'invtnewvalue' is required to set the value of the estimate amount
i did this: inventoryRecord.setCurrentSublistValue({ sublistId: 'invt', fieldId: 'invtnewvalue', value: newItemValue });