PO invoiced fine from AX Client but throwing source document error from POS.


I am facing some issue when posting PO from POS, here when i select purchase order and confirm in POS, got raised with Error text below:

“The state of source document or source document line could not be updated”.

But when i ran the same retail transaction ex method in job with parameters, then the PO is invoiced fine without any issues.

If any one please come across this issues please help.