Replies: 3 comments 2 replies
-
Hi,
First thank you for your work. The hole XRechnung Stuff is extreme complicated and we can spend our Time on pur own Software While using yours. 😃
I would be interested to know which parts from horstoeko/zugferd you mainly use.
Mainly im using ZugferdDocumentBuilder but in the next Version i will do a quick Descriptor with my personal data struckture.
One Question:
Can you Provide a example for document based allowances with tax? For Vouchers? TotalPrepaidamount and duepayableamount calculation? Or Coupons with Tax? I could not figure out how to calculate them accordingly. 🙈
Thanks a lot!
Marcel
… I would be interested to know which parts from horstoeko/zugferd you mainly use.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi
There is a small documentation in the wiki on how to deal with surcharges/discounts. However, these are tailored to the ZugferdDocumentBuilder. The QuickDescriptor classes regulate the handling of surcharges/discounts themselves. It depends on your upstream ERP how it calculates them. Differences may therefore occur. A look at the official documentation may help.
Link to allowance/charges <https://github.com/horstoeko/zugferd/wiki/Creating-XML-Documents#working-with-discounts-and-charges>Yes, I’m familiar with them, and I understand the common challenge where a descriptor often calculates ERP data differently from your approach. Ultimately, I’ve found it easier to handle the calculations myself. It’s been a process of trial and error, but it works well. :)
From your example, I can identify the data that needs adjustment. I’ve already developed a method to manage charges and discounts by simply adding isCharge and applying tax where necessary.
Now, I can modify the totalAllowanceAmount, totalChargesAmount, along with the corresponding totalGrossAmount, totalNetAmount, totalTaxAmount, documentTaxAmount, and totalTaxBasisAmount from addDocumentSummary(), as well as their respective totalTaxBreakdowns, all at the document level.
Thank you very much!
Liebe Grüße,
Marcel
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello,
unfortunately it’s not mine already but in a later version where I can abstract the xrechnung part from the APP Logic, we can have a second discussion on this. I’m open for those things.
Kind Regards,
And happy coding,
Marcel
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I would be interested to know which parts from horstoeko/zugferd you mainly use.
Beta Was this translation helpful? Give feedback.
All reactions