Location Code not fetched. Possible reasons
SELECT TOP 1 [LOCATION_CODE] FROM [SALES_H] WHERE [DOC_No]='$inv_id'Unauthorised access. GSTIN not available.