title: Using recalc function to change a field if item has weight
body: <p>I currently have a recalc function that resets the shipping cost field if a line item has changed, but I really only need to do that if the item has a weight. How do I retrieve the weight of the changed line item?</p>
  
  <p>Here's what I currently have:</p>
  
  <pre><code>function recalc(){  
      nlapiSetFieldValue('shippingcost', '0.00');
  }
  </code></pre>