Closed shahchandra closed 2 months ago
Hi Chandra, thanks for your pull request, this is a great addition for the library! Can you please remove the version enum entry? I'd like to use a new enum when invoking Save() instead. I can implement this tonight if you like so you can hook into that. Also, do you remember to add test cases (you might use a new .cs file for this). It'd be great if you could load one of the sample files, save them as UBL, load them again and then use the existing asserts to test if critical values are still there. It's only a basic test but better than nothing.
Also, did you test the output of your writer with one of the validators?
Hi Chandra, thanks for your pull request, this is a great addition for the library! Can you please remove the version enum entry? I'd like to use a new enum when invoking Save() instead. I can implement this tonight if you like so you can hook into that. Also, do you remember to add test cases (you might use a new .cs file for this). It'd be great if you could load one of the sample files, save them as UBL, load them again and then use the existing asserts to test if critical values are still there. It's only a basic test but better than nothing.
Thanks for quick reply, I will remove the enum entry, and wait for your changes to implement it, in the mean time I can add the test for the write.
License has been added to the new UBL Writer file
Payment means and trade line item also has been added.
Added a basic UBL writer feature. A new version "Version22UBL" added in the ZUGFeRDVersion enums for calling the UBL Writer class.
Only the basics of the attributes has been added.