Open duskybomb opened 6 years ago
You can look up the official specs documents to see if they require them. ram:LineTotalAmount
is probably required. ram:Name
could default to "invoice".
I checked the official factur-x examples (they are same as sample invoices in factur-x library) and they too don't have the two fields listed above.
Now to export a json we are validating the xml first, we now need to fix LineTotalAmount
and Name
. As you suggested for Name
we can use "invoice". What should we with LineTotalAmount
. Just add it to the templates where it is missing?
LineTotalAmount
is my amount_untaxed
. So it's quite important and the user needs to set it themselves.
We need files with LineTotalAmount
and Name
, so should I add them to the XML of invoices in sample invoices (for testing and other things)?
I was trying to add these and I did, but now I am getting validation issue because even their respective XSDs don't have LineTotalAmount
and Name
. Maybe they are non-required fields?
Even though these two have
_required: true
infields.yml
still they are not there in base template which is embedded to PDFs not having any embedded xml.//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount
//rsm:ExchangedDocument/ram:Name