Fetch and validate advance entries in sales/purchase invoice