8. The assignment shall terminate(a) upon payment of the whole amount due to the supplier for the service supplied before and after the assignment, including the amount showing on the last account and the costs under section 19; and
(b) upon the giving of a deposit or any other security to the supplier to guarantee four months of electrical consumption in advance, as estimated by the supplier.