I was debugging an issue on PO. When trying to post invoice, it updates inventory and throws error. I found out that a query range was being added on a field through query.addrange().value();. The value was like 'rec..2', having double dots. When i saw the final transformed query from watch window, it made it like this -> (inventTrans.PakingslipId >= 'rec' AND inventTrans.PackingSlipId <= '2'). it removed the dots and broke the value. Query returned no record. I couldn't understand why it happened. when I corrected the value of packing slip id, having no double dots. It ran fine.
Can anyone elaborate why it happened?
*This post is locked for comments
I have the same question (0)