How to debug POS application

hi all,

while doing the item recevie from Pos application , receving error that source document and source line cannot be updated

here we are doing the pending invoice posting of purchase order of inter company , used axivendnvoice table class and

axvendinvoiceline table .can any body suggest how to debug the pos application .

can any