josemmo / einvoicing

Library for reading and creating European-compliant electronic invoices (EN 16931)
https://josemmo.github.io/einvoicing/
MIT License
112 stars 29 forks source link

Allow specifying InvoiceLine ID (BT-126) #14

Closed hmazter closed 2 years ago

hmazter commented 2 years ago

This commit allows for specifying the ID of a InvoiceLine. Fallback to the line index if no ID is specified.

We need this, or some similar solution, to use the same line ID as was defined on a OrderLine on the InvoiceLine.

josemmo commented 2 years ago

Looks good! I'll add a few changes on develop to prevent autogenerated IDs from creating duplicates.

hmazter commented 2 years ago

Thanks!