The correct entry is to debit A/R and credit Deferred revenue (liability). Once the you have met the revenue recognition requirements per GAAP then you would debit Deferred Revenue (liability) and credit Sales Revenue. If you need to know what the revenue recognition requirements are please write back and we can go from there.

In regards to the actual producing of the invoice your system is probably setup up by default to automatically debit A/R and credit Sales Revenue. Generally there is a drop down box which allows you to change where the credit will go, therefore change it to Deferred Revenue (liability). I hope this helps!