Borrow: bank deposit
Credit: main business income
Taxes payable - VAT payable (output tax)
Then do the account for repaying A's outstanding amount:
Borrow: accounts payable
Credit: bank deposit