Got it solved, I did call in the Header INX two lines.
$ORDER_HEADER_INX['UPDATEFLAG'] = 'I';
$ORDER_HEADER_INX['PURCH_NO_C'] = (string) $oferta;
Took out these two lines and everything started to work without problems.
Got it solved, I did call in the Header INX two lines.
$ORDER_HEADER_INX['UPDATEFLAG'] = 'I';
$ORDER_HEADER_INX['PURCH_NO_C'] = (string) $oferta;
Took out these two lines and everything started to work without problems.