konik-io/konik

How can I set the delivery date to a custom time period?

oova opened this issue · 1 comments

oova commented

Let me start by saying that I am a new user of your library and have had a pleasant experience with it so far. The library itself and your documentation have helped me have a steep learning curve.

Here's one thing I could not figure out: how can I set the invoice's delivery date to a custom time period?

I posted this question on Stack Overflow as suggested on your support page, but I was unable to add the "konik", "konik.io", or "zugferd" tags since these tags did not exist and my reputation on SO was too low to add new tags. So let me repeat the details here.

I would like to set the delivery date to a period of time (e.g. "Q3 2016" or "July to December 2016"). Ideally, I would like to use a custom string for the representation of this date.

The library requires passing a ZfDate object when instantiating a Delivery object as part of my invoice. Since ZfDate (and its subclasses) are based on java.util.Date I don't see how to deal with periods of time or custom strings in this context at all.

Is this a limitation of this library or of the ZUGFeRD specification in general? Is there a workaround maybe?

As far as I know, using periods of time in (paper-based) invoices is fine from a legal point of view (in Germany), so it would be nice to have support for this feature in the electronic format as well.

Thank you.