When using taPoHdr to change the PO status, the update behavior is different for certain statuses. For example,using a fresh purchase order, status 1 (New), if I send a 6 (Canceled), the method updates both the header and lines statues to 6. However, when I send 2 (Released) it only updates the header and not the lines. Is this by design or am I missing something?
Please see code snippet below:
taPoHdr = new taPoHdr
{
PONUMBER = PONumber,
VENDORID = Vendor,
POSTATUS = (short)POStatus,
POSTATUSSpecified = true,
UpdateIfExists = 1
}