No person who has been appointed to any public office and has accepted that appointment shall be entitled to receive subsistence, per diem compensation, or travel allowances unless and until compliance is made with the provisions of G.S. 143-47.7. (1979, c. 477, s. 1.)