How update data in a modal using two queries?

this post may be deleted @victoria im using this post instead Tips to manage this purchase order module correctly - #9 by agaitan026 with @Kabirdas :slight_smile: is the same case