Partial Pre-Payment PO Module

I have a vendor deposit in SAGE 100 and then once the parts come in portions I post the prepayment in increments. The issue I have is I have an invoice of goods that was posted with transaction of -5,910 in the prepayment and once it post invoice of goods post it automatically post  to the vendor deposit account and leaves the payable open on my A/P ??