1. If the spouses have not agreed on the place of residence of their children and on the funds to be paid for their maintenance after the divorce, the court shall be obligated, when granting the divorce, to determine which parent is to be awarded custody of the child, as well as the amount of the maintenance (alimony) and the parent responsible for its payment.
2. In the cases provided for in this article, if necessary, a guardianship and custodianship authority shall be involved in the proceedings.