Why does the balance invoice have an amount of zero

The balance invoice has an amount zero, because it transfers the advance produced with the first invoice issued (Advance invoice). The purpose is to allow, who has registered the first invoice, to transfer it in the account book.