Comments (8)
Thanks for pushing the commit, but it seems that i still get the same errors.
from zugferd-csharp.
Can you provide an example (source code/ ZUGFeRD file)?
from zugferd-csharp.
Sorry for late response, here is an example file:
zugferd.zip
from zugferd-csharp.
is it possible that you provide the source code as well?
from zugferd-csharp.
private InvoiceDescriptor CreateInvoice(InvoiceMetadataModel metadata)
{
InvoiceDescriptor desc = InvoiceDescriptor.CreateInvoice(metadata.ReferenceNumber, metadata.InvoiceDate, CurrencyCodes.EUR);
desc.Profile = Profile.Comfort;
desc.AddNote($"Rechnung {metadata.ReferenceNumber} vom {metadata.InvoiceDate}.");
desc.SetBuyer(metadata.BuyerInformation.Name1, metadata.BuyerInformation.Plz, metadata.BuyerInformation.Ort, metadata.BuyerInformation.Strasse, CountryCodes.DE, "");
desc.AddBuyerTaxRegistration("DE1234567890", TaxRegistrationSchemeID.VA);
desc.SetSeller(metadata.CompanyModel.Name1, metadata.CompanyModel.Plz, metadata.CompanyModel.Ort, metadata.CompanyModel.Strasse, CountryCodes.DE, metadata.CompanyModel.Id.Value, new GlobalID(GlobalID.SchemeID_GLN, "4000001123452"));
desc.AddSellerTaxRegistration(metadata.CompanyModel.Steuernummer, TaxRegistrationSchemeID.VA);
desc.addTradeLineItem("Rechnungsbetrag", "", QuantityCodes.LS, 1, metadata.GrossValue, metadata.NetValue, 1, TaxTypes.VAT, TaxCategoryCodes.S,
metadata.TaxPercent);
desc.SetTotals(lineTotalAmount: metadata.NetValue, taxBasisAmount: metadata.NetValue, taxTotalAmount: metadata.TaxTotal, grandTotalAmount: metadata.GrossValue, duePayableAmount: metadata.GrossValue);
desc.AddApplicableTradeTax(metadata.NetValue, metadata.TaxPercent, TaxTypes.VAT, TaxCategoryCodes.S);
desc.SetTradePaymentTerms($"Zahlbar innerhalb {(metadata.DueDate - metadata.InvoiceDate).TotalDays} Tagen netto bis {metadata.DueDate}", metadata.DueDate);
return desc;
}
the InvoiceMetadataModel has basic properties from what you'd expect (mostly strings and datetimes).
from zugferd-csharp.
It works with the latest code. I tested:
version 2.1, profiles basic, comfort (no currency), extended (currency).
Could you checkout the latest code and test it again?
from zugferd-csharp.
It works with the latest code. I tested:
version 2.1, profiles basic, comfort (no currency), extended (currency).Could you checkout the latest code and test it again?
Yes it works with the newest version.
Now I get a weird error, which i can't resolve. I'll open another issue for this.
from zugferd-csharp.
I'll close this issue.
from zugferd-csharp.
Related Issues (20)
- It is not possible to create XRechnung in version 2.2.0 HOT 5
- public instead of internal? HOT 4
- Return ZUGFeRD version HOT 1
- Notes of type "PayeePartyCreditorFinancialAccount" require corresponding "PayeeSpecifiedCreditorFinancialInstitution" nodes HOT 4
- Missing translation for TaxCategoryCode with value of "K"
- ZF 2.0 Profile Comfort Validation fails because of existing Name in HeaderExchangedDocument ?! HOT 4
- TypeCode for AdditionalReferencedDocument HOT 1
- AdditionalReferencedDocument should be available in XRechnung profile HOT 5
- There is 0..* for InvoiceReferencedDocument not only 0..1 HOT 8
- Missing distinction: BasisQuantity.UnitCode vs. BilledQuantity.UnitCode HOT 4
- ram:Name is written twice HOT 6
- How to embed the xml into the pdf HOT 5
- BankAccount ram:BICID HOT 2
- Party ID miss the SchemeID HOT 2
- DefinedTradeContact missing in Zugferd 2.1, EN16931/Comfort HOT 1
- InvoiceDescriptor.Load cannot load version xrechnung_2.0 HOT 2
- AddTradeAllowanceCharge: Reason is not exported HOT 1
- Set Peppol EndpointID HOT 1
- "Token StartElement in state Epilog would result in an invalid XML document" on InvoiceDescriptor.Save(stream, v21, Basic) HOT 6
- SpecifiedTradePaymentTerms should be [0..n], but is [0..1] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zugferd-csharp.