You have wrongly deposited the GST in firm where sale purchase is nil & & shown the sale therin & offset the same by GST deposited. if it is so then once the liability is offset by cash ledger the cash ledger balance become nil & you cannot take refund for the same , so the only way out is to show reversal of sale in your next return.