Provided that where, by the order aforesaid,—
(a) an assessment is set aside or cancelled and an order of fresh assessment is directed to be made, the refund, if any, shall become due only on the making of such fresh assessment;
(b) the assessment is annulled, the refund shall become due only of the amount, if any, of the tax paid in excess of the tax chargeable on the total income returned by the assessee.