Method EinvoiceLineItem():setUnitCode() Professional

Sets the unit of measure code (BT-130).

Syntax
:setUnitCode( [<cValue>] ) --> self
Parameters
<cValue>
The UN/ECE Recommendation 20 unit code, for example "C62" for one piece or "KGM" for kilogram. This defaults to EINV_UNIT_ONE.
Return

This method returns self.

Description

Assigns the unit of measure code of the invoiced quantity (BT-130) as defined in UN/ECE Recommendation 20. If an empty value or NIL is passed, EINV_UNIT_ONE ("C62", one piece) is used.

The unit code applies to the invoiced quantity as well as to the price base quantity. Use a recognized code so that the receiver can interpret the quantity correctly.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.