Interpret the crediting instruction in the will first.
Check the exact wording of the will and its codicils. Section 648(2) ABGB covers a legacy as a legacy counted against the inheritance share where crediting was expressly ordered or follows from interpreting the will. In case of doubt, the provision treats it as a partition order.