[FIX][T5420] Voucher type error; accessing invoice from ranch.purchase.data

Merged Hermes requested to merge T5420 into 12.0

Merge request reports