I am trying to use receiveandinvoice bound action for purchase order. The series of action I am trying to perform here using API is as follow.
Step 1: Get the details of purchase order.
Step 2: Update purchase order lines to set qty. to receive and invoice to some value less than total quantity and for the remaining quantity I will be creating one more invoice.
Step 3: Update Vendor invoice number to some Invoice Number.
Step 4: Call receiveandinvoice on that purchase order so that it creates posted purchase invoice with the vendor invoice number that I have updated.
Challenge here is that I am not able to find any way of updating vendor invoice number in purchase order using it's patch request.
Can anyone help me out to identify way using which i can update vendor invoice number? Because I need take vendor invoice number from users to create posted purchase invoice using that number itself and also change it for the second invoice if I am only receiving partial quantity of total quantity for purchase order.
Also suggest if I am going in wrong direction.