title: NetSuite Sales Order. Update a field for some line items
body: <p>PHP &amp; NS2015_2 SDK. Want to update a field for some items in Sales Order. Let's say we want to update amount for second line/item in list.</p>
  
  <p>My code sample below:</p>
  
  <pre><code>$Service = new NetSuiteService($Config);
  $SalesOrder = new SalesOrder();
  $SalesOrder-&gt;internalId = 234234;
  $OrderItem = new SalesOrderItem();
  $OrderItem-&gt;line = 2;
  $OrderItem-&gt;amount = 222;
  $SalesOrder-&gt;itemList = new SalesOrderItemList();
  $SalesOrder-&gt;itemList-&gt;replaceAll = false;
  $SalesOrder-&gt;itemList-&gt;item = [$OrderItem];
  $Request = new UpdateRequest();
  $Request-&gt;record = $SalesOrder;
  $Response = $Service-&gt;update($Request);
  </code></pre>
  
  <p>Returning error is "Please choose an item to add" meaning it try to insert a line (it expect item field) instead of updating second line.</p>
  
  <p>The strange thing is if I set line to 1 it works! But i want to update second line or sometimes third, etc...</p>
  
  <p>Any ideas? Thanks!</p>