Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields not present in Base template #27

Open
duskybomb opened this issue May 28, 2018 · 6 comments
Open

Fields not present in Base template #27

duskybomb opened this issue May 28, 2018 · 6 comments
Assignees

Comments

@duskybomb
Copy link

Even though these two have _required: true in fields.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
This was referenced May 29, 2018
@m3nu
Copy link
Collaborator

m3nu commented Jun 2, 2018

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".

@duskybomb
Copy link
Author

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.

@duskybomb
Copy link
Author

duskybomb commented Jun 8, 2018

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?

@m3nu
Copy link
Collaborator

m3nu commented Jun 8, 2018

LineTotalAmount is my amount_untaxed. So it's quite important and the user needs to set it themselves.

@duskybomb
Copy link
Author

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)?

@duskybomb
Copy link
Author

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?

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

No branches or pull requests

2 participants