ANS-1596 · INVENTORY & ITEM MANAGEMENT

How to Calculate Item Weight with Multiple Units of Measure in NetSuite

This guide outlines a method for accurately calculating the weight of line items on NetSuite transactions, incorporating various units of measure and conversion rates.

Short answer

To calculate item weight with multiple units of measure in NetSuite, custom fields are used to capture item weight and unit, alongside transaction-level unit selections and conversion rates. Formulas then apply these values, including the line item quantity, to derive both the unit weight and total net weight for each transaction line.

Scenario

NetSuite users often need to calculate the total weight of line items on sales orders, purchase orders, or other transactions. This calculation must accurately account for items that may have different units of measure (UOM) and require conversion to a common transaction UOM, ensuring precise weight tracking for shipping, inventory, or reporting purposes.

Solution

To calculate the weight of line items on transactions, a combination of custom fields and formula fields can be implemented. This approach leverages NetSuite's Multiple Units of Measure feature to handle various weight units and conversions.Custom fields are often utilized to capture specific item weight details. Examples include:

  • {custcol_itemweightunit}: A custom column field to store the weight unit set on the item record, typically sourced from the item. While NetSuite offers standard 'weightunit' fields, custom fields provide flexibility for specific business logic.
  • {custcol_itemweight}: A custom column field to store the weight set on the item record, typically sourced from the item. While NetSuite offers standard 'weight' fields, custom fields provide flexibility for specific business logic.

Other fields used in the calculation include:

  • {custbody_weight_by}: A custom body field that copies the transaction's selected unit, with list values identical to the Units of Measure names.
  • {custbody_weightunitconversion}: This custom body field can store a unit conversion rate for the selected transaction. While the standard {unitconversionrate} field is often available for direct use in formulas, a script may be employed to retrieve and populate this custom field for more complex conversion scenarios involving the Units of Measure feature.
  • {unitconversionrate}: The standard line item conversion rate for the line's selected Unit of Measure.

Once these fields are configured, the following formulas can be used in custom transaction line fields to calculate item weight:

Item Unit Weight (weight of 1 UOM)

ROUND(CASE WHEN {custcol_itemweightunit}  {custbody_weight_by} THEN {custcol_itemweight} ELSE {custcol_itemweight} / {custbody_weightunitconversion} END * CASE WHEN {unitconversionrate} IS NULL THEN 1 ELSE {unitconversionrate} END,2)

Net Weight (weight of the line item's total quantity)

ROUND(CASE WHEN {custcol_itemweightunit}  {custbody_weight_by} THEN {custcol_itemweight} ELSE {custcol_itemweight} / {custbody_weightunitconversion} END * CASE WHEN {unitconversionrate} IS NULL THEN 1 ELSE {unitconversionrate} END,2) * {quantity}

Expert NetSuite Support

Need help with this NetSuite issue?

Inventory & Item Management consulting and configuration support

Talk to a consultant