I am having a problem when importing my orders into QB

When importing my orders into QuickBooks the invoice does not get marked as paid even though the payment goes into “undeposited funds”. I then have to manually deposit the money into the bank account. The invoice shows a zero balance on the A/R report but shows up as an open order. How can I resolve this?