Skip to content

Commit

Permalink
Release 3.2.0
Browse files Browse the repository at this point in the history
Adding infos on contributors, adapting copyright notice
  • Loading branch information
halfbyte committed Dec 4, 2024
1 parent 7fd7fb6 commit 33c0aff
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.2.0

- [CHORE] Update schemas for latest Factur-X version (1.07.2) by @zealot128
- [FEATURE] Allow for multiple tax rates in line items and correctly summarising them in invoice. PR by @SubandiK
- [CHORE] Update copyright notices and add CONTRIBUTORS.md to reflect that this isn't a solo project anymore.

## 3.1.0

- [BUGFIX] Schematron Validator always reported valid. Fix by @SubandiK
Expand Down
8 changes: 8 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contributors

This library has been originally developed by Jan 'half/byte' Krutisch.

@zealot128 (Stefan Wienert) contributed a bunch of new fields on invoice and also helped keeping the specs up to date.

@SubandiK (Subandi Khairun) added a more robust handling of tax rates and fixed bugs in the original code.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

See tests for examples.

# Some words of caution
## Some words of caution

1. This is an opinionated library optimised for my very specific usecase
2. While I did start to add some validations to make sure you can't input absolute garbage into this, I cannot guarantee factual (as in taxation law) correctness of the resulting XML.
1. The library, for ZUGFeRD 2.x, currently only supports the EN16931 variant. This is probably what you want as well. PRs welcome.
3. This does not contain any code to attach the XML to a PDF file, mainly because I have yet to find a ruby library to do that. For software that does this, take a look at [this python library](https://github.com/akretion/factur-x).

# LICENSE
## Contributors

See [CONTRIBUTORS.md](CONTRIBUTORS.md).

## LICENSE

See [LICENSE](LICENSE).

Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat/constants.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
15 changes: 15 additions & 0 deletions lib/secretariat/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
=begin
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end
module Secretariat
module Helpers
def self.format(something, round: nil, digits:2)
Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat/invoice.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 1 addition & 2 deletions lib/secretariat/line_item.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,6 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end


Expand Down
3 changes: 1 addition & 2 deletions lib/secretariat/tax.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,6 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end

require 'bigdecimal'
Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat/trade_party.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat/validation_error.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion lib/secretariat/validator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions lib/secretariat/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=begin
Copyright Jan Krutisch
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,5 +15,5 @@
=end

module Secretariat
VERSION = '3.1.0'
VERSION = '3.2.0'
end
15 changes: 15 additions & 0 deletions lib/secretariat/versioner.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
=begin
Copyright Jan Krutisch and contributors (see CONTRIBUTORS.md)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end
module Secretariat
module Versioner
def by_version(version, v1, v2)
Expand Down

0 comments on commit 33c0aff

Please sign in to comment.