Method EinvoiceLineItem():getNetAmount() Professional

Calculates the net amount of the line (BT-131).

Syntax
:getNetAmount() --> oAmount
Return

An EinvoiceDecimal() object with the net amount of the line, rounded to two decimal places.

Description

Calculates the invoice line net amount (BT-131). The net amount is the quantity multiplied by the net price divided by the price base quantity, rounded to two decimal places. If no base quantity has been set, a base quantity of 1 is used.

AbstractEinvoice:toModel() uses this amount as the contribution of the line to the VAT breakdown and the invoice totals.

Note: a runtime error is raised if the base quantity is zero.

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.