Skip to content

Commit

Permalink
fix: correct billing period
Browse files Browse the repository at this point in the history
  • Loading branch information
Skulli committed Jun 28, 2024
1 parent 42e0deb commit 3c031fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/secretariat/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def to_xml(version: 1, skip_validation: false, mode: :zugferd)
xml.text(invoice_start.strftime("%Y%m%d"))
end
end
xml["ram"].OccurrenceDateTime do
xml["udt"].EndDateTime(format: "102") do
xml["ram"].EndDateTime do
xml["udt"].DateTimeString(format: "102") do
xml.text(invoice_end.strftime("%Y%m%d"))
end
end
Expand Down
8 changes: 4 additions & 4 deletions lib/secretariat/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module Secretariat
:description,
:quantity,
:unit,
:gross_amount,
:net_amount,
:gross_amount, # brutto
:net_amount, # netto price
:tax_category,
:tax_percent,
:tax_amount,
Expand Down Expand Up @@ -175,8 +175,8 @@ def to_xml(xml, line_item_index, version: 2, skip_validation: false)
xml.text(invoice_start.strftime("%Y%m%d"))
end
end
xml["ram"].OccurrenceDateTime do
xml["udt"].EndDateTime(format: "102") do
xml["ram"].EndDateTime do
xml["udt"].DateTimeString(format: "102") do
xml.text(invoice_end.strftime("%Y%m%d"))
end
end
Expand Down

0 comments on commit 3c031fa

Please sign in to comment.