Skip to content

Conversation

@Dirksche
Copy link
Contributor

@Dirksche Dirksche commented Sep 9, 2025

When writing in UBL format and lineTotalAmount was omitted in AddTradeLineItem , it caused a validation error, because LineExtensionAmount was missing. We now calculate it in the same way as for the CII format.

When writing in UBL format and `lineTotalAmount` was omitted in `AddTradeLineItem `, it caused a validation error, because `LineExtensionAmount` was missing.
We now calculate it in the same way as for the CII format.

(cherry picked from commit be88067)
@stephanstapel
Copy link
Owner

@Dirksche, please see a new discussion on this here:
#836

@Dirksche
Copy link
Contributor Author

Dirksche commented Nov 25, 2025

@stephanstapel It's not only about automatic calculation (of omitted parameters) or not, it's also about consistency.
Currently it is automatically calculated (when lineTotalAmount was omitted in AddTradeLineItem()) for CII, but not for UBL.

Ideally, if someone has written code which generates a valid e-invoice in one format (CII or UBL) and they just change the call of the Save() function to save it in the other format, it should still generate a valid e-invoice with the same information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants