How to adjust GST given on advance

Hi All,

We need help on how to adjust GST on advance while creating Sales Invoice.

Please help as the GST once given in advance should be deducted from GST in sales invoice.

Thanks