When trying to edit an invoice (body level fields)...
# inventory
s
When trying to edit an invoice (body level fields) we get an error like this when saving if the lot qty available across bins is below what was on the related fulfillment. E.g. at time of creating an item fulfillment for a sales order we have 500 units available, we consume 400 of the 500 to fulfil the order and then create the invoice. So far so good. If we then edit the invoice to tick a checkbox and try to save it will throw an error "You only have 100 available. Please enter a different quantity." Is anyone else experiencing this?
k
I'd look at the scripts you have on the record
l
If you change some fields at line level it will remove link with SO and IF so it will require available stock and it will be fulfilled twice
k
Only if you remove the lines and add them back
s
Thanks @KevinJ of Kansas I’ll take another look at scripts. We also get the same error trying to edit the record through web services and when selecting the inventory detail for the culprit line in edit mode a javascript message box pops up with the same message (we don’t actually do this it was only found when trying to find whether there was an issue with any of the lines). Could both those contexts be covered by one script? I would have thought the second requires a client script which wouldn’t impact web services.
k
A user event script would hit both contexts
or a workflow trying to do things too.
I'd try changing your scripts deployments to undeployed - and see if it goes away
and then if it does - add your script deployments back until you figure out which one is causing it
s
Ok thanks
Really appreciate the help