Skip to content

When writing UBL files and lineTotalAmount was omitted, it causes a validation error, because LineExtensionAmount is missing #800

@Dirksche

Description

@Dirksche

The description of the lineTotalAmount parameter of the function AddTradeLineItem states "This parameter is optional. If it is not filled, the line total amount is automatically calculated based on netUnitPrice and billedQuantity".

This is true for writing CII files, but not for writing UBL files.
When creating UBL files, the section </cac:InvoiceLine> is written without the compulsory <cbc:LineExtensionAmount> section. This leads to validation errors:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions