[FIX] get invoice reference when validating, not bofere

Merged Uriel Mayo requested to merge LOC-85 into 15.0-stage

Closes LOC-85

Merge request reports