So it looks like one of the columns that is expecting an integer has a blank value.
You have manually added another addFilter() row on line 37... that could be the issue since you have two filters on the same column. Or you have the column cantidad_pedida, which i see you have repeated rows for. That could cause issues as well. Setting the same column to multiple values in a single update seems problematic.
I'd start by specifying the correct column name on line 43. Then moe line 37 down to line 56 and remove that repeated filter value... I'm not sure which one is correct.
When hand editing, you have to be careful. It appears your hand edits may be the source of these issues.