If the Sales Order has batch item rows, it cannot be closed and there is no relationship with POS Receipt at SAP. If the SO has even one row of batch item, there is relationship with POS Receipt but SO is still open and only close the non-batch item ...